/* ============================================
   CSS Variables - Theme System
   ============================================ */

:root {
  /* --- Primary Palette --- */
  --color-primary: #6c3ce1;
  --color-primary-light: #8b5cf6;
  --color-primary-dark: #5521c6;
  --color-primary-glow: rgba(108, 60, 225, 0.25);

  /* --- Accent --- */
  --color-accent: #00d4aa;
  --color-accent-light: #34ebc6;

  /* --- Light Theme (default) --- */
  --color-bg: #fafbff;
  --color-bg-alt: #f0f2f9;
  --color-bg-card: #ffffff;
  --color-bg-code: #1e1e2e;
  --color-text: #1a1a2e;
  --color-text-secondary: #64648c;
  --color-text-muted: #9999b3;
  --color-border: #e2e4f0;
  --color-border-light: #eef0f8;

  /* --- Shadows --- */
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 24px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 26, 46, 0.12);
  --shadow-glow: 0 0 30px var(--color-primary-glow);

  /* --- Typography --- */
  --font-body: 'IBM Plex Sans Arabic', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;
  --font-heading: 'IBM Plex Sans Arabic', 'Outfit', system-ui, -apple-system, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* --- Spacing --- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* --- Layout --- */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --navbar-height: 72px;

  /* --- Border Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-theme: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Dark Theme
   ============================================ */
[data-theme="dark"] {
  --color-bg: #0f0f1a;
  --color-bg-alt: #161625;
  --color-bg-card: #1c1c30;
  --color-bg-code: #12121f;
  --color-text: #e8e8f0;
  --color-text-secondary: #a0a0c0;
  --color-text-muted: #6a6a8a;
  --color-border: #2a2a42;
  --color-border-light: #222238;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(108, 60, 225, 0.3);
}
