/*
  Belirtec sistemi — docs/tasarim/panel-taslak.html, 2. tur (14 Eylul 2026).

  Butun sayfalar bu dosyayi ve `app.css`i kullanir. Bilesen kurallari ham renk
  yazmaz; renkler yalniz burada, belirtec olarak tanimli.

  VARSAYILAN KOYU. Kok (`:root`) koyu paleti tasir: uc katman derinlik —
  menu `--bg-2` (bir tik koyu), ana zemin `--bg` (#1A1D21), kartlar
  `--surface` (bir tik acik). Acik tema krem degil, soguk acik gri: ayni
  katmanlarin aydinlik karsiligi — tema degisince "baska bir program acildi"
  hissi olmasin.

  TEMA uc durumlu: `<html data-theme="dark">`, `data-theme="light"` ya da
  oznitelik yok (isletim sisteminin tercihi; tercih yoksa koyu). Oznitelik
  SUNUCUDA basiliyor (`web/kabuk.py: tema_ozniteligi`); cerez yoksa koyu basilir.
  Acik degerler iki kez yazili: bir `prefers-color-scheme: light` icinde
  (oznitelik yokken), bir `[data-theme="light"]` icinde. Ikisi ayni kalmali;
  `tests/test_kabuk.py` karsilastiriyor.

  VURGU: tozlu mavi (accent), soluk amber (attn), gul kurusu (bad), adacayi
  (good) — ayni doygunlukta, hicbiri digerini bastirmiyor.

  KONTRAST: metin belirtecleri kullanildiklari zeminlere gore en az 4,5:1
  (WCAG AA). Taslaktan AYRILAN degerler — hepsinde ton ayni, yalniz aciklik:
  - koyu `--ink-3` #7E8892 -> #8D969F: kart zemininde 4,22, ikinci kart
    zemininde 3,85'ti (etiket ve ipucu metni orada duruyor).
  - acik `--ink-3` #7E8892 -> #5F6770: acik zeminlerin hepsinde 2,9–3,5'ti.
  - acik `--attn` #8C6A28 -> #816225, `--bad` #9C5348 -> #985146, `--good`
    #427D63 -> #3C725B: kendi yumusak zeminlerinde (rozet, uyari kutusu)
    sirasiyla 4,06 / 4,43 / 4,01'di.
  Test hesapliyor; yeni bir cift eklenirse orada da sinanir.

  CANLI MOD rengi (`--live`) paletin disinda ve bilerek doygun: fiyat
  gercekten yazilirken ekrana bakan herkes fark etmeli. Baska yerde kullanilmaz.

  YAZI TIPI: Roboto (arayuz) ve Roboto Mono (rakam, kod) — `static/fonts`
  altinda, kendimiz sunuyoruz (SIL OFL; kaynak `scripts/yazi_tipleri.py`).
  Google Fonts'a hicbir istek gitmez.
*/

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/roboto-400.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/roboto-500.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/roboto-700.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/roboto-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/roboto-mono-500.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* --- renk: katmanlar --- */
  --bg: #1a1d21;
  --bg-2: #15181b;
  --surface: #22262b;
  --surface-2: #282d33;
  --line: #2f353b;
  --line-2: #262b31;
  --hover: rgba(255, 255, 255, 0.055);
  --rail-active: #233040;

  /* --- renk: metin --- */
  --ink: #e7ebef;
  --ink-2: #a6b0ba;
  --ink-3: #8d969f;

  /* --- renk: vurgu --- */
  --accent: #8fb4d9;
  --accent-ink: #13202c;
  --accent-soft: #1f2b36;
  --accent-deep: #aecae6;
  --attn: #d9be7e;
  --attn-soft: #2e2a1c;
  --bad: #d99e96;
  --bad-soft: #31211f;
  --good: #8fc2a6;
  --good-soft: #1c2c24;
  --live: #ff6b5a;
  --live-ink: #1a0503;
  --focus: #8fb4d9;

  /* --- golge ve bicim --- */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.45);
  --sh-2: 0 1px 3px rgba(0, 0, 0, 0.55), 0 10px 24px -12px rgba(0, 0, 0, 0.85);
  --r-card: 16px;
  --r-ctl: 10px;
  --r-pill: 999px;

  /* --- rapor paleti (RAPORLAMA.md 3.2 ve 5) ---
     Goz karari secilmedi; degistirilirse dogrulayici yeniden kosulmali. */
  --chart-1: #3987e5;
  --chart-2: #d95926;
  --chart-3: #199e70;
  --chart-neutral: #383835;
  --chart-hike: #e66767;
  --chart-seq: #3987e5;
  --chart-accent: #d95926;
  --chart-muted: #4b4b48;
  --chart-empty: #3a3a37;
  --chart-grid: #374151;

  /* --- tipografi --- */
  --font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Roboto Mono'da ₺ yok: bir sonraki aile Roboto, sistem yazi tipi degil. */
  --font-mono: "Roboto Mono", "Roboto", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --text-2xs: 0.68rem;
  --text-xs: 0.74rem;
  --text-sm: 0.83rem;
  --text-base: 0.906rem;
  --text-md: 1.02rem;
  --text-lg: 1.5rem;
  --text-xl: 2.15rem;

  /* --- bosluk --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: 30px;
  --rail-width: 238px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #edf0f3;
    --bg-2: #e3e7ec;
    --surface: #fafbfc;
    --surface-2: #f2f5f7;
    --line: #dce1e6;
    --line-2: #e8ecf0;
    --hover: rgba(0, 0, 0, 0.045);
    --rail-active: #d7e4ee;
    --ink: #1a1d21;
    --ink-2: #535c66;
    --ink-3: #5f6770;
    --accent: #41708f;
    --accent-ink: #ffffff;
    --accent-soft: #dfe9f0;
    --accent-deep: #2f5a76;
    --attn: #816225;
    --attn-soft: #f1e7d2;
    --bad: #985146;
    --bad-soft: #f2e1dc;
    --good: #3c725b;
    --good-soft: #e0ede5;
    --live: #a3261b;
    --live-ink: #ffffff;
    --focus: #41708f;
    --sh-1: 0 1px 2px rgba(26, 29, 33, 0.05), 0 1px 3px rgba(26, 29, 33, 0.04);
    --sh-2: 0 1px 3px rgba(26, 29, 33, 0.06), 0 8px 20px -10px rgba(26, 29, 33, 0.16);
    --chart-1: #2a78d6;
    --chart-2: #eb6834;
    --chart-3: #1baf7a;
    --chart-neutral: #f0efec;
    --chart-hike: #e34948;
    --chart-seq: #2a78d6;
    --chart-accent: #eb6834;
    --chart-muted: #c9c8c4;
    --chart-empty: #d8d7d3;
    --chart-grid: #e5e7eb;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf0f3;
  --bg-2: #e3e7ec;
  --surface: #fafbfc;
  --surface-2: #f2f5f7;
  --line: #dce1e6;
  --line-2: #e8ecf0;
  --hover: rgba(0, 0, 0, 0.045);
  --rail-active: #d7e4ee;
  --ink: #1a1d21;
  --ink-2: #535c66;
  --ink-3: #5f6770;
  --accent: #41708f;
  --accent-ink: #ffffff;
  --accent-soft: #dfe9f0;
  --accent-deep: #2f5a76;
  --attn: #816225;
  --attn-soft: #f1e7d2;
  --bad: #985146;
  --bad-soft: #f2e1dc;
  --good: #3c725b;
  --good-soft: #e0ede5;
  --live: #a3261b;
  --live-ink: #ffffff;
  --focus: #41708f;
  --sh-1: 0 1px 2px rgba(26, 29, 33, 0.05), 0 1px 3px rgba(26, 29, 33, 0.04);
  --sh-2: 0 1px 3px rgba(26, 29, 33, 0.06), 0 8px 20px -10px rgba(26, 29, 33, 0.16);
  --chart-1: #2a78d6;
  --chart-2: #eb6834;
  --chart-3: #1baf7a;
  --chart-neutral: #f0efec;
  --chart-hike: #e34948;
  --chart-seq: #2a78d6;
  --chart-accent: #eb6834;
  --chart-muted: #c9c8c4;
  --chart-empty: #d8d7d3;
  --chart-grid: #e5e7eb;
}
