/* OTNOD — temel stil. Renkler temadan gelir (js/tema.js → :root değişkenleri).
   Yazı tipi: DM Sans (metin) + Outfit (bütün sayılar, eşit genişlikte rakam) — ana belge 3.18. */

@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(../yazi/dm-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(../yazi/dm-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(../yazi/dm-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(../yazi/dm-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(../yazi/dm-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(../yazi/dm-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(../yazi/dm-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(../yazi/dm-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url(../yazi/outfit-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url(../yazi/outfit-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url(../yazi/outfit-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url(../yazi/outfit-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url(../yazi/outfit-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url(../yazi/outfit-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url(../yazi/outfit-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url(../yazi/outfit-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Tema 1 Orijinal açık mod — tema yüklenene kadar yedek değerler */
  --bg: #F3F5F7; --sf: #FFFFFF; --tx: #13212F; --mt: #5B6875; --ln: #E2E7EC; --ac: #0E7C70; --onac: #FFFFFF;
  --hero: #13212F; --herotx: #FFFFFF; --heromt: #C9D3DC; --track: #2A3B4C; --teal: #3FC1A9; --gold: #F0B44C;
  /* Performans renkleri — ton seti C, bütün temalarda aynı (tasarim/F3_PERFORMANS_RENKLERI.md) */
  --p-yesil: #12B886; --p-yesil-yazi: #0C7257; --p-sari: #F2BD0D; --p-sari-yazi: #7F610D; --p-kirmizi: #B81422; --p-kirmizi-yazi: #B81422;
  --metin: 'DM Sans', system-ui, sans-serif;
  --sayi: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --alt-yukseklik: 64px;
}
:root[data-mod="koyu"] {
  --p-yesil: #3EE0A8; --p-yesil-yazi: #3EE0A8; --p-sari: #F4C325; --p-sari-yazi: #F4C325; --p-kirmizi: #D22D48; --p-kirmizi-yazi: #DF617C;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--tx);
  font-family: var(--metin); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.sayi, .sayi * { font-family: var(--sayi); font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; }

.kok { min-height: 100%; display: flex; flex-direction: column; }
.ekran {
  flex: 1; width: 100%; max-width: 560px; margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(var(--alt-yukseklik) + 24px + env(safe-area-inset-bottom));
  outline: none;
}

/* Alt çubuk — renksiz (soluk yazı rengi), açık sekme tema vurgusu (arayüz simge BENIOKU) */
.altcubuk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center;
  background: color-mix(in srgb, var(--sf) 94%, transparent);
  border-top: 1px solid var(--ln);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.altcubuk .ic { display: flex; width: 100%; max-width: 560px; }
.sekme {
  flex: 1; height: var(--alt-yukseklik); border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--mt); font-size: 11.5px; font-weight: 500;
}
.sekme .simge { width: 23px; height: 23px; }
.sekme[aria-current="page"] { color: var(--ac); }
.sekme[aria-current="page"] span:last-child { font-weight: 700; }

.simge { display: inline-block; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* Başlık ve kartlar */
.baslik { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.baslik h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.baslik .geri { border: 0; background: none; padding: 6px; margin-left: -6px; cursor: pointer; color: var(--tx); }
.kart { background: var(--sf); border: 1px solid var(--ln); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.kart h2 { margin: 0 0 6px; font-size: 17px; }
.soluk { color: var(--mt); }
.kucuk { font-size: 13px; }

/* Kahraman kartı (Bugün halkası) */
/* Bugün halkası ortada (KESİN Bugün taslağı ve açılış sekansı f3_09: amblem halkanın tam yerinde çizilir) */
.kahraman { background: var(--hero); color: var(--herotx); border-radius: 24px; padding: 22px 20px; margin-bottom: 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.kahraman .tarih { color: var(--heromt); font-size: 14px; }
.kahraman .not { color: var(--heromt); font-size: 13px; margin-top: 6px; }
.halka { width: 140px; height: 140px; flex: none; }
.halka .iz { stroke: var(--track); }
.halka .dolgu { stroke: var(--teal); }
.halka text { fill: var(--herotx); font-family: var(--sayi); font-weight: 600; }

/* Listeler ve seçimler */
.satir { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--ln); cursor: pointer;
  background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.satir:first-child { border-top: 0; }
.satir .ad { flex: 1; }
.satir .cerceve { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--ln); display: grid; place-items: center; }
.secimler { display: flex; gap: 8px; flex-wrap: wrap; }
.secim { border: 1px solid var(--ln); background: var(--sf); color: var(--tx); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.secim[aria-pressed="true"] { background: var(--ac); color: var(--onac); border-color: var(--ac); }
.temalar { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tema-kart { border: 2px solid var(--ln); border-radius: 16px; padding: 10px; cursor: pointer; text-align: left; background: var(--sf); }
.tema-kart[aria-pressed="true"] { border-color: var(--ac); }
.tema-kart[disabled] { opacity: .45; cursor: default; }
.tema-ornek { height: 46px; border-radius: 10px; display: flex; overflow: hidden; margin-bottom: 8px; border: 1px solid rgba(0,0,0,.06); }
.tema-ornek span { flex: 1; }
.tema-kart .no { font-family: var(--sayi); color: var(--mt); font-size: 12px; }

.rozet-yakinda { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--ln); color: var(--mt); }

/* Seçim ekranı (ilk açılış) */
.secim-ekrani { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.secim-ad { font-family: var(--sayi); font-weight: 700; font-size: 30px; letter-spacing: 8px; padding-left: 8px; }
.buyuk-dugme { width: 100%; max-width: 320px; border: 0; border-radius: 14px; padding: 15px 18px; margin: 6px 0; cursor: pointer;
  background: var(--ac); color: var(--onac); font-weight: 600; font-size: 16px; }
.buyuk-dugme.ikincil { background: var(--sf); color: var(--tx); border: 1px solid var(--ln); }
.buyuk-dugme:disabled { opacity: .6; }
.hata { color: var(--p-kirmizi-yazi); margin-top: 16px; font-size: 14px; }
/* Tanıtım bandı */
.tanitim-bant { position: sticky; top: 0; z-index: 20; text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 10px;
  background: var(--gold); color: #13212F; }
/* Açılış sekansı katmanı */
.acilis { position: fixed; inset: 0; z-index: 100; }
.acilis-zemin { position: absolute; inset: 0; background: linear-gradient(160deg, #1E3348, #0B141C); }
.acilis svg { position: absolute; overflow: visible; }
.acilis-ad { position: absolute; left: 0; right: 0; text-align: center; font: 700 26px var(--sayi); letter-spacing: 8px; padding-left: 8px; color: #fff; opacity: 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
