/* ============================================
   CSS VARIABLES - DESIGN SYSTEM
   ============================================
   Centralized design tokens for consistent styling
   across all components and games.
*/

:root {
    /* ========================================
       TEAM COLORS (Game-specific)
       ======================================== */
    --color-team-red: #e74c3c;
    --color-team-red-dark: #c0392b;
    --color-team-red-darker: #b71c1c;
    --color-team-red-light: #ffebee;
    --color-team-red-transparent: rgba(231, 76, 60, 0.5);
    
    --color-team-blue: #3498db;
    --color-team-blue-dark: #2980b9;
    --color-team-blue-darker: #1565c0;
    --color-team-blue-light: #e3f2fd;
    --color-team-blue-transparent: rgba(52, 152, 219, 0.5);
    
    --color-team-both: #7b1fa2;
    --color-team-both-dark: #6a1b9a;
    --color-team-both-light: #f3e5f5;
    
    --color-team-board: #6c757d;
    --color-team-board-dark: #5a6268;
    
    /* Card colors (secretwords) */
    --color-card-neutral: #f39c12;
    --color-card-neutral-transparent: rgba(243, 156, 18, 0.5);
    --color-card-assassin: #000000;
    --color-card-assassin-transparent: rgba(0, 0, 0, 0.5);
    --color-card-default: #95a5a6;
    
    /* ========================================
       UI COLORS (General application)
       ======================================== */
    --color-primary: #3498db;
    --color-primary-dark: #2980b9;
    --color-primary-hover: #1976d2;
    --color-primary-light: #e3f2fd;
    
    --color-success: #2ecc71;
    --color-success-dark: #27ae60;
    --color-success-darker: #43a047;
    --color-success-bg: #d4edda;
    --color-success-border: #c3e6cb;
    --color-success-text: #155724;
    
    --color-error: #e74c3c;
    --color-error-dark: #c0392b;
    --color-error-bg: #f8d7da;
    --color-error-border: #f5c6cb;
    --color-error-text: #721c24;
    
    --color-warning: #f57c00;
    --color-warning-dark: #ef6c00;
    --color-warning-bg: #fff3cd;
    --color-warning-border: #ffeaa7;
    --color-warning-text: #856404;
    
    --color-info: #3498db;
    --color-info-bg: #e3f2fd;
    
    /* ========================================
       NEUTRAL COLORS
       ======================================== */
    --color-text-primary: #333333;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    --color-text-inverse: #ffffff;
    
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f5f5f5;
    --color-bg-tertiary: #f8f9fa;
    --color-bg-hover: #f0f0f0;
    --color-bg-dark: #2c3e50;
    
    --color-border-light: #e5e5e5;
    --color-border-medium: #dddddd;
    --color-border-dark: #cccccc;
    
    /* Specialty colors */
    --color-host-badge: #ffd700;
    --color-spymaster-badge: #ff6f00;
    --color-highlight: #f0f8ff;
    
    /* ========================================
       SPACING (8px base)
       ======================================== */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Component-specific spacing */
    --space-card-padding: 10px;
    --space-button-padding-x: 20px;
    --space-button-padding-y: 10px;
    --space-input-padding: 10px;
    
    /* ========================================
       TYPOGRAPHY
       ======================================== */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-mono: monospace;
    
    --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: 2rem;        /* 32px */
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.3;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
    --line-height-none: 1;
    
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.05em;
    --letter-spacing-room-code: 0.2em;
    
    /* ========================================
       ANIMATIONS
       ======================================== */
    --duration-instant: 0ms;
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-medium: 300ms;
    --duration-slow: 400ms;
    
    --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-enter: cubic-bezier(0, 0, 0.2, 1);
    --easing-exit: cubic-bezier(0.4, 0, 1, 1);
    
    /* ========================================
       BORDERS & RADIUS
       ======================================== */
    --border-width: 1px;
    --border-width-thick: 2px;
    
    --border-radius-sm: 3px;
    --border-radius-base: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
    --border-radius-full: 50%;
    
    /* ========================================
       SHADOWS
       ======================================== */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-base: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 8px 20px rgba(0, 0, 0, 0.3);
    
    --shadow-team-red: 0 2px 8px rgba(211, 47, 47, 0.4);
    --shadow-team-blue: 0 2px 8px rgba(25, 118, 210, 0.4);
    --shadow-team-both: 0 2px 8px rgba(123, 31, 162, 0.4);
    --shadow-team-board: 0 2px 8px rgba(108, 117, 125, 0.4);
    --shadow-warning: 0 2px 8px rgba(245, 124, 0, 0.3);
    
    /* ========================================
       Z-INDEX LAYERS
       ======================================== */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-raised: 1;
    --z-header: 1000;
    --z-overlay: 9000;
    --z-modal: 9500;
    --z-toast: 10000;
    
    /* ========================================
       LAYOUT DIMENSIONS
       ======================================== */
    --header-height: 64px;
    --header-height-mobile: 56px;
    --header-height-short: 48px;
    
    --container-max-width: 1200px;
    --container-max-width-wide: 1400px;
    
    --touch-target-min: 44px;
    
    /* ========================================
       BREAKPOINTS (for reference in media queries)
       ======================================== */
    --breakpoint-xs: 480px;
    --breakpoint-sm: 600px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1200px;
    
    /* ========================================
       GAME-SPECIFIC
       ======================================== */
    /* secretwords grid */
    --grid-gap: 6px;
    --grid-gap-mobile: 4px;
    
    /* Logo sizes */
    --logo-size: 40px;
    --logo-size-mobile: 32px;
    
    /* ========================================
       SPACING SHORTCUTS
       ======================================== */
    --spacing-xs: var(--space-xs);
    --spacing-sm: var(--space-sm);
    --spacing-md: var(--space-md);
    --spacing-lg: var(--space-lg);
    --spacing-xl: var(--space-xl);
    --spacing-xxl: var(--space-xxl);
}
