/* ══════════════════════════════════════════════════════════════════
   IDISI DESIGN SYSTEM — COOL SLATE GRAY & EYE-FRIENDLY PALETTE
   Zero yellow/milky warmth. Clean, neutral, anti-glare slate grays
   designed for maximum eye comfort in all lighting conditions.
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Dark Mode: Cool Neutral Slate (Deep, clean, zero warm tint) ── */
  --body-bg:        radial-gradient(circle at 50% 0%, #1e222b 0%, #14171e 55%, #0d0f14 100%);
  --header-bg:      rgba(18, 21, 28, 0.85);
  --dock-bg:        rgba(20, 23, 31, 0.88);
  --dock-shadow:    0 14px 38px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  --sheet-bg:       rgba(20, 23, 31, 0.95);
  --sheet-shadow:   0 -14px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  --handle-bar:     rgba(255, 255, 255, 0.18);

  --bg-base:        #0d0f14;
  --bg-surface:     #14171e;
  --bg-card:        rgba(26, 30, 40, 0.68);
  --bg-card-hover:  rgba(35, 41, 54, 0.85);
  --bg-card-solid:  #1b1f29;
  --bg-input:       rgba(19, 22, 30, 0.85);
  --bg-overlay:     rgba(8, 10, 14, 0.78);

  /* Frosted Glass Tokens */
  --glass-bg:       rgba(255, 255, 255, 0.035);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-card:     rgba(26, 30, 40, 0.68);
  --glass-card-hover: rgba(35, 41, 54, 0.85);
  --glass-pill:     rgba(255, 255, 255, 0.05);

  /* Borders & Specular Lines */
  --border:         rgba(255, 255, 255, 0.075);
  --border-light:   rgba(255, 255, 255, 0.13);
  --border-focus:   rgba(164, 147, 232, 0.45);
  --border-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.07);

  /* Blurs */
  --blur:           blur(18px);
  --blur-sm:        blur(10px);
  --glass-blur:     blur(18px);
  --glass-sheet:    blur(20px);

  /* Typography (Cool Slate Dark) */
  --text-main:      #f1f5f9;
  --text-muted:     #94a3b8;
  --text-sub:       #64748b;
  --text-dim:       #475569;

  --accent:         #f1f5f9;
  --accent-invert:  #0d0f14;
  --accent-light:   #cbd5e1;
  --accent-glow:    rgba(241, 245, 249, 0.16);
  --accent-gradient: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);

  /* Pastel Marketplaces & Accents (Dark Mode) */
  --uzum:           #a493e8;
  --uzum-light:     #b8a8f2;
  --uzum-bg:        rgba(164, 147, 232, 0.08);
  --uzum-bg-hover:  rgba(164, 147, 232, 0.18);
  --uzum-border-hover: rgba(184, 168, 242, 0.42);
  --uzum-glow:      0 2px 14px rgba(164, 147, 232, 0.2);
  --uzum-gradient:  linear-gradient(135deg, #8874d6 0%, #b8a8f2 100%);

  --yandex:         #f59e0b;
  --yandex-light:   #fbbf24;
  --yandex-bg:      rgba(245, 158, 11, 0.08);
  --yandex-bg-hover: rgba(245, 158, 11, 0.18);
  --yandex-border-hover: rgba(251, 191, 36, 0.42);
  --yandex-glow:    0 2px 14px rgba(245, 158, 11, 0.2);
  --yandex-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);

  --success:        #34d399;
  --success-light:  #6ee7b7;
  --success-bg:     rgba(52, 211, 153, 0.08);
  --success-bg-hover: rgba(52, 211, 153, 0.18);
  --success-border: rgba(255, 255, 255, 0.08);
  --success-border-hover: rgba(110, 231, 183, 0.42);
  --success-glow:   0 2px 14px rgba(52, 211, 153, 0.2);

  --danger:         #f87171;
  --danger-light:   #fca5a5;
  --danger-bg:      rgba(248, 113, 113, 0.08);
  --danger-bg-hover: rgba(248, 113, 113, 0.18);
  --danger-border:  rgba(255, 255, 255, 0.08);
  --danger-border-hover: rgba(252, 165, 165, 0.42);
  --danger-glow:    0 2px 14px rgba(248, 113, 113, 0.2);

  --warning:        #fbbf24;
  --warning-light:  #fde68a;
  --warning-bg:     rgba(251, 191, 36, 0.08);
  --warning-bg-hover: rgba(251, 191, 36, 0.18);
  --warning-border-hover: rgba(253, 230, 138, 0.42);
  --warning-glow:   0 2px 14px rgba(251, 191, 36, 0.2);

  --info:           #38bdf8;
  --info-light:     #7dd3fc;
  --info-bg:        rgba(56, 189, 248, 0.08);
  --info-bg-hover:  rgba(56, 189, 248, 0.18);
  --info-border-hover: rgba(125, 211, 252, 0.42);
  --info-glow:      0 2px 14px rgba(56, 189, 248, 0.2);

  /* Radii */
  --r-xs:           8px;
  --r-sm:           10px;
  --r-md:           14px;
  --r-lg:           18px;
  --r-xl:           22px;
  --r-full:         9999px;

  /* Typography */
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Ambient Diffused Shadows */
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md:      0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg:      0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow:    0 0 20px rgba(255, 255, 255, 0.08);

  /* Fluid Motion */
  --ease:           cubic-bezier(0.16, 1, 0.3, 1);
  --spring:         cubic-bezier(0.34, 1.56, 0.64, 1);
  --press-scale:    scale(0.965);

  /* Active Filter Chip Tokens (Dark Mode) */
  --chip-active-bg:     #f1f5f9;
  --chip-active-color:  #0d0f14;
  --chip-active-border: #f1f5f9;
  --chip-active-shadow: 0 2px 12px rgba(241, 245, 249, 0.18);

  /* Toast Notification Tokens (Dark Mode) */
  --toast-bg:           rgba(20, 23, 31, 0.95);
  --toast-color:        #f1f5f9;
  --toast-border:       rgba(255, 255, 255, 0.12);
  --toast-shadow:       0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --toast-icon:         #34d399;
  --toast-error-bg:     rgba(38, 20, 23, 0.96);
  --toast-error-color:  #fce8e8;
  --toast-error-border: rgba(248, 113, 113, 0.45);
  --toast-error-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 18px rgba(248, 113, 113, 0.25);
  --toast-error-icon:   #f87171;

  /* Responsive Layout Tokens */
  --container-widescreen: 1600px;
  --container-desktop:    1360px;
  --container-tablet:     960px;
  --container-compact:    680px;
}

/* ══════════════════════════════════════════════════════════════════
   COOL SLATE GRAY PALETTE (LIGHT THEME)
   Clean, soothing, neutral matte cool-gray. Zero milky/yellowish tone.
   Absorbs glare completely and feels relaxing for the eyes.
   ══════════════════════════════════════════════════════════════════ */
:root[data-theme="light"],
[data-theme="light"] {
  /* Neutral Cool Slate Gray Canvas */
  --body-bg:        radial-gradient(ellipse at 50% 0%, #f0f2f5 0%, #e6e9ee 60%, #dde1e7 100%);
  --header-bg:      rgba(240, 242, 245, 0.88);
  --dock-bg:        rgba(245, 247, 250, 0.92);
  --dock-shadow:    0 12px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  --sheet-bg:       rgba(250, 251, 253, 0.97);
  --sheet-shadow:   0 -12px 42px rgba(15, 23, 42, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  --handle-bar:     rgba(15, 23, 42, 0.18);

  /* Active Filter Chip Tokens (Cool Slate Light Mode) */
  --chip-active-bg:     #1e293b;
  --chip-active-color:  #ffffff;
  --chip-active-border: #1e293b;
  --chip-active-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);

  --bg-base:        #dde1e7;
  --bg-surface:     #ffffff;
  --bg-card:        rgba(255, 255, 255, 0.88);
  --bg-card-hover:  #ffffff;
  --bg-card-solid:  #ffffff;
  --bg-input:       #e9ecf1;
  --bg-overlay:     rgba(15, 23, 42, 0.45);

  /* Frosted Glass */
  --glass-bg:       rgba(15, 23, 42, 0.035);
  --glass-bg-hover: rgba(15, 23, 42, 0.065);
  --glass-card:     rgba(255, 255, 255, 0.88);
  --glass-card-hover: #ffffff;
  --glass-pill:     rgba(15, 23, 42, 0.045);

  /* Clean Cool Slate Hairline Borders */
  --border:         rgba(15, 23, 42, 0.08);
  --border-light:   rgba(15, 23, 42, 0.14);
  --border-focus:   rgba(124, 105, 198, 0.45);
  --border-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.95);

  /* Crisp Cool Slate Typography (Zero glare, maximum comfort) */
  --text-main:      #1e293b;
  --text-muted:     #475569;
  --text-sub:       #64748b;
  --text-dim:       #94a3b8;

  --accent:         #1e293b;
  --accent-invert:  #ffffff;
  --accent-light:   #334155;
  --accent-glow:    rgba(30, 41, 59, 0.12);
  --accent-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);

  /* Cool Diffused Ambient Shadows */
  --shadow-sm:      0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md:      0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-lg:      0 16px 36px rgba(15, 23, 42, 0.09);
  --shadow-glow:    0 0 16px rgba(15, 23, 42, 0.04);

  /* ── Marketplaces & Accents (Light Mode - Cool Eye-Friendly) ── */
  /* Uzum Marketplace — Cool Lavender */
  --uzum:           #7c69c6;
  --uzum-light:     #9482d8;
  --uzum-bg:        rgba(124, 105, 198, 0.08);
  --uzum-bg-hover:  rgba(124, 105, 198, 0.15);
  --uzum-border-hover: rgba(124, 105, 198, 0.4);
  --uzum-glow:      0 2px 10px rgba(124, 105, 198, 0.18);
  --uzum-gradient:  linear-gradient(135deg, #6d59bd 0%, #9482d8 100%);

  /* Yandex Marketplace — Amber Ochre */
  --yandex:         #d97706;
  --yandex-light:   #f59e0b;
  --yandex-bg:      rgba(217, 119, 6, 0.08);
  --yandex-bg-hover: rgba(217, 119, 6, 0.15);
  --yandex-border-hover: rgba(217, 119, 6, 0.4);
  --yandex-glow:    0 2px 10px rgba(217, 119, 6, 0.18);
  --yandex-gradient: linear-gradient(135deg, #c76a02 0%, #f59e0b 100%);

  /* Status Colors (Cool Muted Tones) */
  --success:        #10b981;
  --success-light:  #34d399;
  --success-bg:     rgba(16, 185, 129, 0.08);
  --success-bg-hover: rgba(16, 185, 129, 0.15);
  --success-border: rgba(16, 185, 129, 0.18);
  --success-border-hover: rgba(16, 185, 129, 0.4);
  --success-glow:   0 2px 10px rgba(16, 185, 129, 0.18);

  --danger:         #ef4444;
  --danger-light:   #f87171;
  --danger-bg:      rgba(239, 68, 68, 0.08);
  --danger-bg-hover: rgba(239, 68, 68, 0.15);
  --danger-border:  rgba(239, 68, 68, 0.18);
  --danger-border-hover: rgba(239, 68, 68, 0.4);
  --danger-glow:    0 2px 10px rgba(239, 68, 68, 0.18);

  --warning:        #f59e0b;
  --warning-light:  #fbbf24;
  --warning-bg:     rgba(245, 158, 11, 0.08);
  --warning-bg-hover: rgba(245, 158, 11, 0.15);
  --warning-border-hover: rgba(245, 158, 11, 0.4);
  --warning-glow:   0 2px 10px rgba(245, 158, 11, 0.18);

  --info:           #0284c7;
  --info-light:     #38bdf8;
  --info-bg:        rgba(2, 132, 199, 0.08);
  --info-bg-hover:  rgba(2, 132, 199, 0.15);
  --info-border-hover: rgba(2, 132, 199, 0.4);
  --info-glow:      0 2px 10px rgba(2, 132, 199, 0.18);

  /* Toast Notification Tokens (Cool Slate Light Mode) */
  --toast-bg:           rgba(255, 255, 255, 0.96);
  --toast-color:        #1e293b;
  --toast-border:       rgba(15, 23, 42, 0.12);
  --toast-shadow:       0 12px 32px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --toast-icon:         #10b981;
  --toast-error-bg:     rgba(254, 242, 242, 0.97);
  --toast-error-color:  #991b1b;
  --toast-error-border: rgba(239, 68, 68, 0.35);
  --toast-error-shadow: 0 12px 32px rgba(239, 68, 68, 0.12);
  --toast-error-icon:   #ef4444;
}
