/* 
 * PopRace.org Design System Variables
 * 2025 Filter System Redesign
 */

:root {
  /* === COLORS === */
  
  /* Primary Brand Colors */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1e40af;
  
  /* Surface Colors */
  --color-surface: #ffffff;
  --color-surface-secondary: #f8fafc;
  --color-surface-tertiary: #f1f5f9;
  --color-surface-elevated: #ffffff;
  
  /* Border Colors */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-border-dark: #cbd5e1;
  
  /* Text Colors */
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-tertiary: #94a3b8;
  --color-text-inverse: #ffffff;
  
  /* State Colors */
  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  
  /* Filter Chip Colors */
  --color-chip-bg: #dbeafe;
  --color-chip-text: #1e40af;
  --color-chip-hover: #bfdbfe;
  
  /* === SPACING === */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  
  /* === TYPOGRAPHY === */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* 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 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.75;
  
  /* === BORDERS === */
  --border-width: 1px;
  --border-width-thick: 2px;
  
  /* Border Radius */
  --radius-sm: 0.25rem;     /* 4px */
  --radius-md: 0.375rem;    /* 6px */
  --radius-lg: 0.5rem;      /* 8px */
  --radius-xl: 0.75rem;     /* 12px */
  --radius-2xl: 1rem;       /* 16px */
  --radius-full: 9999px;    /* Fully rounded */
  
  /* === SHADOWS === */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
  
  /* === Z-INDEX === */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
  
  /* === TRANSITIONS === */
  --transition-fast: 150ms;
  --transition-base: 250ms;
  --transition-slow: 350ms;
  --transition-slower: 500ms;
  
  --transition-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --transition-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === LAYOUT === */
  --header-height: 64px;
  --max-content-width: 1280px;

  /* NOTE: Removed unused variables (Phase 2.3 cleanup):
     --fab-size, --fab-offset: No FAB button in UI
     --drawer-width, --drawer-transition, --backdrop-transition: No drawer implemented
  */

  /* === FILTER SPECIFIC === */
  --chip-height: 32px;
  --chip-padding-x: 0.75rem;
  --chip-gap: 0.5rem;

  --search-height: 44px;
  --search-height-lg: 48px;
}

/* === DARK MODE COLORS === */
.dark {
  /* Surface Colors */
  --color-surface: #1e293b;
  --color-surface-secondary: #334155;
  --color-surface-tertiary: #475569;
  --color-surface-elevated: #334155;
  
  /* Border Colors */
  --color-border: #475569;
  --color-border-light: #334155;
  --color-border-dark: #64748b;
  
  /* Text Colors */
  --color-text: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-inverse: #1e293b;
  
  /* Primary Colors (slightly lighter for dark mode) */
  --color-primary: #3b82f6;
  --color-primary-hover: #60a5fa;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #2563eb;
  
  /* Filter Chip Colors */
  --color-chip-bg: #1e3a8a;
  --color-chip-text: #bfdbfe;
  --color-chip-hover: #1e40af;
  
  /* State Colors (adjusted for dark mode) */
  --color-error-light: #7f1d1d;
  --color-success-light: #064e3b;
  --color-warning-light: #78350f;
  --color-info-light: #1e3a8a;
  
  /* Shadows (more prominent in dark mode) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6), 0 10px 10px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
}

/* === RESPONSIVE BREAKPOINTS === */
/* Use these in media queries */
/* 
@media (min-width: 640px)  { ... } // sm
@media (min-width: 768px)  { ... } // md
@media (min-width: 1024px) { ... } // lg
@media (min-width: 1280px) { ... } // xl
*/
