/**
 * CSS Custom Properties (Design Tokens)
 * 
 * These values can be easily updated to change the visual design
 * while maintaining the core structure and accessibility.
 */

:root {
  /* Color Palette - Modern, vibrant but calm colors */
  --color-primary: #4F9CF9;
  --color-primary-dark: #3B7FD9;
  --color-primary-light: #6BB3FF;
  --color-primary-gradient: linear-gradient(135deg, #4F9CF9 0%, #6BB3FF 100%);
  
  --color-secondary: #8B7CF6;
  --color-secondary-dark: #6B5CD6;
  --color-secondary-light: #AB9CFF;
  --color-secondary-gradient: linear-gradient(135deg, #8B7CF6 0%, #AB9CFF 100%);
  
  --color-accent: #10B981;
  --color-accent-dark: #059669;
  --color-accent-light: #34D399;
  --color-accent-gradient: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  
  --color-text: #1F2937;
  --color-text-light: #6B7280;
  --color-text-lighter: #9CA3AF;
  
  --color-background: #F9FAFB;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F3F4F6;
  --color-surface-elevated: #FFFFFF;
  
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  
  /* Typography - Modern system fonts */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 40px;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Letter spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  
  /* Spacing Scale */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;
  
  /* Tap Targets - Minimum 44px for accessibility */
  --tap-target-min: 44px;
  --button-height: 48px;
  --input-height: 48px;
  
  /* Shadows - Modern depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Colored shadows for depth */
  --shadow-primary: 0 10px 15px -3px rgba(79, 156, 249, 0.3), 0 4px 6px -2px rgba(79, 156, 249, 0.2);
  --shadow-success: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.2);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* 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;
}

/* Quiet Mode - Reduced saturation */
.quiet-mode {
  filter: saturate(0.7);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

