/* Temel Ayarlar */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7f6;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Başlık animasyonu */
@keyframes slideUpFadeInTitle {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes colorFade {
  0% { color: #0077cc; }
  50% { color: #00aaff; }
  100% { color: #000000; }
}

.page-title {
  font-weight: 700;
  font-size: 3.5rem;
  color: #000;
  letter-spacing: 6px;
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
  padding-bottom: 12px;
  border-bottom: 3px solid #222;
  max-width: 400px;
  animation: slideUpFadeInTitle 1.5s ease forwards;
  user-select: none;
  line-height: 1.1;
}

.page-title strong {
  color: #0077cc;
}

.page-title .rehberlik {
  animation: colorFade 3s ease forwards;
  display: inline-block;
}

/* Kart giriş animasyonu */
@keyframes slideUpFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Grid düzeni - 2 kart için optimize edildi */
.container {
  display: grid;
  grid-template-columns: 1fr; /* Mobil için tek sütun */
  gap: 30px;
  max-width: 800px;
  width: 100%;
  transition: opacity 0.3s ease;
}

/* Geniş ekranlar için 2 sütun */
@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Kartlar devre dışı iken */
.container.disabled,
.container.disabled + .footer {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

/* Kart görünümü */
.card {
  position: relative;
  border-radius: 10px;
  padding: 40px 30px;
  min-height: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
  cursor: pointer;
  user-select: none;
  animation: slideUpFadeIn 0.6s ease forwards;
  opacity: 0;
  outline: none;
  text-decoration: none; /* Link alt çizgisini kaldırmak için eklendi */
}

/* Animasyon gecikmesi */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }

.card:hover,
.card:focus {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.card:focus {
  outline: 3px solid #ff9900;
  outline-offset: 3px;
}

/* Kart renkleri */
.yks-card {
  background-color: #3a89c9;
}

.lgs-card {
  background-color: #4CAF50;
}

/* Başlıklar */
.exam-label {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
  max-width: 250px;
}

/* İkon stili */
.icon {
  font-size: 50px;
  margin-bottom: 15px;
  color: #ffffffcc;
}

/* Footer */
.footer {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #717475;
  font-size: 1rem;
  user-select: none;
  font-family: 'Poppins', sans-serif;
  padding: 4px 10px;
  border-radius: 30px;
  transition: opacity 0.3s ease;
  animation: slideUpFadeIn 1s ease-out 0.5s forwards;
  opacity: 0;
}

.footer .circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #717475;
  color: #717475;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  user-select: none;
}
/* =================================== */
/* MOBİL CİHAZ UYUMLULUĞU         */
/* =================================== */

/* Ekran genişliği 767px ve daha az olan cihazlar için bu kurallar geçerli olacak. */
/* =================================== */


@media (max-width: 767px) {
 body {
   padding: 20px 15px;
 }

 .page-title {
   font-size: 2.5rem;
   letter-spacing: 4px;
   margin-bottom: 30px;
   max-width: 100%;
 }

 .card {
   display: flex; /* Flexbox kullanarak iç öğeleri hizalayacağız */
   flex-direction: column; /* Öğeleri dikey olarak sırala */
   justify-content: center; /* Dikeyde ortala */
   align-items: center; /* Yatayda ortala */
   width: 70%; /* Kart genişliğini ekranın %85'i yap */
   max-width: 400px; /* Maksimum genişlik limiti */
   min-height: 150px; /* Minimum yükseklik vererek kareye yakın bir görünüm sağla */
   padding: 20px;
   margin: 10px auto; /* Dikeyde boşluk ve yatayda ortalama */
   border-radius: 15px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   text-align: center; /* İçindeki metinleri ortala */
 }

 .icon {
   font-size: 40px;
   margin-bottom: 10px;
 }

 .exam-label {
   font-size: 1.8rem; /* Biraz daha küçültüldü */
   margin-bottom: 5px;
 }

 .card p {
   font-size: 1rem;
   max-width: 90%; /* Açıklama metninin genişliğini ayarla */
 }

 .footer {
   margin-top: 30px;
   font-size: 0.9rem;
 }
}