/* -----------------------------
   Temel Ayarlar & Tipografi
----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

:root {
  --font: 'Roboto', sans-serif;
  --radius: 8px;
  --light-shadow: 0 1px 4px rgba(0,0,0,0.05);
  --medium-shadow: 0 2px 8px rgba(0,0,0,0.07);
  --color-bg: #f5f7fa;
  --color-card-bg: #fff;
  --color-border: #e2e8f0;

  /* Soru kartları için renk paleti */
  --q1-bg: #fce4ec;
  --q2-bg: #e3f2fd;
  --q3-bg: #e8f5e9;
  --q4-bg: #f3e5f5;

  --correct-start: #b8e994;
  --correct-end:   #78c679;
  --wrong-start:   #ff9e9e;
  --wrong-end:     #e57373;
  --selected-start:#ffb74d;
  --selected-end:  #ffa726;

  --score-bg: #e0e0e0;
  --score-start: #90caf9;
  --score-end:   #64b5f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: #333;
  padding: 16px 0;
  line-height: 1.5;
}

/* -----------------------------
   Quiz Header
----------------------------- */
.test-header {
  text-align: center;
  margin-bottom: 20px;
}
.test-header h1 {
  font-size: 2rem;
  font-weight: 500;
  color: #bdd9f1;
}
.test-header p {
  font-size: 0.95rem;
  color: #ecdada;
}

/* -----------------------------
   Soru Kartları (Renkli Arka Plan)
----------------------------- */
.quiz-container {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
}
.question-block {
  background: #101124;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0,255,255,0.2), 0 0 15px rgba(0,255,255,0.1);
  transition: all 0.25s ease-in-out;
}
.question-block:hover {
  box-shadow: 0 0 0 2px rgba(0,255,255,0.3), 0 0 20px rgba(0,255,255,0.25);
}


/* -----------------------------
   Cevap Butonları
----------------------------- */
.answer-btn {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 10px 16px;
  font-size: 0.95rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--light-shadow);
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.answer-btn:hover {
  background: #fafafa;
  transform: translateY(-1px);
  box-shadow: var(--medium-shadow);
}
.answer-btn.selected {
  background: linear-gradient(135deg, var(--selected-start), var(--selected-end));
  color: #fff;
  border-color: transparent;
}
.answer-btn.correct {
  background: linear-gradient(135deg, var(--correct-start), var(--correct-end));
  color: #fff;
  border-color: transparent;
}
.answer-btn.wrong {
  background: linear-gradient(135deg, var(--wrong-start), var(--wrong-end));
  color: #fff;
  border-color: transparent;
}

/* -----------------------------
   Skor Kutusu
----------------------------- */
#score-container.hide {
  display: none;
}
#score-box {
  width: 90%;
  max-width: 700px;
  margin: 20px auto;
  background: var(--score-bg);
  border-radius: var(--radius);
  overflow: hidden;
  height: 14px;
  box-shadow: var(--light-shadow);
}
#score-fill {
  height: 100%;
  width: 0; /* JS ile yüzde ayarlanıyor */
  background: linear-gradient(90deg, var(--score-start), var(--score-end));
  transition: width .4s ease;
}
#score-text, #feedback-text {
  max-width: 700px;
  margin: 8px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: #fad5d5;
}
#percent-text {
  font-weight: 500;
}

/* -----------------------------
   Bitir Butonu (Güncellendi)
----------------------------- */
#finish-btn {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;       /* Daha büyük padding */
  font-size: 1.1rem;        /* Büyükçe yazı boyutu */
  background: linear-gradient(135deg, #42a5f5, #1e88e5); /* Canlı mavi degradé */
  color: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Daha belirgin gölge */
  cursor: pointer;
  transition: none;         /* Hover/transitions kaldırıldı */
}
#finish-btn:disabled {
  background: #90caf9;      /* Disabled hali */
  cursor: default;
}

/* -----------------------------
   Sektion Başlıkları Ortala
----------------------------- */
section h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #b8aae6;
}

/* -----------------------------
   Önerilen Kartlar (Responsive)
----------------------------- */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 30px; /* Ortala ve alt boşluk ver */
}
@media (max-width: 767px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--light-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-1px) scale(1.005);
  box-shadow: var(--medium-shadow);
}
.card img {
  width: 100%;
  height: 55%;
  object-fit: cover;
  transition: transform .15s;
}
.card:hover img {
  transform: scale(1.02);
}
.card-content {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 8px;
}
.card-content h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

.site-footer {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 12px 16px;           /* Dikey padding yarıya indi */
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 20px;             /* Üst boşluğu azalttık */
}

.site-footer p,
.site-footer nav a {
  color: #f0f0f0;
  font-size: 0.85rem;           /* Yazı boyutunu da biraz küçük tutabilirsin */
}

.site-footer nav a {
  margin: 0 6px;                /* Linkler arası boşluğu daralttık */
}
@media (max-width: 768px) {
  .toggle-btn { display: flex; }
}

      /* Mobilde de daha kompakt */
  
  .site-footer nav a {
    display: inline-block;
    margin: 4px 4px;
    font-size: 0.8rem; }
/* ===== NAVBAR GENEL ===== */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d1b2a; /* Lacivert */
  padding: 14px 24px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== LOGO ===== */
.brand img {
  height: 40px;
  object-fit: contain;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* ===== NAV LINKLERİ ORTADA ===== */
.nav-links {
  display: flex;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: #e63946;
  color: #fff;
}

/* ===== HAMBURGER BUTON (SAĞDA) ===== */
.toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.toggle-btn .burger {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

/* ===== MOBİL NAVBAR AÇILIR MENÜ ===== */
@media (max-width: 768px) {
  .toggle-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #0d1b2a;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    max-height: 80vh;       /* Tüm menüler sığsın */
    overflow-y: auto;       /* Scroll aktif */
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px;
    border-top: 1px solid #1e2a38;
  }
}
.brand .logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 3px #0ff, 0 0 5px #0ff, 0 0 15px #0ff;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
}

/* ===== NAVBAR ALTI BOŞLUK ===== */
body {
  padding-top: 72px;
}
.brand img {
  height: 40px;
  object-fit: contain;
}

.nav-links a {
  transition: all 0.5s ease;
}

#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: #0b0c2a;
}

.toggle-btn.active .burger:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.toggle-btn.active .burger:nth-child(2) {
  opacity: 0;
}
.toggle-btn.active .burger:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.toggle-btn .burger {
  transition: all 0.3s;
}

#restart-btn {
  display: block;
  margin: 18px auto 0 auto;
  padding: 11px 22px;
  background: linear-gradient(135deg, #fceabb, #f8b500);
  color: #222;
  font-size: 1.05rem;
  border: none;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(255,193,7,0.18);
  cursor: pointer;
  font-weight: 500;
  transition: background .18s;
}




/* -----------------------------
   ÖNERİLEN KARTLAR GÜNCELLEME
----------------------------- */
.cards-container .card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform .15s, box-shadow .15s;
}

.cards-container .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.cards-container .card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.cards-container .card-content {
  padding: 12px;
  background-color: #16223E;  /* Koyu lacivert alt şerit */
}

.cards-container .card-content h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
}

/* Eğer önceki <p> etiketlerini hâlâ gizlemek istiyorsan */
.cards-container .card-content p {
  display: none;
}

.cards-container .card {
  border: none;
}
.cards-container .card {
  border: none !important;
}


/* -----------------------------
   ÖNERİLEN KARTLARI BİR TIK BÜYÜTME
----------------------------- */
.cards-container {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.cards-container .card {
  aspect-ratio: 3/4;
}

.cards-container .card img {
  height: 65%;
}

.cards-container .card-content {
  padding: 8px 10px;
}

.cards-container .card-content h3 {
  font-size: 0.9rem;
}



/* ----------------------------------
   TAM MOBİL UYUMLULUK
---------------------------------- */

/* Tablet ve daha küçük ekranlar */
@media (max-width: 767px) {
  /* Quiz bölümü */
  .quiz-container {
    width: 95%;
    padding: 0 8px;
  }
  .test-header h1 {
    font-size: 1.6rem;
  }
  .test-header p {
    font-size: 0.9rem;
  }
  .question-block {
    padding: 12px;
    margin-bottom: 16px;
  }
  .answer-btn {
    padding: 10px 12px;
    font-size: 1rem;
  }
  #finish-btn,
  #restart-btn {
    width: 100%;
    margin: 12px 0;
    font-size: 1rem;
    padding: 12px;
  }

  /* Önerilen kartlar */
  .cards-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto 20px;
  }
  .cards-container .card {
    aspect-ratio: 4/3;
  }
  .cards-container .card img {
    height: 60%;
  }
  .cards-container .card-content {
    padding: 8px;
  }
  .cards-container .card-content h3 {
    font-size: 0.9rem;
    line-height: 1.2;
  }
}

/* Telefon ekranları */
@media (max-width: 480px) {
  /* Quiz bölümü */
  .test-header h1 {
    font-size: 1.4rem;
  }
  .question-block {
    padding: 10px;
  }
  .answer-btn {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
  .cards-container .card {
    /* Kare oran yerine hafif dikdörtgen */
    aspect-ratio: 3/4;
  }
  .cards-container .card img {
    height: 55%;
  }
  .cards-container .card-content h3 {
    font-size: 0.85rem;
  }
}
#percent-text { display: none !important; }

.share-buttons {
      text-align: center;
      margin: 2em auto;
    }
    .share-buttons a {
      display: inline-block;
      margin: 8px 10px;
      border-radius: 50%;
      background: #f4f4f4;
      width: 48px; height: 48px;
      box-shadow: 0 2px 8px #ddd;
      transition: background .2s;
      vertical-align: middle;
    }
    .share-buttons a:hover {
      background: #eaeaea;
    }
    .share-buttons img {
      width: 32px;
      height: 32px;
      margin: 8px;
      display: block;
    }

html, body {
  width: 100%;
  overflow-x: hidden;
}


.recommend-top-ad {
  width: 100%;
  max-width: 320px;
  margin: 24px auto;
  text-align: center;
}
.recommend-top-ad ins {
  width: 100% !important;
  display: block !important;
}


.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  transform: translateY(100%);
  transition: transform .25s ease;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.3);
  width: 100%;
  box-sizing: border-box;
}
.site-footer.is-visible { transform: translateY(0); }
body { padding-bottom: 64px; }





