/* ============================================
   QAARI — Design Tokens (v2: Light + Dark)
   ============================================ */

:root {
  /* ── Colors: Dark Mode Palette (default) ── */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --bg-elevated: #1e1e30;
  --bg-hover: #252540;
  --bg-active: #2a2a4a;

  /* ── Accent: Emerald / Teal ── */
  --accent: #1DB954;
  --accent-hover: #1ed760;
  --accent-muted: #0d9b6a;
  --accent-glow: rgba(29, 185, 84, 0.25);
  --accent-subtle: rgba(29, 185, 84, 0.08);

  /* ── Gold (Meccan badge) ── */
  --gold: #f0c040;
  --gold-muted: rgba(240, 192, 64, 0.15);

  /* ── Blue (Medinan badge) ── */
  --blue: #4dacff;
  --blue-muted: rgba(77, 172, 255, 0.15);

  /* ── Danger / Warning ── */
  --danger: #ef4444;
  --warning: #f59e0b;

  /* ── Text ── */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #727272;
  --text-disabled: #535353;
  --text-accent: var(--accent);

  /* ── Borders ── */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* ── Spacing Scale (4px base) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ── Border Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* ── Glassmorphism ── */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);

  /* ── Typography ── */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.8125rem;
  /* 13px */
  --text-base: 0.875rem;
  /* 14px */
  --text-md: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 2rem;
  /* 32px */
  --text-4xl: 2.5rem;
  /* 40px */
  --text-5xl: 3.5rem;
  /* 56px */

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Layout ── */
  --sidebar-width: 260px;
  --player-height: 90px;
  --header-height: 64px;
  --content-max: 1400px;

  /* ── Z-Index ── */
  --z-sidebar: 100;
  --z-header: 90;
  --z-player: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ══════════════════════════════════════
   LIGHT THEME
   ══════════════════════════════════════ */
[data-theme="light"] {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f1f3;
  --bg-elevated: #ffffff;
  --bg-hover: #e9ecef;
  --bg-active: #dee2e6;

  --accent: #059669;
  --accent-hover: #047857;
  --accent-muted: #10b981;
  --accent-glow: rgba(5, 150, 105, 0.2);
  --accent-subtle: rgba(5, 150, 105, 0.06);

  --gold: #d97706;
  --gold-muted: rgba(217, 119, 6, 0.1);

  --blue: #2563eb;
  --blue-muted: rgba(37, 99, 235, 0.1);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --text-disabled: #d1d5db;

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-bg-hover: rgba(0, 0, 0, 0.06);
  --glass-border: rgba(0, 0, 0, 0.08);
}