/*
  TidyFactor Design — tokens.css
  Masr Motors (مصر موتورز) — Single Source of Truth
  Supports Dark & Light theme modes seamlessly via [data-theme="dark"] and [data-theme="light"].
*/

:root {
  /* Brand Accent Colors */
  --color-primary: #FF5522;
  --color-primary-hover: #E04414;
  --color-primary-glow: rgba(255, 85, 34, 0.35);
  --color-secondary: #FF7744;
  --color-accent: #FF5522;
  --color-accent-subtle: rgba(255, 85, 34, 0.12);

  /* Status Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Typography */
  --font-display: 'Outfit', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', monospace;
  --font-heading-ar: 'El Messiri', serif;
  --font-body-ar: 'Tajawal', sans-serif;

  --text-scale-ratio: 1.22;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: calc(var(--text-base) * var(--text-scale-ratio));
  --text-xl: calc(var(--text-lg) * var(--text-scale-ratio));
  --text-2xl: calc(var(--text-xl) * var(--text-scale-ratio));
  --text-3xl: calc(var(--text-2xl) * var(--text-scale-ratio));
  --text-4xl: calc(var(--text-3xl) * var(--text-scale-ratio));

  /* Spacing Scale (4px grid base) */
  --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;
  --space-16: 4rem;

  /* Border Radius */
  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Motion Tokens */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default Theme: Dark (matching dark.png) */
:root, [data-theme="dark"] {
  --color-bg: #0B0E14;
  --color-surface: #141822;
  --color-surface-raised: #1C2232;
  --color-surface-overlay: rgba(20, 24, 34, 0.85);
  --color-border: #262E40;
  --color-border-subtle: #1E2534;
  --color-text: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-text-subtle: #64748B;
  --color-card-shadow: rgba(0, 0, 0, 0.5);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-accent: 0 8px 24px var(--color-primary-glow);
}

/* Light Theme Mode (matching light.png) */
[data-theme="light"] {
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-surface-raised: #F1F5F9;
  --color-surface-overlay: rgba(255, 255, 255, 0.9);
  --color-border: #E2E8F0;
  --color-border-subtle: #F1F5F9;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-text-subtle: #94A3B8;
  --color-card-shadow: rgba(15, 23, 42, 0.06);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-accent: 0 8px 24px rgba(255, 85, 34, 0.25);
}
