/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* ===== BRAND COLORS ===== */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fbbf24;

  /* ===== ACCENT COLORS ===== */
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;

  /* ===== DARK THEME COLORS ===== */
  --white: #ffffff;
  --gray-50: #1f2937;
  --gray-100: #374151;
  --gray-200: #4b5563;
  --gray-300: #6b7280;
  --gray-400: #9ca3af;
  --gray-500: #d1d5db;
  --gray-600: #e5e7eb;
  --gray-700: #f3f4f6;
  --gray-800: #f9fafb;
  --gray-900: #ffffff;
  --black: #000000;

  /* ===== BACKGROUND COLORS (DARK THEME) ===== */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-dark: #0f172a;
  --bg-darker: #020617;

  /* ===== TEXT COLORS (DARK THEME) ===== */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-white: #ffffff;

  /* ===== BORDER COLORS (DARK THEME) ===== */
  --border-light: #334155;
  --border-medium: #475569;
  --border-dark: #64748b;

  /* ===== SHADOW COLORS (DARK THEME) ===== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.4);

  /* ===== TYPOGRAPHY ===== */
  --font-family-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-family-mono: "Fira Code", Consolas, "Liberation Mono", Menlo, monospace;

  /* Font display optimization for performance */
  font-display: swap;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* 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-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */
  --font-size-6xl: 3.75rem; /* 60px */

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* ===== SPACING ===== */
  --space-0: 0;
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */
  --space-32: 8rem; /* 128px */

  /* ===== BORDER RADIUS ===== */
  --radius-none: 0;
  --radius-sm: 0.125rem; /* 2px */
  --radius-md: 0.375rem; /* 6px */
  --radius-lg: 0.5rem; /* 8px */
  --radius-xl: 0.75rem; /* 12px */
  --radius-2xl: 1rem; /* 16px */
  --radius-3xl: 1.5rem; /* 24px */
  --radius-full: 9999px;

  /* ===== BREAKPOINTS ===== */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;

  /* ===== 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;
  --z-toast: 1080;

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  --transition-all: all var(--transition-base);

  /* ===== BETTING SITE SPECIFIC COLORS ===== */
  --rating-gold: #fbbf24;
  --rating-silver: #6b7280;
  --bonus-green: #10b981;
  --bonus-orange: #f59e0b;
  --warning-red: #ef4444;
  --verified-blue: #3b82f6;

  /* ===== GRADIENT BACKGROUNDS ===== */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--secondary-dark) 100%
  );
  --gradient-success: linear-gradient(
    135deg,
    var(--accent-success) 0%,
    #059669 100%
  );
  --gradient-hero: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --gradient-dark: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-darker) 100%
  );

  /* ===== COMPONENT SPECIFIC VARIABLES ===== */
  /* Header */
  --header-height: 70px;
  --header-bg: var(--bg-secondary);
  --header-shadow: var(--shadow-lg);

  /* Hero Section */
  --hero-height: 400px;
  --hero-bg: var(--gradient-hero);
  --hero-overlay: rgba(0, 0, 0, 0.3);

  /* Cards */
  --card-bg: var(--bg-secondary);
  --card-border: var(--border-light);
  --card-shadow: var(--shadow-md);
  --card-shadow-hover: var(--shadow-xl);
  --card-radius: var(--radius-xl);

  /* Buttons */
  --btn-radius: var(--radius-lg);
  --btn-padding-x: var(--space-6);
  --btn-padding-y: var(--space-3);

  /* Forms */
  --input-border: var(--border-medium);
  --input-radius: var(--radius-lg);
  --input-focus-border: var(--primary-color);
  --input-bg: var(--bg-tertiary);

  /* Footer */
  --footer-bg: var(--bg-darker);
  --footer-text: var(--text-muted);

  /* ===== ANIMATION VARIABLES ===== */
  --animation-bounce: bounce 1s infinite;
  --animation-pulse: pulse 2s infinite;
  --animation-spin: spin 1s linear infinite;
  --animation-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;

  /* ===== SPACING UTILITIES ===== */
  --container-padding: var(--space-4);
  --section-padding: var(--space-16);
  --widget-padding: var(--space-6);
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: none;
    --transition-base: none;
    --transition-slow: none;
    --transition-all: none;
    --animation-bounce: none;
    --animation-pulse: none;
    --animation-spin: none;
    --animation-ping: none;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --border-light: var(--gray-100);
    --border-medium: var(--gray-200);
    --text-muted: var(--gray-400);
  }
}
