/* ============================================================================
   Design Tokens - Resonate Labs
   Color palette, spacing, typography, and design system variables
   ============================================================================ */

:root {
  /* ========== Background Colors ========== */
  --deep-space: #070B12;
  --dark-matter: #0E1419;
  --nebula: #1A2028;
  --cosmic-void: #0A0E14;

  /* ========== Glass Effects ========== */
  --glass-light: rgba(255, 255, 255, 0.08);
  --glass-medium: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --glass-stroke: rgba(255, 255, 255, 0.15);
  --glass-shadow: rgba(0, 0, 0, 0.3);

  /* ========== Brainwave Colors ========== */
  /* Delta (0.5-4 Hz) - Deep purple for deep sleep */
  --neon-delta: #5B4FFF;
  --neon-delta-rgb: 91, 79, 255;
  --neon-delta-glow: rgba(91, 79, 255, 0.5);

  /* Theta (4-8 Hz) - Purple for meditation */
  --neon-theta: #8B5CF6;
  --neon-theta-rgb: 139, 92, 246;
  --neon-theta-glow: rgba(139, 92, 246, 0.5);

  /* Alpha (8-13 Hz) - Blue for relaxation */
  --neon-alpha: #3B82F6;
  --neon-alpha-rgb: 59, 130, 246;
  --neon-alpha-glow: rgba(59, 130, 246, 0.5);

  /* Beta (13-30 Hz) - Orange for focus */
  --neon-beta: #F59E0B;
  --neon-beta-rgb: 245, 158, 11;
  --neon-beta-glow: rgba(245, 158, 11, 0.5);

  /* Gamma (30-100 Hz) - Red for peak performance */
  --neon-gamma: #EF4444;
  --neon-gamma-rgb: 239, 68, 68;
  --neon-gamma-glow: rgba(239, 68, 68, 0.5);

  /* ========== Accent Colors ========== */
  --accent-primary: #3B82F6;
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error: #EF4444;
  --neon-cyan: #06B6D4;
  --neon-pink: #EC4899;

  /* ========== Text Colors ========== */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-disabled: rgba(255, 255, 255, 0.2);
  --text-placeholder: rgba(255, 255, 255, 0.3);

  /* ========== 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 */

  /* ========== Typography ========== */
  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --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;

  /* ========== Border Radius ========== */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;   /* Circular */

  /* ========== Shadows ========== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 6px 12px rgba(0, 0, 0, 0.25);
  --shadow-floating: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* Glow Shadows */
  --glow-delta: 0 0 30px rgba(91, 79, 255, 0.4);
  --glow-theta: 0 0 30px rgba(139, 92, 246, 0.4);
  --glow-alpha: 0 0 30px rgba(59, 130, 246, 0.4);
  --glow-beta: 0 0 30px rgba(245, 158, 11, 0.4);
  --glow-gamma: 0 0 30px rgba(239, 68, 68, 0.4);

  /* ========== Z-Index Scale ========== */
  --z-base: 0;
  --z-elevated: 10;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-overlay: 1300;
  --z-modal-backdrop: 1400;
  --z-modal: 1500;
  --z-popover: 1600;
  --z-tooltip: 1700;
  --z-toast: 2000;

  /* ========== Transitions ========== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ========== Blur Effects ========== */
  --blur-sm: 8px;
  --blur-md: 12px;
  --blur-lg: 20px;
  --blur-xl: 40px;
  --blur-2xl: 60px;
  --blur-plasma: 80px;

  /* ========== Layout ========== */
  --container-xs: 480px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* ========== Breakpoints (for reference) ========== */
  /* Use in media queries:
     --breakpoint-xs: 0px
     --breakpoint-sm: 576px
     --breakpoint-md: 768px
     --breakpoint-lg: 992px
     --breakpoint-xl: 1200px
     --breakpoint-2xl: 1400px
  */
}

/* ========== Mobile Overrides (Performance) ========== */
@media (max-width: 768px) {
  :root {
    --blur-lg: 12px;
    --blur-xl: 24px;
    --blur-plasma: 40px;
    --text-5xl: 2.25rem;
    --text-6xl: 3rem;
    --text-7xl: 3.5rem;
  }
}

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

/* ========== Dark Mode Adjustments ========== */
/* (Currently designed for dark mode only, but extensible) */
@media (prefers-color-scheme: light) {
  /* Light mode overrides if needed in future */
}

/* ========== Print Styles ========== */
@media print {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
  }
}
