/* ==========================================================================
   variables.css — Tasarım Sistemi Tokenları
   Renk, tipografi, boşluk, radius, gölge ve katman değerleri
   Tüm componentler bu değişkenlere bağlıdır.
   ========================================================================== */

/* ₺ (U+20BA) YEDEK YAZI TİPİ — güncellemesiz Windows 7'de Segoe UI / Arial / Tahoma'da ₺ glifi YOK →
   tutarlarda "₺" yerine kutu (□) görünüyordu. "TL Simgesi" = Inter'in (SIL OFL 1.1, assets/fonts/OFL.txt)
   YALNIZ ₺ glifi (~1 KB). Aile zincirinin SONUNDA (genel aileden önce) durur: ₺'yi içeren sistem yazı tipi
   (Win8+, macOS, Android, iOS) varsa O kullanılır ve bu dosya İNDİRİLMEZ; yalnız hiçbiri ₺ içermiyorsa
   devreye girer. unicode-range sayesinde başka hiçbir harfi etkilemez. WOFF (IE9+/tüm Chrome-Firefox) +
   TTF yedeği. */
@font-face {
  font-family: "TL Simgesi";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/tl-simgesi-400.woff?v=1") format("woff"), url("../fonts/tl-simgesi-400.ttf?v=1") format("truetype");
  unicode-range: U+20BA;
}
@font-face {
  font-family: "TL Simgesi";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("../fonts/tl-simgesi-700.woff?v=1") format("woff"), url("../fonts/tl-simgesi-700.ttf?v=1") format("truetype");
  unicode-range: U+20BA;
}

:root {
  /* --- Marka / Kurumsal Renkler --- */
  --primary-color: #1e4fd8;
  --primary-hover: #1841bb;
  --primary-active: #163aa6;
  --primary-soft: #e8eeff;
  --primary-softer: #f4f7ff;
  --primary-contrast: #ffffff;

  --secondary-color: #0f2857;
  --secondary-soft: #e6eaf2;

  --accent-color: #ff7a18;
  --accent-soft: #fff1e6;

  /* --- Durum Renkleri --- */
  --success-color: #16a34a;
  --success-soft: #e7f6ec;
  --warning-color: #d97706;
  --warning-soft: #fdf1e0;
  --danger-color: #dc2626;
  --danger-soft: #fdeaea;
  --info-color: #0ea5e9;
  --info-soft: #e5f6fd;

  /* --- Yüzey / Arka Plan --- */
  --background-color: #f4f6fb;
  --surface-color: #ffffff;
  --surface-alt: #f8fafc;
  --surface-hover: #f1f5f9;
  --overlay-color: rgba(15, 23, 42, 0.5);

  /* --- Metin --- */
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  /* --- Kenarlık --- */
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: var(--primary-color);

  /* --- Tipografi --- */
  --font-family-base: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, "TL Simgesi", sans-serif;
  --font-family-mono: "SFMono-Regular", "Consolas", "Liberation Mono", "TL Simgesi", monospace;

  --font-size-xs: 0.72rem;
  --font-size-sm: 0.82rem;
  --font-size-md: 0.92rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.12rem;
  --font-size-xl: 1.35rem;
  --font-size-2xl: 1.7rem;
  --font-size-3xl: 2.1rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-base: 1.55;

  /* --- Boşluk Ölçeği --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* --- Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* --- Gölge --- */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.18);

  /* --- Layout Ölçüleri --- */
  --sidebar-width: 256px;
  --sidebar-collapsed-width: 74px;
  --header-height: 64px;
  --banner-height: auto;
  --mobile-nav-height: 64px;
  --content-max-width: 1440px;

  /* --- Katmanlar (z-index) --- */
  --z-sidebar: 40;
  --z-header: 50;
  --z-drawer: 60;
  --z-modal: 70;
  --z-toast: 90;
  --z-dropdown: 65;

  /* --- Geçiş --- */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 320ms ease;
}

/* ==========================================================================
   Koyu Tema — <html data-theme="dark">
   ========================================================================== */
:root[data-theme="dark"] {
  --primary-color: #4f7bff;
  --primary-hover: #6b8fff;
  --primary-soft: #1c2a4a;
  --primary-softer: #16203a;
  --primary-contrast: #ffffff;

  --secondary-color: #cdd8f0;
  --secondary-soft: #1c2740;

  --accent-color: #ff9143;
  --accent-soft: #33241a;

  --success-soft: #12271b;
  --warning-soft: #2a2113;
  --danger-soft: #2c1717;
  --info-soft: #10222c;

  --background-color: #0b1220;
  --surface-color: #131c2e;
  --surface-alt: #0f1726;
  --surface-hover: #1b2740;
  --overlay-color: rgba(0, 0, 0, 0.6);

  --text-primary: #e8edf7;
  --text-secondary: #9aa8c2;
  --text-tertiary: #6b7994;
  --text-inverse: #0b1220;

  --border-color: #263248;
  --border-strong: #35435f;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.7);
}
