/* ═══════════════════════════════════════════════════════════════════════
   VCP Deportes — Design Tokens & Theme System
   Villa Carlos Paz · Transmisiones deportivas gratis
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand: VCP (Villa Carlos Paz escudo histórico) ── */
  --vcp-yellow: #FFD700;
  --vcp-yellow-bright: #FFE44D;
  --vcp-black: #1a1a1a;
  --vcp-red: #CC0000;
  --vcp-red-bright: #E60000;
  --vcp-white: #FFFFFF;

  /* ── Semantic palette — dark mode (default) ── */
  color-scheme: dark;
  --color-background: #0d0d0d;
  --color-background-secondary: #141414;
  --color-background-tertiary: #1a1a1a;
  --color-surface: #1a1a1a;
  --color-surface-hover: #242424;
  --color-surface-elevated: #2a2a2a;
  --color-text-primary: #f5f5f7;
  --color-text-secondary: #a1a1a6;
  --color-text-tertiary: #838387;
  --color-text-inverse: #1a1a1a;
  --color-border: #2a2a2a;
  --color-border-strong: #444448;
  --color-focus: #FFD700;
  --color-overlay: rgba(0, 0, 0, 0.72);
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* ── Brand semantic roles ── */
  --color-accent: var(--vcp-yellow);
  --color-accent-hover: var(--vcp-yellow-bright);
  --color-accent-text: var(--vcp-black);
  --color-primary: var(--vcp-red);
  --color-primary-hover: var(--vcp-red-bright);
  --color-link: var(--vcp-yellow);
  --color-link-hover: var(--vcp-yellow-bright);

  /* ── Sports semantic ── */
  --color-live: var(--vcp-red);
  --color-live-glow: #ff3333;
  --color-upcoming: var(--vcp-yellow);
  --color-featured: var(--vcp-yellow);

  /* ── Gradients ── */
  --gradient-hero: linear-gradient(135deg, #0d0d0d 0%, #1a0000 30%, #CC0000 60%, #FFD700 100%);
  --gradient-card: linear-gradient(180deg, transparent 0%, rgba(204, 0, 0, 0.08) 100%);
  --gradient-card-hover: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.12) 100%);
  --gradient-live-badge: linear-gradient(135deg, var(--vcp-red), var(--vcp-red-bright));
  --gradient-vcp-logo: linear-gradient(135deg, var(--vcp-yellow) 0%, var(--vcp-red) 100%);
  --gradient-section-dark: linear-gradient(180deg, var(--color-background) 0%, #1a0000 100%);

  /* ── Typography ── */
  --font-display: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;

  --text-legal: 0.625rem;
  --text-micro: 0.75rem;
  --text-control: 0.875rem;
  --text-body: 1.0625rem;
  --text-subhead: 1.1875rem;
  --text-action: 1.3125rem;
  --text-title: 1.75rem;
  --text-utility: 1.5rem;
  --text-section: 2.5rem;
  --text-hero: clamp(2.5rem, 8vw, 4.5rem);

  --line-tight: 1.08;
  --line-title: 1.15;
  --line-body: 1.5;
  --line-relaxed: 1.65;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --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;
  --space-24: 6rem;

  /* ── Radii ── */
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-pill: 62.5rem;
  --radius-circle: 50%;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow-yellow: 0 0 24px rgba(255, 215, 0, 0.18);
  --shadow-glow-red: 0 0 24px rgba(204, 0, 0, 0.22);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--color-border);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--vcp-yellow);

  /* ── Layout ── */
  --container: 75rem;
  --container-wide: 90rem;
  --container-narrow: 56rem;
  --nav-height: 3.5rem;
  --touch-target: 2.75rem;

  /* ── Animation ── */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-entrance: 600ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── Light theme ── */
:root[data-theme="light"] {
  color-scheme: light;
  --color-background: #f8f8f5;
  --color-background-secondary: #ffffff;
  --color-background-tertiary: #f0f0eb;
  --color-surface: #ffffff;
  --color-surface-hover: #f5f5f0;
  --color-surface-elevated: #ffffff;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-tertiary: #6e6e73;
  --color-text-inverse: #ffffff;
  --color-border: #e0e0da;
  --color-border-strong: #c0c0b8;
  --color-overlay: rgba(0, 0, 0, 0.45);
  --color-link: var(--vcp-red);
  --color-link-hover: var(--vcp-red-bright);
  --color-focus: #CC0000;

  --gradient-hero: linear-gradient(135deg, #f8f8f5 0%, #fff8e0 30%, #FFD700 60%, #CC0000 100%);
  --gradient-card: linear-gradient(180deg, transparent 0%, rgba(204, 0, 0, 0.04) 100%);
  --gradient-card-hover: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.08) 100%);
  --gradient-section-dark: linear-gradient(180deg, #f8f8f5 0%, #fff0e0 100%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.14);
  --shadow-glow-yellow: 0 0 24px rgba(255, 215, 0, 0.22);
  --shadow-glow-red: 0 0 24px rgba(204, 0, 0, 0.18);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--color-border);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--vcp-yellow);
}

/* ── System dark preference (when user hasnʼt chosen) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* inherits :root dark defaults — we default to dark for sports feel */
  }
}
