/* =============================================================================
   ARBSIGHT PRO - DESIGN TOKENS
   Refined Professional Dark UI

   AESTHETIC: clean midnight surfaces with restrained cobalt accents
   TYPOGRAPHY: local system UI (body/display), local system mono (data)
   ============================================================================= */

:root {
  /* =========================================================================
     TERMINAL COLOR SYSTEM - Unified & Consistent
     ========================================================================= */

  /* --- Background Layers (Clean dark base) --- */
  --color-bg-base: #070b12;
  --color-bg-elevated: #0c1320;
  --color-bg-surface: #101827;
  --color-bg-surface-light: #162338;
  --color-bg-hover: rgba(255, 255, 255, 0.04);
  --color-bg-active: rgba(255, 255, 255, 0.06);
  --color-bg-card: linear-gradient(180deg, rgba(12, 19, 32, 0.94) 0%, rgba(14, 22, 36, 0.97) 100%);

  /* --- Primary Accent - Cobalt Blue --- */
  --color-primary: #4e96ff;
  --color-primary-rgb: 78, 150, 255;
  --color-primary-dim: #356fd4;
  --color-primary-bright: #76b7ff;
  --color-primary-muted: rgba(78, 150, 255, 0.16);
  --color-primary-subtle: rgba(78, 150, 255, 0.08);

  /* --- Secondary Accent - Brand Gold, used sparingly --- */
  --color-brand-gold: #d5a14a;
  --color-brand-gold-rgb: 213, 161, 74;
  --color-brand-gold-muted: rgba(213, 161, 74, 0.14);
  --color-brand-gold-subtle: rgba(213, 161, 74, 0.08);

  /* --- Brand Navy (From Proper Odds Logo) --- */
  --brand-navy: #183151;
  --brand-navy-light: #21456f;
  --brand-navy-dark: #102338;
  --brand-navy-rgb: 24, 49, 81;
  --brand-navy-muted: rgba(24, 49, 81, 0.16);
  --brand-navy-subtle: rgba(24, 49, 81, 0.08);

  /* --- Secondary Accent - Electric Cyan (Live/Active) --- */
  --color-cyan: #59c6ff;
  --color-cyan-rgb: 89, 198, 255;
  --color-cyan-dim: #2d8fd0;
  --color-cyan-bright: #91dcff;
  --color-cyan-muted: rgba(89, 198, 255, 0.15);
  --color-cyan-subtle: rgba(89, 198, 255, 0.08);

  /* --- CTA - White for maximum contrast --- */
  --color-cta: #fafafa;
  --color-cta-text: #0c0c0f;

  /* --- Semantic Colors (Status indicators) --- */
  --color-success: #34d399;
  --color-success-bright: #6ee7b7;
  --color-success-muted: rgba(52, 211, 153, 0.15);
  --color-warning: #fbbf24;
  --color-warning-muted: rgba(251, 191, 36, 0.15);
  --color-danger: #ef4444;
  --color-danger-bright: #f87171;
  --color-danger-muted: rgba(239, 68, 68, 0.15);
  --color-info: #60a5fa;
  --color-info-muted: rgba(96, 165, 250, 0.15);

  /* --- Text Hierarchy (Optimized for dark backgrounds) --- */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-subtle: #475569;
  --color-text-disabled: #334155;

  /* --- Borders (Subtle blue-gray tones) --- */
  --color-border-default: rgba(100, 116, 139, 0.25);
  --color-border-subtle: rgba(71, 85, 105, 0.2);
  --color-border-strong: rgba(148, 163, 184, 0.3);
  --color-border-accent: rgba(212, 168, 83, 0.25);
  --color-border-accent-strong: rgba(212, 168, 83, 0.45);
  --color-border-cyan: rgba(34, 211, 238, 0.25);

  /* --- Glass Effects (Refined) --- */
  --color-glass-bg: rgba(13, 17, 23, 0.85);
  --color-glass-bg-hover: rgba(21, 27, 38, 0.9);
  --color-glass-border: rgba(100, 116, 139, 0.2);
  --color-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

  /* =========================================================================
     ACCENT SYSTEM - Comprehensive opacity scales
     ========================================================================= */

  /* Gold/Amber - Primary brand accent */
  --accent-primary: #d4a853;
  --accent-primary-rgb: 212, 168, 83;
  --accent-primary-5: rgba(212, 168, 83, 0.05);
  --accent-primary-10: rgba(212, 168, 83, 0.10);
  --accent-primary-15: rgba(212, 168, 83, 0.15);
  --accent-primary-20: rgba(212, 168, 83, 0.20);
  --accent-primary-30: rgba(212, 168, 83, 0.30);
  --accent-primary-50: rgba(212, 168, 83, 0.50);

  /* Emerald - Profit/Success indicators */
  --accent-profit: #4fae87;
  --accent-profit-rgb: 52, 211, 153;
  --accent-profit-5: rgba(52, 211, 153, 0.05);
  --accent-profit-10: rgba(52, 211, 153, 0.10);
  --accent-profit-15: rgba(52, 211, 153, 0.15);
  --accent-profit-20: rgba(52, 211, 153, 0.20);
  --accent-profit-30: rgba(52, 211, 153, 0.30);

  /* Cyan - Active/Live states */
  --accent-cyan: #22d3ee;
  --accent-cyan-rgb: 34, 211, 238;
  --accent-cyan-5: rgba(34, 211, 238, 0.05);
  --accent-cyan-10: rgba(34, 211, 238, 0.10);
  --accent-cyan-15: rgba(34, 211, 238, 0.15);
  --accent-cyan-20: rgba(34, 211, 238, 0.20);

  /* Slate - Secondary/Neutral */
  --accent-secondary: #94a3b8;
  --accent-secondary-rgb: 148, 163, 184;
  --accent-secondary-5: rgba(148, 163, 184, 0.05);
  --accent-secondary-10: rgba(148, 163, 184, 0.10);
  --accent-secondary-15: rgba(148, 163, 184, 0.15);
  --accent-secondary-20: rgba(148, 163, 184, 0.20);

  /* Red - Live/Danger/Alert */
  --accent-live: #ef4444;
  --accent-live-rgb: 239, 68, 68;
  --accent-live-5: rgba(239, 68, 68, 0.05);
  --accent-live-10: rgba(239, 68, 68, 0.10);
  --accent-live-20: rgba(239, 68, 68, 0.20);
  --accent-live-30: rgba(239, 68, 68, 0.30);

  /* =========================================================================
     TYPOGRAPHY
     ========================================================================= */

  /* Local system fonts keep the application independent of third-party font hosts. */
  --font-brand: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Cascadia Mono', 'Consolas', monospace;

  /* Font Sizes */
  --text-2xs: 0.625rem;      /* 10px */
  --text-xs: 0.6875rem;      /* 11px */
  --text-sm: 0.75rem;        /* 12px */
  --text-base: 0.8125rem;    /* 13px */
  --text-md: 0.875rem;       /* 14px */
  --text-lg: 1rem;           /* 16px */
  --text-xl: 1.125rem;       /* 18px */
  --text-2xl: 1.25rem;       /* 20px */
  --text-3xl: 1.5rem;        /* 24px */
  --text-4xl: 1.875rem;      /* 30px */
  --text-5xl: 2rem;          /* 32px - Primary metrics */
  --text-6xl: 2.25rem;       /* 36px - Hero stats */

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-display: 800;     /* For hero headlines */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;

  /* Letter Spacing */
  --tracking-tighter: -0.025em;
  --tracking-tight: -0.015em;
  --tracking-normal: -0.011em;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* =========================================================================
     SPACING
     ========================================================================= */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;
  --space-1: 0.25rem;
  --space-1-5: 0.375rem;
  --space-2: 0.5rem;
  --space-2-5: 0.625rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* =========================================================================
     BORDER RADIUS
     ========================================================================= */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-2xl: 12px;
  --radius-full: 9999px;

  /* =========================================================================
     SHADOWS (Minimal)
     ========================================================================= */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);

  /* No glow effects - clean and professional */
  --glow-primary: none;
  --glow-profit: none;
  --glow-live: none;

  /* =========================================================================
     TRANSITIONS - Human-Feel Animation Timing
     Intentional, organic timing - NOT robotic
     ========================================================================= */
  --duration-fast: 100ms;
  --duration-normal: 150ms;
  --duration-slow: 200ms;
  --duration-subtle: 180ms;       /* Quick but perceivable */
  --duration-natural: 280ms;      /* Natural human reaction time */
  --duration-deliberate: 400ms;   /* Considered, important actions */

  /* Organic easing - mimics natural movement */
  --ease-default: ease;
  --ease-out: ease-out;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-natural: cubic-bezier(0.4, 0, 0.2, 1);         /* Material design standard */
  --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);  /* Playful bounce */
  --ease-settle: cubic-bezier(0.25, 0.46, 0.45, 0.94);  /* Gentle settle */

  /* =========================================================================
     Z-INDEX
     ========================================================================= */
  --z-base: 0;
  --z-card: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal: 50;
  --z-tooltip: 70;
}

/* =============================================================================
   COMPONENT TOKENS
   ============================================================================= */

:root {
  /* Card Layout */
  --card-padding-x: var(--space-6);
  --card-padding-y: var(--space-5);
  --card-gap: var(--space-4);
  --card-border-radius: var(--radius-lg);
  --card-bg: var(--color-bg-elevated);

  /* Data Row */
  --row-padding-x: 1.25rem;
  --row-padding-y: 1rem;
  --row-border-color: var(--color-border-subtle);
  --row-hover-bg: rgba(255, 255, 255, 0.02);

  /* Bet Tile */
  --bet-tile-height: 64px;
  --bet-tile-radius: var(--radius-md);

  /* Badge */
  --badge-radius: var(--radius-sm);
  --badge-padding: 3px 8px;

  /* Live Indicator */
  --live-dot-size: 6px;

  /* Table Header */
  --header-padding-x: 1.25rem;
  --header-padding-y: 0.875rem;
  --header-font-size: 0.6875rem;
}
