/**
 * Design Token System
 * Centralized design decisions for the HockeyShare application
 * These tokens ensure consistency across all UI components
 */

:root {
  /* ===========================================
     COLOR SYSTEM
     =========================================== */
  
  /* Brand Colors */
  --color-primary: #dc3545;
  --color-primary-hover: #c82333;
  --color-primary-dark: #b91c1c;
  --color-primary-light: #e85d6c;
  
  /* Semantic Colors */
  --color-success: #28a745;
  --color-success-hover: #218838;
  --color-success-dark: #1e7e34;
  --color-success-light: #d1fae5;
  
  --color-warning: #ffc107;
  --color-warning-hover: #e0a800;
  --color-warning-dark: #d39e00;
  --color-warning-light: #fef3c7;
  
  --color-danger: #dc2626;
  --color-danger-hover: #b91c1c;
  --color-danger-dark: #991b1b;
  --color-danger-light: #fee2e2;
  
  --color-info: #17a2b8;
  --color-info-hover: #138496;
  --color-info-dark: #0f6674;
  --color-info-light: #dbeafe;
  
  --color-secondary: #6b7280;
  --color-secondary-hover: #4b5563;
  --color-secondary-dark: #374151;
  
  /* Neutral Colors */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f3f4f6;
  --bg-elevated: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* Component-Specific Tokens */
  --component-border: 1px solid #e5e7eb;
  --component-border-light: 1px solid #f3f4f6;
  --component-border-dark: 1px solid #d1d5db;
  --component-radius: 0.5rem;
  --component-radius-sm: 0.25rem;
  --component-radius-lg: 0.75rem;
  --component-radius-xl: 1rem;
  --component-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --component-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --component-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --component-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Interactive States */
  --state-hover-opacity: 0.05;
  --state-active-opacity: 0.1;
  --state-disabled-opacity: 0.5;
  --state-focus-ring: 0 0 0 3px rgba(220, 53, 69, 0.1);
  
  /* Animation System */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  
  /* ===========================================
     TYPOGRAPHY
     =========================================== */
  
  /* Font Families */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: '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.75rem;    /* 28px */
  --text-4xl: 2rem;       /* 32px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* ===========================================
     SPACING SYSTEM
     =========================================== */
  
  /* Base 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 */
  
  /* Component spacing */
  --padding-button: 0.75rem 1.5rem;
  --padding-button-sm: 0.375rem 0.75rem;
  --padding-input: 0.75rem;
  --padding-card: 1.5rem;
  --padding-section: 2rem;
  
  /* ===========================================
     LAYOUT
     =========================================== */
  
  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  
  /* Border radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-full: 9999px;
  
  /* Borders */
  --border-width: 1px;
  --border-color: var(--color-gray-200);
  --border: var(--border-width) solid var(--border-color);
  
  /* ===========================================
     SHADOWS
     =========================================== */
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --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);
  
  /* ===========================================
     TRANSITIONS
     =========================================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Common transitions */
  --transition-colors: color var(--transition-base), 
                      background-color var(--transition-base), 
                      border-color var(--transition-base);
  --transition-shadow: box-shadow var(--transition-base);
  --transition-transform: transform var(--transition-base);
  --transition-all: all var(--transition-base);
  
  /* ===========================================
     COMPONENT SPECIFIC
     =========================================== */
  
  /* Avatar sizes */
  --avatar-xs: 32px;
  --avatar-sm: 40px;
  --avatar-md: 60px;
  --avatar-lg: 80px;
  --avatar-xl: 120px;
  
  /* Z-index scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 9000;
  --z-modal: 9010;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Breakpoints (for reference in JS) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode tokens can be defined here */
  }
}

/* Print-specific tokens */
@media print {
  :root {
    --color-primary: #000000;
    --text-primary: #000000;
    --bg-primary: #ffffff;
  }
}