/* ==========================================================================
   THEME VARIABLES & SWITCHING SYSTEM
   Supports: Dark (default) and Light theme with smooth transitions
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Default Dark IPTV Theme */
  --background: #080B12;
  --surface: #111827;
  --surface-light: #1B2433;
  --surface-card: #131D2D;
  --surface-card-hover: #1E2B3E;
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --accent: #00D4FF;
  --text: #FFFFFF;
  --text-secondary: #CBD5E1;
  --muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 212, 255, 0.5);
  --badge-live: #EF4444;
  --badge-live-glow: rgba(239, 68, 68, 0.4);
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --player-scrim: rgba(8, 11, 18, 0.95);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --active-glow: 0 0 16px rgba(0, 212, 255, 0.25);
}

[data-theme="light"] {
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --surface-light: #F1F5F9;
  --surface-card: #FFFFFF;
  --surface-card-hover: #F8FAFC;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent: #0284C7;
  --text: #0F172A;
  --text-secondary: #334155;
  --muted: #64748B;
  --border: rgba(15, 23, 42, 0.08);
  --border-active: rgba(37, 99, 235, 0.5);
  --badge-live: #DC2626;
  --badge-live-glow: rgba(220, 38, 38, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  --player-scrim: rgba(15, 23, 42, 0.95);
  --card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --active-glow: 0 0 14px rgba(37, 99, 235, 0.15);
}

/* Base Body Application */
html {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] html {
  color-scheme: light;
}

body {
  background-color: var(--background);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
