/**
 * ScoreCric - Design Tokens
 * CSS Custom Properties (CricScore Brand Consistent)
 */

:root {
  /* Brand Colors - Matching KL/CricScore */
  --navy: #233746;
  --navy-dark: #1c2a33;
  --navy-light: #2d4456;
  --teal: #12B6A6;
  --teal-dark: #0e9a8c;
  --teal-light: #15d4c2;
  
  /* Primary (using teal) */
  --primary: var(--teal);
  --primary-dark: var(--teal-dark);
  --primary-light: var(--teal-light);
  
  /* Cricket-Specific Accent */
  --cricket-green: #2d8a4e;
  --cricket-green-dark: #1f6b3a;
  --cricket-green-light: #3ba861;
  
  /* Semantic Colors */
  --success: #22c55e;
  --success-dark: #16a34a;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --info: #3b82f6;
  --info-dark: #2563eb;
  --error: var(--danger);
  
  /* Score Colors */
  --runs-4: #3b82f6;
  --runs-6: #8b5cf6;
  --runs: #22c55e;
  --wicket: #ef4444;
  --extras: #f59e0b;
  --dot-ball: #64748b;
  
  /* Celebration Colors */
  --gold: #ffd700;
  --gold-dark: #b8860b;
  
  /* Team Colors */
  --team-1: #3b82f6;
  --team-2: #f472b6;
  --team-3: #22c55e;
  --team-4: #f59e0b;
  --team-5: #8b5cf6;
  --team-6: #06b6d4;
  --team-7: #ef4444;
  --team-8: #84cc16;
  
  /* Neutrals */
  --white: #ffffff;
  --dark: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --black: #000000;
  
  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #1e293b;
  --text-inverse: #0f172a;
  
  /* Subtle Colors (for backgrounds) */
  --teal-subtle: rgba(18, 182, 166, 0.15);
  --success-subtle: rgba(34, 197, 94, 0.15);
  --warning-subtle: rgba(245, 158, 11, 0.15);
  --danger-subtle: rgba(239, 68, 68, 0.15);
  --info-subtle: rgba(59, 130, 246, 0.15);
  
  /* Backgrounds */
  --bg-primary: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  --bg-secondary: #1e293b;
  --bg-dark: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --bg-hover: rgba(255, 255, 255, 0.1);
  --bg-input: rgba(0, 0, 0, 0.3);
  --bg-pitch: linear-gradient(180deg, var(--cricket-green) 0%, var(--cricket-green-dark) 100%);
  
  /* Surface (alias for cards/panels) */
  --surface: var(--bg-card);
  --surface-elevated: var(--bg-elevated);
  --surface-hover: var(--bg-hover);

  /** Opaque panel for floating menus (header user, scoring ⚙, search dropdowns). Not the glass tokens — those read as transparent on busy UIs. */
  --menu-surface: var(--navy-light);
  
  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-focus: var(--teal);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(18, 182, 166, 0.3);
  --shadow-score: 0 0 30px rgba(34, 197, 94, 0.2);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
  
  /* Z-index layers */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 1100;
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 64px;
  --sidebar-width: 280px;
}
