/* ============================================
   INNATEENGINE DESIGN SYSTEM - CSS VARIABLES
   Version: 2.0 | Updated with Roadmap Specs
   ============================================ */

:root {
  /* ==========================================
     BACKGROUND COLORS - Dark Theme (Primary)
     ========================================== */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --bg-elevated: #22222e;
  --bg-overlay: rgba(10, 10, 15, 0.9);

  /* ==========================================
     BRAND COLORS - Purple/Emerald
     ========================================== */
  --brand-primary: #8b5cf6;
  --brand-primary-light: #a78bfa;
  --brand-primary-dark: #7c3aed;
  --brand-primary-rgb: 139, 92, 246;
  
  --brand-secondary: #10b981;
  --brand-secondary-light: #34d399;
  --brand-secondary-dark: #059669;
  --brand-secondary-rgb: 16, 185, 129;
  
  /* Gradients */
  --brand-gradient: linear-gradient(135deg, #8b5cf6 0%, #10b981 100%);
  --brand-gradient-reverse: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
  --brand-gradient-vertical: linear-gradient(180deg, #8b5cf6 0%, #10b981 100%);
  --brand-gradient-radial: radial-gradient(circle at center, #8b5cf6 0%, #10b981 100%);

  /* ==========================================
     TEXT COLORS
     ========================================== */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;
  --text-accent: #8b5cf6;
  --text-success: #10b981;
  --text-warning: #f59e0b;
  --text-error: #ef4444;

  /* ==========================================
     UI COLORS
     ========================================== */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-emphasis: rgba(139, 92, 246, 0.4);
  --border-focus: rgba(139, 92, 246, 0.6);
  
  /* Interactive States */
  --hover-overlay: rgba(255, 255, 255, 0.05);
  --active-overlay: rgba(255, 255, 255, 0.08);
  --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.4);

  /* ==========================================
     GLASSMORPHISM
     ========================================== */
  --glass-bg: rgba(18, 18, 26, 0.7);
  --glass-bg-light: rgba(26, 26, 36, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --glass-saturate: 180%;

  /* ==========================================
     SHADOWS
     ========================================== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.7);
  
  /* Glow Effects */
  --shadow-glow-sm: 0 0 20px rgba(139, 92, 246, 0.2);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
  --shadow-glow-lg: 0 0 60px rgba(139, 92, 246, 0.4);
  --shadow-glow-accent: 0 0 40px rgba(16, 185, 129, 0.3);

  /* ==========================================
     SPACING SCALE
     ========================================== */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  --space-40: 10rem;    /* 160px */

  /* ==========================================
     BORDER RADIUS
     ========================================== */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;

  /* ==========================================
     TYPOGRAPHY
     ========================================== */
  /* Font Families */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.875rem);
  --text-base: clamp(0.875rem, 0.8rem + 0.4vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-xl: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  --text-3xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 2.5rem);
  --text-5xl: clamp(2.5rem, 2rem + 3vw, 3.5rem);
  --text-6xl: clamp(3rem, 2rem + 4vw, 4.5rem);
  --text-hero: clamp(3.5rem, 2.5rem + 5vw, 6rem);

  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ==========================================
     TRANSITIONS
     ========================================== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-slower: 600ms ease;
  --transition-elastic: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ==========================================
     Z-INDEX SCALE
     ========================================== */
  --z-below: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-max: 9999;

  /* ==========================================
     LAYOUT
     ========================================== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  --container-max: 1600px;

  /* ==========================================
     ANIMATION DURATIONS
     ========================================== */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;
}

/* ==========================================
   LIGHT THEME (Optional Override)
   ========================================== */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-default: rgba(0, 0, 0, 0.1);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   REDUCED MOTION PREFERENCES
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-slower: 0ms;
    --transition-elastic: 0ms;
    --transition-bounce: 0ms;
    --transition-smooth: 0ms;
  }
}
