/* Design System Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Black & Purple Theme */
  --clr-bg-primary: #000000;
  --clr-bg-secondary: #0a0a0a;
  --clr-bg-card: #1a1a1a;
  --clr-bg-elevated: #2a2a2a;
  
  /* Purple Accent Colors */
  --clr-accent-primary: #a259ff;      /* Main purple */
  --clr-accent-secondary: #8b44e6;    /* Darker purple */
  --clr-accent-light: #c084fc;        /* Light purple */
  --clr-accent-glow: rgba(162, 89, 255, 0.3);
  
  /* Text Colors */
  --clr-text-primary: #ffffff;
  --clr-text-secondary: #b3b3b3;
  --clr-text-muted: #808080;
  --clr-text-inverse: #000000;
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #a259ff 0%, #8b44e6 100%);
  --gradient-secondary: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  --gradient-glow: linear-gradient(135deg, rgba(162, 89, 255, 0.1) 0%, transparent 100%);
  
  /* Border Colors */
  --clr-border: #333333;
  --clr-border-light: #404040;
  --clr-border-purple: var(--clr-accent-primary);
  
  /* Status Colors */
  --clr-success: #10b981;
  --clr-warning: #f59e0b;
  --clr-error: #ef4444;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-lg: 1.125rem;   /* 18px */
  --fs-xl: 1.25rem;    /* 20px */
  --fs-2xl: 1.5rem;    /* 24px */
  --fs-3xl: 1.875rem;  /* 30px */
  --fs-4xl: 2.25rem;   /* 36px */
  --fs-5xl: 3rem;      /* 48px */
  --fs-6xl: 3.75rem;   /* 60px */
  --fs-7xl: 4.5rem;    /* 72px */
  
  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* Line Heights */
  --lh-tight: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.75;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  --space-5xl: 8rem;     /* 128px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(162, 89, 255, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(162, 89, 255, 0.4);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  
  /* Container Sizes */
  --container-xs: 20rem;    /* 320px */
  --container-sm: 24rem;    /* 384px */
  --container-md: 28rem;    /* 448px */
  --container-lg: 32rem;    /* 512px */
  --container-xl: 36rem;    /* 576px */
  --container-2xl: 42rem;   /* 672px */
  --container-3xl: 48rem;   /* 768px */
  --container-4xl: 56rem;   /* 896px */
  --container-5xl: 64rem;   /* 1024px */
  --container-6xl: 72rem;   /* 1152px */
  --container-7xl: 80rem;   /* 1280px */
  
  /* Breakpoints (for reference in media queries) */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;
}

/* Theme Customization Support */
[data-theme="custom"] {
  /* Allow runtime customization of accent colors */
  --clr-accent-primary: var(--custom-accent-primary, #a259ff);
  --clr-accent-secondary: var(--custom-accent-secondary, #8b44e6);
  --clr-accent-light: var(--custom-accent-light, #c084fc);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --clr-text-secondary: #e0e0e0;
    --clr-border: #555555;
    --clr-border-light: #666666;
  }
}
