/* ==========================================================================
   Design Tokens - Unified Design System
   
   This file is the single source of truth for all design tokens.
   All components MUST reference these tokens exclusively.
   
   Requirements: 1.1, 1.2, 1.3
   ========================================================================== */

:root {
  /* ==========================================================================
     Colors - Dark Theme
     ========================================================================== */
  
  /* Backgrounds */
  --color-bg-primary: #0a0a0b;
  --color-bg-secondary: #111113;
  --color-bg-elevated: #1a1a1d;
  
  /* Surfaces */
  --color-surface: #1e1e21;
  --color-surface-hover: #252529;
  --color-surface-active: #2a2a2f;
  
  /* Text - WCAG AA Compliant (4.5:1 minimum) */
  --color-text-primary: #f5f5f5;    /* 15:1 contrast on bg-primary */
  --color-text-secondary: #a3a3a3;  /* 7.5:1 contrast on bg-primary */
  --color-text-muted: #737373;      /* 4.6:1 contrast on bg-primary */
  
  /* Borders */
  --color-border: #333338;
  --color-border-hover: #404045;
  
  /* Accent - Primary Blue */
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  
  /* Semantic Colors */
  --color-success: #22c55e;
  --color-success-muted: #166534;
  --color-warning: #eab308;
  --color-warning-muted: #854d0e;
  --color-error: #ef4444;
  --color-error-muted: #991b1b;
  --color-info: #3b82f6;
  --color-info-muted: #1e40af;

  /* ==========================================================================
     Spacing - Exactly 5 Values (Requirement 1.3)
     ========================================================================== */
  
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */

  /* ==========================================================================
     Border Radius - Exactly 3 Values (Requirement 1.2)
     ========================================================================== */
  
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.5rem;  /* 8px */
  --radius-lg: 1rem;    /* 16px */

  /* ==========================================================================
     Typography
     ========================================================================== */
  
  /* Font Family */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-mono: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  /* ==========================================================================
     Shadows
     ========================================================================== */
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);

  /* ==========================================================================
     Transitions
     ========================================================================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ==========================================================================
     Touch Target (Accessibility)
     ========================================================================== */
  
  --touch-target: 2.75rem; /* 44px - WCAG minimum */

  /* ==========================================================================
     Focus Ring
     ========================================================================== */
  
  --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.4);
  --focus-ring-offset: 2px;

  /* ==========================================================================
     Z-Index Scale
     ========================================================================== */
  
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-tooltip: 1070;

  /* ==========================================================================
     Breakpoints (for reference in media queries)
     ========================================================================== */
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}
