/* Yasal sayfalar (/privacy, /privacy/<uygulama>, /terms, /demo-notice). Kâğıt ve tükenmez kalem:
   beyaz zemin, siyah mürekkep, bağlantılarda tek mavi. Uzun metin rahat okunsun diye başka süs yok.
   BAĞIMSIZDIR: style.css'i yüklemez. Yazı tipleri sitenin kendi sunucusundan gelir, üçüncü taraf istek yoktur. */
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url('/ana/fonts/unbounded-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url('/ana/fonts/unbounded-latin-ext-800.woff2') format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('/ana/fonts/onest-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('/ana/fonts/onest-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url('/ana/fonts/onest-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url('/ana/fonts/onest-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; }

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #111111;
  --muted: #5f5f5f;
  --accent: #1a4be0;
  --line: #d9d9d9;
  --max-width: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 400 clamp(1.0625rem, 1rem + 0.2vw, 1.125rem)/1.65 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-thickness 120ms; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 32px); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; font-weight: 500; }
.skip:focus { left: 12px; }

/* Üst şerit */
.site-header { background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.logo { color: var(--ink); font: 800 0.9375rem/1 'Unbounded', 'Arial Black', sans-serif; letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; }
.logo:hover { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 18px; }
.home-link { color: var(--ink); text-decoration: none; }
.home-link:hover { color: var(--accent); text-decoration: underline; }
html:not(.js) .home-link + .home-link::before { content: ' | '; color: var(--muted); }
.js[data-lang="en"] .home-link[lang="tr"], .js[data-lang="tr"] .home-link[lang="en"] { display: none; }
.lang-toggle { display: inline-flex; gap: 4px; }
.lang-toggle button { font: inherit; color: var(--muted); background: none; border: 0; padding: 4px 8px; cursor: pointer; }
.lang-toggle button:hover { color: var(--ink); background: var(--surface); }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-links { display: none; }
html:not(.js) .lang-toggle { display: none; }
html:not(.js) .lang-links { display: inline; }

/* Sayfa düzeni */
main { padding: clamp(32px, 5vw, 72px) 0 clamp(72px, 8vw, 120px); }
.doc-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.yan { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding: 4px 6px 4px 4px; }
.toc { font-size: 0.9375rem; line-height: 1.4; }
.uyg-nav { margin: 0 0 24px; padding: 14px 14px 10px; background: var(--surface); }
.uyg-baslik { margin: 0 0 6px; font-weight: 500; color: var(--muted); font-size: 0.9375rem; }
.uyg-nav ul { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.uyg-nav li a { display: block; padding: 5px 0; font-weight: 500; color: var(--ink); text-decoration: none; }
.uyg-nav li a::after { content: " \2192"; color: var(--accent); }
.uyg-nav li a:hover { color: var(--accent); }
.uyg-nav li a[aria-current="page"] { color: var(--accent); }
.toc summary { cursor: pointer; font-weight: 500; color: var(--ink); padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); transition: transform 160ms; }
.toc[open] > summary::before { transform: rotate(45deg); }
.toc ol { list-style: none; margin: 6px 0 0; padding: 0; }
.toc li a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; transition: color 140ms, transform 240ms var(--ease); }
.toc li a:hover { color: var(--ink); transform: translateX(3px); }
.toc li a.aktif { color: var(--accent); font-weight: 500; }

.doc { min-width: 0; }
.doc-baslik h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; margin: 0 0 18px; }
.doc-alt { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.35; margin: 0 0 6px; max-width: 48ch; }
.doc-tarih { color: var(--muted); font-size: 0.9375rem; margin: 0 0 36px; }
.ozet-kutu { background: var(--surface); padding: clamp(18px, 2.4vw, 28px); margin: 0 0 48px; max-width: 74ch; }
.ozet-kutu h2 { font-size: 1.125rem; margin: 0 0 8px; }
.ozet-kutu ul { margin: 0; padding-left: 20px; }
.ozet-kutu li { margin: 6px 0; }
.doc-body section { margin: 0 0 clamp(36px, 4vw, 56px); }
.doc-body h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 12px; max-width: 34ch; }
.doc-body h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 500; margin: 24px 0 8px; }
.doc-body p { margin: 0 0 14px; max-width: 60ch; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 22px; max-width: 60ch; }
.doc-body li { margin: 6px 0; }
.doc code { background: var(--surface); padding: 1px 6px; font-size: 0.88em; }
.doc strong { font-weight: 500; color: var(--ink); }
.iletisim-kutu { background: var(--surface); padding: 18px 22px; max-width: 68ch; }
.iletisim-kutu p { margin: 0 0 6px; }
.iletisim-kutu .mail { font-size: 1.125rem; font-weight: 500; word-break: break-all; }

/* JS varsa yalnızca seçili dil görünür; yoksa iki dil alt alta görünür */
.js[data-lang="en"] .doc[lang="tr"], .js[data-lang="tr"] .doc[lang="en"] { display: none; }
html:not(.js) .doc + .doc { margin-top: 96px; }
html:not(.js) .yan { position: static; max-height: none; }
.js[data-lang="en"] .site-footer .fl[lang="tr"], .js[data-lang="tr"] .site-footer .fl[lang="en"] { display: none; }

/* Genel gizlilik sayfası: uygulama listesi */
.doc-wrap.tek { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.uygulama { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: center; padding: 20px 22px; margin-bottom: 8px; background: var(--surface); }
.uygulama h2, .uygulama h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 500; margin: 0 0 4px; }
.uygulama-blok { margin: 0 0 40px; }
.uygulama-blok > h2 { margin: 0 0 8px; }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.4; max-width: 56ch; margin: 0 0 28px; }
.uygulama p { margin: 0 0 4px; max-width: 60ch; }
.uygulama .meta { font-size: 0.9375rem; color: var(--muted); margin: 0; }
.git-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-weight: 500; color: #fff; background: var(--accent); text-decoration: none; transition: transform 200ms var(--ease); }
.git-link:hover { color: #fff; transform: translateY(-2px); }
.liste-not { color: var(--muted); font-size: 0.9375rem; margin: 22px 0 0; }
@media (max-width: 640px) { .uygulama { grid-template-columns: 1fr; } .git-link { justify-self: start; white-space: normal; } }

/* Alt şerit: kâğıdın sonu, tek koyu alan */
.site-footer { background: var(--ink); color: #cfcfcf; padding: 28px 0 32px; font-size: 0.9375rem; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }

@media (max-width: 880px) {
  /* Telefonda başlık içindekilerden önce gelir */
  .doc-wrap { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
  .doc-body { display: contents; }
  .doc-body > * { order: 1; }
  .doc-baslik { order: -1; }
  .yan { position: static; max-height: none; overflow: visible; padding: 0; }
  .uyg-nav ul { max-height: none; }
  .toc { background: var(--surface); padding: 10px 16px; }
  .header-inner { min-height: 56px; }
}

/* Tablolar (çerez ve demo envanteri): gerçek tablo, çizgisi var */
.tablo-sar { overflow-x: auto; margin: 0 0 18px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.45; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 500; white-space: nowrap; border-bottom: 2px solid var(--ink); }
.doc tr:last-child td { border-bottom: 0; }
.uyari-kutu { background: var(--surface); padding: 16px 20px; margin: 0 0 28px; max-width: 68ch; }
.uyari-kutu p { margin: 0; }
.sayfa-bag { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 0 0 28px; padding: 0; list-style: none; }

/* Yayından önce doldurulması gereken alanlar sayfada görünür kalır (kontrol.mjs yayın öncesi bunları denetler) */
.doc .eksik { background: #fff0a8; padding: 1px 6px; }

/* Hareket: yalnız açılışta, başlık ve ilk bölümler bir kez yükselir. Okunacak metin hiçbir aşamada gizli kalmaz. */
@media (prefers-reduced-motion: no-preference) {
  .doc-baslik h1, .doc-alt, .doc-tarih, .lead, .yan, .uyg-nav, .toc, .ozet-kutu, .doc-body section:nth-of-type(-n+3), .uygulama { animation: belge-gel 800ms var(--ease) backwards; }
  .doc-alt, .lead { animation-delay: 70ms; }
  .doc-tarih, .uyg-nav { animation-delay: 130ms; }
  .yan, .toc, .ozet-kutu { animation-delay: 190ms; }
  .doc-body section:nth-of-type(-n+3), .uygulama { animation-delay: 250ms; }
}
@keyframes belge-gel { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toc summary::before { transition: none; } }
@media print {
  body { font-size: 12pt; }
  .site-header, .toc, .uyg-nav, .lang-toggle, .lang-links, .skip { display: none !important; }
  .site-footer { background: none; color: #000; }
  .doc-wrap { display: block; }
  .doc-body section, .uygulama, .yan, .toc, .uyg-nav, .ozet-kutu { animation: none; }
}
