/*
 * Copyright (c) 2026 Tayfun Şimşek. Tüm hakları saklıdır / All rights reserved.
 *
 * Purpose / Amaç: Tasarım belirteçleri — renk, tip, ölçü, köşe, gölge (§30). Kodun TEK kaynağı.
 * Reason / Gerekçe: Değerler tasarım tuvalinden (tasarim/*.dc.html, notlar/TASARIM_NOTLARI.md)
 *   alındı: asfalt menü, beton zemin, iş güvenliği turuncusu, taraf renkleri. Ekranlar renk
 *   YAZMAZ, belirteç okur. Karanlık tema tuvalde yoktu; burada aynı anlamlarla türetildi.
 * Risks / Riskler: Marka turuncusu (--c-brand) yazı rengi DEĞİLDİR (kontrast yetmez);
 *   düğme ve odak için --c-primary kullanılır (beyaz yazıyla 5.2:1). Taraf renkleri her
 *   yerde aynı anlamı taşır ve yanlarında daima yazı bulunur (§15).
 */

:root {
  color-scheme: light;

  /* Marka / brand */
  --c-primary: #c2410c;          /* birincil düğme, odak, etkin menü */
  --c-primary-press: #9a3412;
  --c-primary-soft: #fde7d9;
  --c-brand: #f97316;            /* süs — yazı rengi olarak kullanılmaz */
  --c-nav: #1b2129;              /* asfalt menü */
  --c-nav-text: #c9ced4;

  /* Yüzey / surface */
  --c-bg: #f3f1ec;               /* beton zemin */
  --c-surface: #ffffff;
  --c-surface-2: #ebe8e1;
  --c-border: #cfcac0;
  --c-text: #1b2129;
  --c-text-2: #3d434b;
  --c-text-muted: #5b6168;

  /* Anlam / meaning — durum her zaman renk + yazı (§15) */
  --c-profit: #15803d;
  --c-profit-soft: #e4f4e9;
  --c-loss: #b91c1c;
  --c-loss-soft: #fbe6e6;
  --c-warn: #9a5b00;
  --c-warn-soft: #fdf0d5;

  /* Taraflar / parties (Scope Matrix) — "Us" birincil turuncudur */
  --c-party-builder: #1d4ed8;
  --c-party-client: #0f766e;
  --c-party-other: #7e22ce;

  /* Tip / type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 19px;
  --fs-xl: 26px;

  /* Ölçü / size */
  --touch: 44px;                 /* §15 asgari dokunma alanı */
  --touch-field: 56px;           /* sahada ana düğme: eldiven */
  --rail-w: 64px;                /* telefon kenar şeridi */
  --side-w: 248px;               /* masaüstü sol menü */
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(27, 33, 41, .08), 0 3px 10px rgba(27, 33, 41, .05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --c-primary: #f2763a;
    --c-primary-press: #f9a273;
    --c-primary-soft: #3a2418;
    --c-nav: #0f1317;
    --c-bg: #15191e;
    --c-surface: #1d2329;
    --c-surface-2: #252c33;
    --c-border: #38414b;
    --c-text: #ece9e2;
    --c-text-2: #cfcbc3;
    --c-text-muted: #a3a8ae;
    --c-profit: #4ade80;
    --c-profit-soft: #12301f;
    --c-loss: #f87171;
    --c-loss-soft: #3a1717;
    --c-warn: #f5b547;
    --c-warn-soft: #3a2a10;
    --c-party-builder: #7aa2ff;
    --c-party-client: #5fd0c3;
    --c-party-other: #c99cf5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-primary: #f2763a;
  --c-primary-press: #f9a273;
  --c-primary-soft: #3a2418;
  --c-nav: #0f1317;
  --c-bg: #15191e;
  --c-surface: #1d2329;
  --c-surface-2: #252c33;
  --c-border: #38414b;
  --c-text: #ece9e2;
  --c-text-2: #cfcbc3;
  --c-text-muted: #a3a8ae;
  --c-profit: #4ade80;
  --c-profit-soft: #12301f;
  --c-loss: #f87171;
  --c-loss-soft: #3a1717;
  --c-warn: #f5b547;
  --c-warn-soft: #3a2a10;
  --c-party-builder: #7aa2ff;
  --c-party-client: #5fd0c3;
  --c-party-other: #c99cf5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
