/* ===== Fen Bilimleri Rehberi – Ortak Stiller ===== */
:root {
  --ana: #0d9488;
  --ana-koyu: #0f766e;
  --ana-acik: #ccfbf1;
  --lacivert: #0f172a;
  --lacivert-2: #1e293b;
  --vurgu: #f59e0b;
  --vurgu-acik: #fef3c7;
  --zemin: #f6f8fb;
  --kart: #ffffff;
  --yazi: #1e293b;
  --soluk: #64748b;
  --cizgi: #e5e9f0;
  --dogru: #16a34a;
  --yanlis: #dc2626;
  --mor: #7c3aed;
  --mavi: #2563eb;
  --turuncu: #ea580c;
  --yesil: #0d9488;
  --golge: 0 10px 30px rgba(15, 23, 42, .08);
  --golge-kucuk: 0 2px 8px rgba(15, 23, 42, .06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--zemin);
  color: var(--yazi);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ana-koyu); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; }

.kap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ===== Üst menü ===== */
.ust {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--cizgi);
}
.ust-ic {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--lacivert);
}
.logo-ikon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 148, 136, .35);
}
.logo-ikon svg { width: 26px; height: 26px; }
.logo-yazi { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; font-size: 1.25rem; }
.logo-yazi small { font-size: .72rem; font-weight: 700; color: var(--ana); letter-spacing: .04em; text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  text-decoration: none; color: var(--lacivert-2); font-weight: 700;
  padding: 8px 14px; border-radius: 10px; font-size: .98rem;
  transition: background .15s, color .15s;
}
.menu a:hover { background: #f1f5f9; color: var(--ana-koyu); }
.menu a.aktif { color: var(--ana-koyu); background: var(--ana-acik); }
.menu a.menu-lgs {
  background: var(--vurgu); color: #1e293b; margin-left: 6px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .35);
}
.menu a.menu-lgs:hover { background: #fbbf24; }

.menu-btn {
  display: none; width: 44px; height: 44px; border: none; background: #f1f5f9;
  border-radius: 12px; cursor: pointer; padding: 12px 11px;
  flex-direction: column; justify-content: space-between;
}
.menu-btn span { display: block; height: 2.5px; background: var(--lacivert); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* ===== Genel sayfa başlığı (iç sayfalar) ===== */
.sayfa-bas {
  position: relative; overflow: hidden; color: #fff;
  padding: 44px 0 56px;
  background: radial-gradient(circle at 85% 10%, #1e40af 0%, #0f172a 55%, #042f2e 100%);
}
.sayfa-bas::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: var(--zemin);
  border-radius: 28px 28px 0 0;
}
.sayfa-bas h1 { margin: 6px 0 8px; font-size: 2.3rem; }
.sayfa-bas p { margin: 0; opacity: .88; max-width: 620px; font-size: 1.08rem; }
.sayfa-bas .ekmek, .sayfa-bas .ekmek a { color: rgba(255, 255, 255, .75); }

.ekmek { font-size: .9rem; color: var(--soluk); }
.ekmek a { text-decoration: none; }
.ekmek a:hover { text-decoration: underline; }

main { padding: 8px 0 40px; }

/* ===== Kartlar (genel) ===== */
.izgara { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kart {
  background: var(--kart); border: 1px solid var(--cizgi);
  border-radius: var(--radius); padding: 22px;
  text-decoration: none; color: var(--yazi);
  box-shadow: var(--golge-kucuk);
  transition: transform .18s, box-shadow .18s;
}
a.kart:hover { transform: translateY(-4px); box-shadow: var(--golge); }
.kart h3 { margin: 0 0 6px; color: var(--lacivert); }
.kart p { margin: 0; color: var(--soluk); font-size: .95rem; }
.etiket {
  display: inline-block; background: var(--ana-acik); color: var(--ana-koyu);
  font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 99px;
  letter-spacing: .02em;
}

/* ===== Bölüm başlıkları ===== */
.bolum { margin: 56px 0; }
.bolum-bas { text-align: center; margin-bottom: 28px; }
.bolum-bas .ust-yazi {
  display: inline-block; color: var(--ana); font-weight: 800; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.bolum-bas h2 { margin: 0 0 8px; font-size: 2rem; color: var(--lacivert); }
.bolum-bas p { margin: 0 auto; color: var(--soluk); max-width: 560px; }

/* ===== Butonlar ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 99px; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sari { background: var(--vurgu); color: #1e293b; box-shadow: 0 8px 20px rgba(245, 158, 11, .35); }
.btn-sari:hover { background: #fbbf24; }
.btn-cizgi { background: rgba(255, 255, 255, .08); color: #fff; border: 2px solid rgba(255, 255, 255, .45); }
.btn-yesil { background: var(--ana); color: #fff; box-shadow: 0 8px 20px rgba(13, 148, 136, .3); }
.btn-yesil:hover { background: var(--ana-koyu); }

/* ===== Yazı (konu) sayfası ===== */
.yazi-duzen { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.yazi {
  background: var(--kart); border: 1px solid var(--cizgi);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--golge-kucuk);
}
.yazi h2 {
  color: var(--lacivert); font-size: 1.5rem; margin: 36px 0 12px;
  padding-left: 14px; border-left: 5px solid var(--ana); scroll-margin-top: 90px;
}
.yazi h2:first-child { margin-top: 0; }
.yazi p { margin: 0 0 14px; }

.bilgi, .ozet, .dikkat {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; margin: 20px 0;
}
.bilgi::before, .ozet::before { font-size: 1.5rem; line-height: 1.2; }
.bilgi { background: #ecfdf5; border: 1px solid #a7f3d0; }
.bilgi::before { content: "💡"; }
.ozet { background: var(--vurgu-acik); border: 1px solid #fde68a; flex-direction: column; gap: 4px; }
.ozet::before { content: "📝 Kısa Özet"; font-size: 1.05rem; font-weight: 800; color: #92400e; }
.ozet > strong { display: none; }
.ozet ul { margin: 4px 0 0; padding-left: 20px; }
.ozet li { margin: 4px 0; }

.sekil { margin: 22px 0; }
.sekil svg { width: 100%; height: auto; display: block; }

table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 16px 0; border: 1px solid var(--cizgi); border-radius: 12px; overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--cizgi); }
tr:last-child td { border-bottom: none; }
th { background: var(--lacivert-2); color: #fff; font-weight: 700; }
tr:nth-child(even) td { background: #f8fafc; }
.tablo-kap { overflow-x: auto; }

/* Yan menü */
.yan { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.yan-kutu {
  background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--golge-kucuk);
}
.yan-kutu h3 { margin: 0 0 10px; font-size: 1rem; color: var(--lacivert); }
.icindekiler { list-style: none; margin: 0; padding: 0; counter-reset: ic; }
.icindekiler li { counter-increment: ic; }
.icindekiler a {
  display: flex; gap: 10px; padding: 7px 0; text-decoration: none; color: var(--lacivert-2);
  font-weight: 600; font-size: .95rem; border-bottom: 1px dashed var(--cizgi);
}
.icindekiler li:last-child a { border-bottom: none; }
.icindekiler a::before {
  content: counter(ic); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ana-acik); color: var(--ana-koyu); font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.icindekiler a:hover { color: var(--ana); }
.yan-test {
  background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; border: none;
}
.yan-test h3 { color: #fff; }
.yan-test p { margin: 0 0 14px; opacity: .85; font-size: .95rem; }

.konu-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.konu-meta span {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  padding: 5px 14px; border-radius: 99px; font-size: .9rem; font-weight: 700;
}

/* ===== Reklam alanları =====
   AdSense kodu eklenene kadar boş kutular gizli kalır. */
.reklam { margin: 28px 0; text-align: center; }
.reklam:empty { display: none; }

/* ===== Test ===== */
.test {
  margin-top: 40px; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, #f0fdfa, #ffffff); border: 1px solid #99f6e4;
  scroll-margin-top: 90px;
}
.test > h2 { border: none; padding: 0; margin: 0 0 6px; }
.test-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.test-ilerleme { flex: 1; min-width: 160px; height: 10px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.test-ilerleme div { height: 100%; width: 0; background: linear-gradient(90deg, #14b8a6, #f59e0b); border-radius: 99px; transition: width .3s; }
.test-sayac { font-weight: 800; color: var(--ana-koyu); font-size: .95rem; }

.soru {
  background: #fff; border: 1px solid var(--cizgi);
  border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: var(--golge-kucuk);
}
.soru p { margin: 0 0 12px; font-weight: 800; color: var(--lacivert); }
.secenek {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 2px solid var(--cizgi); border-radius: 12px;
  padding: 11px 14px; margin: 8px 0; cursor: pointer; font-size: 1rem;
  font-family: inherit; color: var(--yazi); transition: border-color .15s, background .15s;
}
.secenek .harf {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: #f1f5f9; color: var(--lacivert-2); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.secenek:hover:not(:disabled) { border-color: var(--ana); background: #f0fdfa; }
.secenek:disabled { cursor: default; }
.secenek.dogru { background: #dcfce7; border-color: var(--dogru); }
.secenek.dogru .harf { background: var(--dogru); color: #fff; }
.secenek.yanlis { background: #fee2e2; border-color: var(--yanlis); }
.secenek.yanlis .harf { background: var(--yanlis); color: #fff; }
.aciklama {
  margin-top: 10px; font-size: .95rem; color: var(--lacivert-2); display: none;
  background: #f8fafc; border-radius: 10px; padding: 10px 14px;
}
.sonuc {
  display: none; text-align: center; padding: 28px 20px; border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff;
}
.sonuc-puan { font-size: 3rem; font-weight: 900; line-height: 1; margin: 6px 0; }
.sonuc-mesaj { font-size: 1.1rem; margin: 0 0 16px; opacity: .9; }

/* ===== Üniteler arası geçiş ===== */
.unite-gecis { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.unite-gecis a {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--radius);
  padding: 18px 22px; color: var(--lacivert); font-weight: 800; box-shadow: var(--golge-kucuk);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.unite-gecis a:hover { transform: translateY(-3px); box-shadow: var(--golge); border-color: #99f6e4; }
.unite-gecis small { color: var(--ana); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.unite-gecis .gecis-sonraki { text-align: right; grid-column: 2; }

/* Kavram kartları (konu içinde) */
.kavramlar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 18px 0; }
.kavram { background: #f8fafc; border: 1px solid var(--cizgi); border-radius: 14px; padding: 14px 16px; }
.kavram b { display: block; color: var(--ana-koyu); margin-bottom: 2px; }
.kavram span { font-size: .95rem; color: var(--lacivert-2); }
.formul {
  text-align: center; font-size: 1.25rem; font-weight: 800; color: var(--lacivert);
  background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 14px; padding: 14px; margin: 18px 0;
}
.formul small { display: block; font-size: .85rem; font-weight: 600; color: var(--soluk); margin-top: 4px; }
.sekil figcaption { text-align: center; font-size: .88rem; color: var(--soluk); margin-top: 6px; }

/* ===== Alt bilgi ===== */
.alt { background: var(--lacivert); color: #cbd5e1; margin-top: 40px; font-size: .95rem; }
.alt-izgara {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px;
}
.alt .logo { color: #fff; margin-bottom: 12px; }
.alt p { margin: 0; max-width: 340px; color: #94a3b8; }
.alt h4 { color: #fff; margin: 4px 0 12px; font-size: 1rem; }
.alt ul { list-style: none; margin: 0; padding: 0; }
.alt li { margin: 6px 0; }
.alt a { color: #cbd5e1; text-decoration: none; }
.alt a:hover { color: #5eead4; }
.alt-son {
  border-top: 1px solid #1e293b; padding-top: 18px; padding-bottom: 22px;
  color: #64748b; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ===== Duyarlı tasarım ===== */
@media (max-width: 900px) {
  .yazi-duzen { grid-template-columns: 1fr; }
  .yan { position: static; order: -1; }
  .yan-test { display: none; }
}

@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 10px 16px 16px; border-bottom: 1px solid var(--cizgi);
    box-shadow: var(--golge);
  }
  .menu.acik { display: flex; }
  .menu a { padding: 12px 14px; }
  .menu a.menu-lgs { margin: 6px 0 0; text-align: center; }
  .alt-izgara { grid-template-columns: 1fr 1fr; }
  .alt-izgara > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .sayfa-bas { padding: 32px 0 48px; }
  .sayfa-bas h1 { font-size: 1.75rem; }
  .bolum { margin: 40px 0; }
  .bolum-bas h2 { font-size: 1.6rem; }
  .yazi { padding: 22px 18px; }
  .test { padding: 18px 14px; }
  .unite-gecis { grid-template-columns: 1fr; }
  .unite-gecis .gecis-sonraki { grid-column: 1; }
}
