/* ============================================
   PLEXFLIX - Design System Variables
   ============================================ */

:root {
  /* ========== Color System ========== */
  
  /* Base Colors */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-300: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  --color-gray-950: #0a0a0a;

  /* Brand Colors - Premium Dark Theme */
  --color-primary: #e50914;
  --color-primary-dark: #b20710;
  --color-primary-light: #f40612;
  
  --color-accent: #00d4ff;
  --color-accent-dark: #00a8cc;
  --color-accent-light: #33ddff;

  /* Background Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --bg-elevated: #2a2a2a;
  --bg-overlay: rgba(0, 0, 0, 0.85);
  --bg-glass: rgba(20, 20, 20, 0.7);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #808080;
  --text-disabled: #4d4d4d;
  --text-inverse: #000000;

  /* Semantic Colors */
  --color-success: #46d369;
  --color-success-dark: #2eb84a;
  --color-warning: #ffa500;
  --color-warning-dark: #ff8c00;
  --color-error: #f6465d;
  --color-error-dark: #e03648;
  --color-info: #0071eb;
  --color-info-dark: #0056b3;

  /* Gradient Colors */
  --gradient-hero: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 1) 100%
  );
  --gradient-card: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  --gradient-primary: linear-gradient(135deg, #e50914 0%, #b20710 100%);
  --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0071eb 100%);
  --gradient-shimmer: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );

  /* ========== Typography ========== */
  
  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  --text-8xl: 6rem;        /* 96px */

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

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

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

  /* ========== Spacing System (4px base) ========== */
  
  --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 */
  --space-40: 10rem;     /* 160px */
  --space-48: 12rem;     /* 192px */
  --space-56: 14rem;     /* 224px */
  --space-64: 16rem;     /* 256px */

  /* ========== Border Radius ========== */
  
  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius-base: 0.375rem; /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* ========== Shadows ========== */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-base: 0 2px 8px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px 0 rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 12px 32px 0 rgba(0, 0, 0, 0.7);
  --shadow-2xl: 0 24px 48px 0 rgba(0, 0, 0, 0.8);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.5);
  --shadow-glow-accent: 0 0 20px rgba(0, 212, 255, 0.5);

  /* ========== Animation Timing ========== */
  
  /* Durations */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 400ms;
  --duration-slowest: 600ms;

  /* Easing Functions */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* ========== Z-Index Scale ========== */
  
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-notification: 800;
  --z-max: 999;

  /* ========== Breakpoints (for reference in JS) ========== */
  
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;

  /* ========== Content Widths ========== */
  
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  --container-full: 100%;

  /* ========== Transitions ========== */
  
  --transition-base: all var(--duration-base) var(--ease-in-out);
  --transition-fast: all var(--duration-fast) var(--ease-in-out);
  --transition-slow: all var(--duration-slow) var(--ease-in-out);
  --transition-colors: color var(--duration-base) var(--ease-in-out),
                       background-color var(--duration-base) var(--ease-in-out),
                       border-color var(--duration-base) var(--ease-in-out);
  --transition-transform: transform var(--duration-base) var(--ease-in-out);
  --transition-opacity: opacity var(--duration-base) var(--ease-in-out);

  /* ========== Component Specific ========== */
  
  /* Navbar */
  --navbar-height: 70px;
  --navbar-blur: blur(10px);

  /* Content Cards */
  --card-aspect-ratio: 16 / 9;
  --card-aspect-ratio-poster: 2 / 3;
  --card-hover-scale: 1.04;
  --card-press-scale: 0.97;

  /* Video Player */
  --player-aspect-ratio: 16 / 9;
  --player-controls-height: 60px;

  /* Scrollbar */
  --scrollbar-width: 8px;
  --scrollbar-track: var(--bg-secondary);
  --scrollbar-thumb: var(--bg-elevated);
  --scrollbar-thumb-hover: var(--color-gray-700);
}

/* ========== Dark Mode Override (default is dark) ========== */
/* If you want to support light mode in the future, you can add: */
/*
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #000000;
  // ... etc
}
*/
