/* ============================================
   IPTV Smarters Pro - Design System Variables
   Modern Premium Light Theme
   Target: 30-80 age demographic - Clean & Readable
   ============================================ */

:root {
  /* ─────────────────────────────────────────
     Color Palette - Light & Professional
     ───────────────────────────────────────── */

  /* Base Colors */
  --color-black: #1a1a2e;
  --color-white: #ffffff;

  /* Background Colors - Clean Light */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-glass-hover: rgba(255, 255, 255, 0.98);
  --bg-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-hero-overlay: rgba(102, 126, 234, 0.03);

  /* Accent Colors - Trustworthy & Vibrant */
  --accent-primary: #4f46e5;      /* Indigo - Trust */
  --accent-secondary: #7c3aed;    /* Purple - Premium */
  --accent-tertiary: #06b6d4;     /* Cyan - Fresh */
  --accent-success: #10b981;      /* Emerald - Positive */
  --accent-warning: #f59e0b;      /* Amber - Attention */
  --accent-gold: #eab308;         /* Gold for Premium/DUO */
  --accent-danger: #ef4444;       /* Red - Important */

  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #eab308 50%, #fbbf24 100%);
  --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-light: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(79, 70, 229, 0.08) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(124, 58, 237, 0.06) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, rgba(6, 182, 212, 0.06) 0px, transparent 50%),
                   radial-gradient(at 80% 50%, rgba(79, 70, 229, 0.04) 0px, transparent 50%),
                   radial-gradient(at 0% 100%, rgba(124, 58, 237, 0.06) 0px, transparent 50%);

  /* Text Colors - High Contrast for Readability */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-accent: #4f46e5;
  --text-light: #ffffff;
  --text-on-primary: #ffffff;

  /* Border Colors */
  --border-primary: #e2e8f0;
  --border-secondary: #cbd5e1;
  --border-accent: rgba(79, 70, 229, 0.3);
  --border-glow: rgba(79, 70, 229, 0.5);

  /* ─────────────────────────────────────────
     Typography - Readable for All Ages
     ───────────────────────────────────────── */

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes - Slightly Larger for Accessibility */
  --text-xs: clamp(0.8125rem, 0.75rem + 0.3vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.1875rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.375rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.75rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.1vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 2.75rem);
  --text-5xl: clamp(2.75rem, 2.25rem + 2.5vw, 3.75rem);
  --text-6xl: clamp(3.25rem, 2.75rem + 2.5vw, 4.5rem);

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights - Comfortable Reading */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* ─────────────────────────────────────────
     Spacing Scale
     ───────────────────────────────────────── */

  --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 */

  /* ─────────────────────────────────────────
     Layout
     ───────────────────────────────────────── */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

  --header-height: 80px;
  --section-padding: clamp(4rem, 8vw, 7rem);

  /* ─────────────────────────────────────────
     Border Radius
     ───────────────────────────────────────── */

  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  --radius-full: 9999px;

  /* ─────────────────────────────────────────
     Shadows - Subtle & Professional
     ───────────────────────────────────────── */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.2);
  --shadow-glow-lg: 0 0 60px rgba(79, 70, 229, 0.3);
  --shadow-glow-gold: 0 0 30px rgba(234, 179, 8, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 30px rgba(79, 70, 229, 0.15);

  /* ─────────────────────────────────────────
     Transitions
     ───────────────────────────────────────── */

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;

  --ease-in-out-cubic: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-cubic: cubic-bezier(0.32, 0, 0.67, 0);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ─────────────────────────────────────────
     Z-Index Scale
     ───────────────────────────────────────── */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* ============================================
   High Contrast Mode Support
   ============================================ */

@media (prefers-contrast: high) {
  :root {
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --border-primary: #94a3b8;
  }
}
