/* ==========================================================================
   GLOLAI — fütüristik bilim kurgu kitap sitesi
   assets/css/main.css
   --------------------------------------------------------------------------
   Bölümler:
   1. Tema değişkenleri      5. Hero
   2. Reset & temel          6. Bileşenler (kart, zaman çizelgesi, görsel)
   3. Yardımcı sınıflar      7. Okuma görünümü (bölüm sayfası)
   4. Navigasyon             8. Footer & responsive
   ========================================================================== */

/* 1. TEMA ---------------------------------------------------------------- */
:root {
  --bg:          #05070d;
  --bg-2:        #080d17;
  --bg-3:        #0b1322;
  --surface:     rgba(255, 255, 255, .035);
  --surface-2:   rgba(255, 255, 255, .06);
  --line:        rgba(120, 200, 255, .14);
  --line-strong: rgba(120, 200, 255, .30);

  --text:        #dfe7f2;
  --text-strong: #f4f8ff;
  --muted:       #8b98ad;
  --muted-2:     #65718a;

  --cyan:        #35e0ff;
  --amber:       #ffa552;
  --violet:      #a97bff;
  --accent:      var(--cyan);

  --font-ui:     'Space Grotesk', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-read:   'Literata', ui-serif, Georgia, 'Times New Roman', serif;
  --font-mono:   'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw:        1180px;
  --readw:       42rem;
  --radius:      14px;
  --radius-lg:   22px;

  --read-size:   1.125rem;   /* JS ile değiştirilir */
  --ease:        cubic-bezier(.22, .61, .36, 1);
}

/* Açık okuma modu — <html data-theme="light"> */
[data-theme="light"] {
  --bg:          #f3f1ea;
  --bg-2:        #ece9e0;
  --bg-3:        #e4e0d4;
  --surface:     rgba(10, 20, 35, .035);
  --surface-2:   rgba(10, 20, 35, .07);
  --line:        rgba(20, 40, 70, .14);
  --line-strong: rgba(20, 40, 70, .28);
  --text:        #1d2430;
  --text-strong: #0d1119;
  --muted:       #5a6475;
  --muted-2:     #7a8498;
  --cyan:        #0d7f99;
  --amber:       #a85f12;
  --violet:      #6a44b8;
}

/* 2. RESET & TEMEL -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

/* Arka plan: ızgara + yumuşak ışık lekeleri */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 10%, transparent 75%);
  opacity: .5;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(53, 224, 255, .13), transparent 60%),
    radial-gradient(50rem 40rem at 95% 8%, rgba(169, 123, 255, .11), transparent 60%),
    radial-gradient(45rem 35rem at 50% 108%, rgba(255, 165, 82, .09), transparent 60%);
}
[data-theme="light"] body::after { opacity: .45; }

main, header, footer { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Izgara öğelerinin varsayılan min-width:auto değeri geniş içerikte (özellikle
   görsellerde) yatay taşmaya yol açar — her yerde sıfırlıyoruz. */
.hero__grid > *,
.grid > *,
.footer__grid > *,
.chapter-nav > *,
.chapter-card > * { min-width: 0; }

p, h1, h2, h3, h4, li { overflow-wrap: break-word; }

a { color: var(--cyan); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text-strong); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); }
p  { margin: 0 0 1.1em; }

/* 3. YARDIMCI SINIFLAR ---------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--cyan); color: #04121a; padding: .7rem 1.1rem;
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.lede {
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  color: var(--muted);
  max-width: 44rem;
  line-height: 1.75;
}

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-ui); font-size: .95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #6ef0ff 55%, var(--violet));
  color: #04121a;
  box-shadow: 0 10px 34px -12px rgba(53, 224, 255, .75);
}
.btn--primary:hover { color: #04121a; box-shadow: 0 16px 42px -12px rgba(53, 224, 255, .9); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--text-strong); background: var(--surface-2); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* 4. NAVİGASYON ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text-strong); }
.brand:hover { color: var(--text-strong); }
.brand__mark {
  width: 30px; height: 30px; flex: none;
  border: 1.5px solid var(--cyan); border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
  color: var(--cyan);
  box-shadow: 0 0 22px -6px var(--cyan), inset 0 0 14px -8px var(--cyan);
}
.brand__text { font-weight: 600; letter-spacing: .2em; font-size: .95rem; }
.brand__text span { color: var(--muted-2); font-weight: 400; letter-spacing: .1em; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  color: var(--muted); font-size: .9rem; font-weight: 500;
  padding: .5rem .8rem; border-radius: 8px;
}
.nav__links a:hover, .nav__links a[aria-current="page"] {
  color: var(--text-strong); background: var(--surface);
}

.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.icon-btn svg { width: 18px; height: 18px; }

.nav__toggle { display: none; }

/* Mobil menü */
@media (max-width: 820px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: .6rem 1.25rem 1.3rem;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    box-shadow: 0 30px 60px -30px #000;
  }
  .nav__links[data-open="true"] { transform: translateY(0); }
  .nav__links a { padding: .85rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
}

/* Okuma ilerleme çubuğu */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110;
  background: transparent; pointer-events: none;
}
.progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--amber));
  box-shadow: 0 0 14px -2px var(--cyan);
  transition: width .1s linear;
}

/* 5. HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 7.5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  margin-bottom: 1.2rem;
  background: linear-gradient(120deg, var(--text-strong) 25%, var(--cyan) 65%, var(--violet));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0;
}
.chip {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px;
  padding: .4rem .85rem; background: var(--surface);
}
.chip--live { color: var(--cyan); border-color: var(--line-strong); }
.chip--live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .5rem;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Kapak görseli */
.cover {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 40px 90px -40px rgba(53, 224, 255, .45), 0 0 0 1px rgba(255,255,255,.02) inset;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.cover:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }
.cover img { width: 100%; display: block; }
.cover__tag {
  position: absolute; right: 1rem; bottom: 1rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em;
  color: var(--cyan); background: rgba(5, 7, 13, .72);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: .35rem .8rem;
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cover { transform: none; order: -1; }
}

/* 6. BİLEŞENLER ----------------------------------------------------------- */

/* Kart ızgarası */
.grid { display: grid; gap: 1.1rem; }
/* min(...) sarmalı, 320px'ten dar ekranlarda sütunun kabı taşırmasını önler */
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(265px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
  position: relative;
  background: linear-gradient(160deg, var(--surface), transparent 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(22rem 14rem at var(--mx, 50%) var(--my, 0%), rgba(53,224,255,.10), transparent 70%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__num {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em;
  color: var(--cyan); display: block; margin-bottom: .8rem;
}

/* Bölüm listesi */
.chapters { display: grid; gap: .9rem; }
.chapter-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1.4rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(110deg, var(--surface), transparent 75%);
  color: var(--text);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.chapter-card:hover {
  border-color: var(--cyan); color: var(--text);
  transform: translateX(4px);
  background: linear-gradient(110deg, var(--surface-2), transparent 75%);
}
.chapter-card__no {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700;
  color: var(--cyan); opacity: .55; min-width: 2.6rem;
}
.chapter-card__title { font-size: 1.15rem; font-weight: 600; color: var(--text-strong); margin: 0 0 .2rem; }
.chapter-card__desc { font-size: .9rem; color: var(--muted); margin: 0; }
.chapter-card__go {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  color: var(--cyan); white-space: nowrap;
}
.chapter-card--soon { opacity: .55; pointer-events: none; }
.chapter-card--soon .chapter-card__go { color: var(--muted-2); }

@media (max-width: 620px) {
  .chapter-card { grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 1.15rem; }
  .chapter-card__go { grid-column: 2; }
}

/* Zaman çizelgesi */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: .52rem; top: .4rem; bottom: .4rem; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), var(--amber), transparent);
  opacity: .5;
}
.timeline__item { position: relative; padding-bottom: 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -2.2rem; top: .45rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
  box-shadow: 0 0 16px -2px var(--cyan);
}
.timeline__date {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .16em;
  color: var(--amber); text-transform: uppercase;
}
.timeline__item h3 { margin: .35rem 0 .35rem; font-size: 1.15rem; }
.timeline__item p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Alıntı bloğu */
.pullquote {
  border-left: 2px solid var(--cyan);
  padding: .4rem 0 .4rem 1.6rem;
  margin: 2.5rem 0;
  font-family: var(--font-read);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.55; color: var(--text-strong); font-style: italic;
}
.pullquote cite {
  display: block; margin-top: .8rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em;
  color: var(--muted); font-style: normal; text-transform: uppercase;
}

/* --- GÖRSEL ALANI: bölüm araları -----------------------------------------
   Gerçek görsel eklemek için: <img src> yolunu değiştir, alt metnini yaz,
   figcaption'ı güncelle (ya da sil). Oran 16:9 önerilir (1600x900+).      */
.plate {
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
}
.plate figure { margin: 0; }
.plate__frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 30px 70px -40px rgba(53, 224, 255, .5);
}
.plate__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.plate__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 13, .35));
}
.plate__badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .22em;
  color: var(--cyan); background: rgba(5, 7, 13, .7);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: .3rem .75rem; backdrop-filter: blur(6px);
}
.plate figcaption {
  margin-top: .85rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em;
  color: var(--muted-2); text-align: center;
}

/* Tam genişlik görsel (okuma sütunundan taşar) */
.plate--wide { width: min(100%, 68rem); margin-inline: auto; }

/* 7. OKUMA GÖRÜNÜMÜ -------------------------------------------------------- */
.reader { padding: clamp(2rem, 6vw, 3.5rem) 0 4rem; }

.reader__header { text-align: center; max-width: 48rem; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.reader__kicker {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--cyan);
}
.reader__header h1 { margin: 1rem 0 .8rem; font-size: clamp(2.1rem, 6vw, 3.6rem); }
.reader__facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.4rem;
}

.prose {
  width: min(100%, var(--readw));
  margin-inline: auto;
  font-family: var(--font-read);
  font-size: var(--read-size);
  line-height: 1.85;
  color: var(--text);
  letter-spacing: .002em;
}
.prose p { margin: 0 0 1.35em; }
.prose .dropcap::first-letter {
  float: left; font-size: 3.6em; line-height: .82; padding: .06em .12em 0 0;
  color: var(--cyan); font-weight: 600;
}
.prose .dialogue {
  margin-left: 1.2rem; padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
  color: var(--text-strong);
}
.prose .whisper {
  font-style: italic; color: var(--amber);
}
.prose ol, .prose ul { margin: 0 0 1.5em; padding-left: 1.4rem; }
.prose li { margin-bottom: .6em; }
.prose strong { color: var(--text-strong); }

/* Bölüm başlığı (okuma içinde) */
.scene {
  margin: clamp(2.8rem, 7vw, 4.5rem) 0 1.8rem;
  width: min(100%, var(--readw)); margin-inline: auto;
  scroll-margin-top: 90px;
}
.scene__rule {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem;
}
.scene__rule::before, .scene__rule::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.scene__no {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .3em;
  color: var(--cyan); white-space: nowrap;
}
.scene h2 {
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  text-align: center; margin: 0;
}

/* Anlaşma maddeleri gibi özel blok */
.accord {
  width: min(100%, var(--readw)); margin: 2rem auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), transparent 80%);
  padding: 1.6rem 1.7rem 1.2rem;
}
.accord__title {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem;
}
.accord ol { counter-reset: a; list-style: none; padding: 0; margin: 0; font-family: var(--font-read); }
.accord li {
  counter-increment: a; position: relative; padding-left: 2.6rem; margin-bottom: 1rem;
  font-size: .98rem; line-height: 1.7;
}
.accord li::before {
  content: counter(a, decimal-leading-zero);
  position: absolute; left: 0; top: .1rem;
  font-family: var(--font-mono); font-size: .8rem; color: var(--amber); opacity: .85;
}

/* Sistem mesajı / terminal bloğu */
.terminal {
  width: min(100%, var(--readw)); margin: 2.5rem auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #04070e; overflow: hidden;
  box-shadow: 0 24px 60px -34px var(--cyan);
}
[data-theme="light"] .terminal { background: #10151f; }
.terminal__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; color: #6f7f96;
}
.terminal__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.terminal__body {
  padding: 1.6rem 1.4rem; font-family: var(--font-mono);
  font-size: .95rem; line-height: 1.8; color: #9ff0ff;
}
.terminal__body .sys { color: #5f7085; display: block; font-size: .78rem; letter-spacing: .14em; }

/* Okuma araç çubuğu */
.readbar {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: flex; flex-direction: column; gap: .5rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid var(--line); border-radius: 14px;
  padding: .45rem; backdrop-filter: blur(14px);
  box-shadow: 0 20px 44px -26px #000;
}
@media (max-width: 620px) {
  .readbar { flex-direction: row; right: .75rem; bottom: .75rem; }
}

/* Bölüm sonu navigasyonu */
.chapter-nav {
  width: min(100%, 52rem); margin: 4rem auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.chapter-nav a {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; color: var(--text);
  transition: border-color .25s var(--ease), background .25s var(--ease);
  background: var(--surface);
}
.chapter-nav a:hover { border-color: var(--cyan); color: var(--text); }
.chapter-nav span {
  display: block; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .2em; color: var(--muted-2); margin-bottom: .3rem;
}
.chapter-nav strong { font-weight: 600; color: var(--text-strong); }
.chapter-nav .is-disabled { opacity: .4; pointer-events: none; }
.chapter-nav .ta-right { text-align: right; }
@media (max-width: 560px) { .chapter-nav { grid-template-columns: 1fr; } }

/* Son not */
.endnote {
  width: min(100%, var(--readw)); margin: 3rem auto 0;
  text-align: center; font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .2em; color: var(--muted-2);
}
.endnote::before {
  content: "◆ ◆ ◆"; display: block; color: var(--cyan);
  opacity: .5; margin-bottom: 1.2rem; letter-spacing: .5em;
}

/* 8. FOOTER --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, transparent, var(--bg-2));
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer h4 {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer li a { color: var(--muted); font-size: .92rem; }
.footer li a:hover { color: var(--cyan); }
.footer__bottom {
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--muted-2);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* Giriş animasyonu — yalnızca JS çalışıyorsa gizle, aksi hâlde içerik hep görünür */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* Baskı */
@media print {
  .nav, .readbar, .progress, .footer, .chapter-nav, .plate__badge { display: none !important; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .prose { font-size: 11pt; width: 100%; }
}
