/*
 * QARAJ.ONLINE — dizayn tokenləri (yeganə həqiqət mənbəyi)
 * Redizayn 2026-12 (mobil tətbiq brifi): açıq boz fon, ağ kartlar, qara mətn, narıncı vurğu.
 * Tünd səth yalnız qarşılama ekranında və mobil alt paneldə (--ink*).
 * Narıncı fon üstündə mətn həmişə tünd; narıncı MƏTN üçün --accent-text istifadə et.
 */

:root {
  color-scheme: light;
  /* ---------- Palitra ---------- */
  --bg: #EDEDEF;
  --surface: #FFFFFF;
  --surface-2: #F4F4F6;
  --line: #DEDEE3;
  --text: #121216;
  --muted: #5E5E66;
  --accent: #FF974D;
  --accent-press: #F07A2A;
  --accent-soft: #FFE9D9;
  --accent-text: #B4520F;
  --on-accent: #121216;
  --danger: #C62F35;
  --success: #17804F;
  --border: var(--line);

  /* Tünd səthlər (qarşılama + mobil alt panel) */
  --ink: #141418;
  --ink-2: #24242B;
  --on-ink: #F2EFEA;
  --on-ink-muted: #ABA7A2;

  /* Kölgələr (incə) */
  --shadow-card: 0 1px 2px rgb(18 18 22 / 0.05), 0 8px 24px -12px rgb(18 18 22 / 0.18);
  --shadow-card-hover: 0 2px 4px rgb(18 18 22 / 0.06), 0 16px 32px -14px rgb(18 18 22 / 0.26);
  --shadow-bar: 0 12px 32px -8px rgb(18 18 22 / 0.45);

  /* ---------- Köhnə adlar → yeni tokenlər (keçid dövrü üçün alias) ---------- */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-2: var(--surface-2);
  --color-line: var(--line);
  --color-text: var(--text);
  --color-muted: var(--muted);
  --color-accent: var(--accent);
  --color-accent-2: var(--accent);
  --color-accent-2-text: var(--accent-text);
  --color-success: var(--success);
  --color-danger: var(--danger);
  --color-sponsor: var(--muted);
  --color-on-accent: var(--on-accent);
  --color-focus: var(--accent);
  --raw-night-950: var(--bg);
  --raw-cream-100: var(--text);
  --raw-orange-500: var(--accent);
  --raw-magenta-500: var(--accent);
  --gradient-brand: var(--accent);   /* gradient qadağandır — köhnə istifadə yerləri düz narıncı alır */

  /* Foto üstündə mətn üçün tünd scrim (rəng keçidi yox, yalnız şəffaflıq) */
  --scrim-bottom: linear-gradient(to top, rgb(16 16 20 / 0.94) 0%, rgb(16 16 20 / 0.7) 32%, rgb(16 16 20 / 0) 64%);
  --scrim-left: linear-gradient(to right, rgb(16 16 20 / 0.92) 0%, rgb(16 16 20 / 0.55) 42%, rgb(16 16 20 / 0) 75%);
  --scrim-solid: rgb(16 16 20 / 0.82);

  /* ---------- Tipoqrafiya ---------- */
  --font-display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --type-display-size: clamp(3.25rem, 1.9rem + 6.4vw, 8.5rem);
  --type-display-lh: 0.9;
  --type-display-ls: -0.005em;
  --type-display-wght: 850;

  --type-poster-size: clamp(4rem, 2.4rem + 8vw, 11rem);
  --type-poster-lh: 0.82;
  --type-poster-ls: -0.01em;
  --type-poster-wght: 900;

  --type-section-size: clamp(2rem, 1.5rem + 2.4vw, 3.75rem);
  --type-section-lh: 0.95;
  --type-section-ls: 0.005em;
  --type-section-wght: 800;

  --type-vehicle-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --type-vehicle-lh: 1;
  --type-vehicle-ls: 0.005em;
  --type-vehicle-wght: 800;

  --type-nav-size: 0.9375rem;
  --type-nav-lh: 1.2;
  --type-nav-ls: 0.01em;
  --type-nav-wght: 600;

  --type-body-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --type-body-lh: 1.55;
  --type-body-ls: 0;
  --type-body-wght: 400;

  --type-stat-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --type-stat-lh: 1.2;
  --type-stat-ls: 0;
  --type-stat-wght: 600;

  --type-meta-size: 0.8125rem;
  --type-meta-lh: 1.4;
  --type-meta-ls: 0.01em;
  --type-meta-wght: 500;

  /* ---------- Boşluq (4/8 əsaslı) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-section: clamp(2.5rem, 1.6rem + 4vw, 6rem);

  /* ---------- Grid ---------- */
  --grid-columns: 4;
  --grid-gutter: var(--space-3);
  --grid-margin: var(--space-4);
  --grid-max: 90rem;

  /* ---------- Radius (brif: kart 24–28px, yumru filtrlər) ---------- */
  --radius-0: 0;
  --radius-1: 6px;
  --radius-2: 12px;
  --radius-field: 14px;
  --radius-card: 26px;
  --radius-media: 20px;
  --radius-pill: 999px;

  /* ---------- Səthlər (şüşə yox — düz rəng) ---------- */
  --glass-bg: var(--surface);
  --glass-bg-strong: var(--surface);
  --glass-line: var(--line);
  --glass-blur: none;
  --glass-shadow: none;
  --pill-active-bg: transparent;
  --header-h: 3.5rem;
  --tabbar-h: 4.25rem;
  --tabbar-gap: 0.75rem;
  --sidebar-w: 5.5rem;
  --sidebar-w-full: 15.5rem;

  /* ---------- Sərhəd ---------- */
  --border-1: 1px solid var(--line);
  --border-strong: 2px solid var(--text);

  /* ---------- Foto kəsimləri ---------- */
  --ratio-hero: 16 / 9;
  --ratio-card: 4 / 3;
  --ratio-feed: 4 / 5;

  /* ---------- Motion (150–220ms) ---------- */
  --dur-fast: 150ms;
  --dur-base: 180ms;
  --dur-slow: 220ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.3, 1.4, 0.5, 1);

  /* ---------- Qatlar ---------- */
  --z-header: 50;
  --z-overlay: 100;

  --tap-min: 44px;
}

@media (min-width: 52em) {       /* 834+ planşet */
  :root {
    --grid-columns: 8;
    --grid-gutter: var(--space-4);
    --grid-margin: var(--space-6);
  }
}

@media (min-width: 64em) {       /* 1024+ desktop */
  :root {
    --header-h: 4.25rem;
  }
}

@media (min-width: 75em) {       /* 1200+ */
  :root {
    --grid-columns: 12;
    --grid-gutter: var(--space-5);
    --grid-margin: var(--space-7);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}

/* Köhnə bölmə sinfi heç nəyi dəyişmir. */
.theme-paper { color-scheme: light; }
