/* WeTwo Design System — central tokens. Change the brand here; every component reads these variables. */
:root {
  /* Brand palette (official) */
  --wt-midnight: #080B1A;     /* primary background */
  --wt-deep: #121729;         /* secondary background */
  --wt-card: #1F2437;         /* card background */
  --wt-pink: #E91E63;         /* primary */
  --wt-purple: #8856F6;       /* secondary */
  --wt-turquoise: #14D0B6;    /* accent */
  --wt-white: #FFFFFF;
  --wt-muted: #A6ADC2;
  --wt-border: #30374E;
  --wt-success: #22C58B;
  --wt-warning: #F5A623;
  --wt-error: #EF4444;

  --wt-grad-primary: linear-gradient(90deg, #E91E63 0%, #8856F6 100%);
  --wt-grad-secondary: linear-gradient(90deg, #8856F6 0%, #14D0B6 100%);

  /* Semantic aliases */
  --bg: var(--wt-midnight);
  --bg-2: var(--wt-deep);
  --surface: var(--wt-card);
  --surface-hover: #262C42;
  --surface-active: #2B3249;
  --text: var(--wt-white);
  --text-2: var(--wt-muted);
  --text-3: #7A8199;
  --line: var(--wt-border);
  --line-soft: rgba(48, 55, 78, .6);
  --primary: var(--wt-pink);
  --primary-soft: rgba(233, 30, 99, .14);
  --focus: #B18CFF;
  --link: #8DBDFF;
  --line-strong: #3D4561;
  --hover-tint: rgba(255, 255, 255, .05);
  --overlay: rgba(8, 11, 26, .86);

  /* Typography */
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-base: 15px; --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 30px;

  /* Spacing (4px grid) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  /* Shape */
  --r-card: 14px;     /* 12–16 */
  --r-btn: 12px;      /* 10–14 */
  --r-sm: 8px;
  --r-pill: 999px;

  /* Motion (150–250ms) */
  --t-fast: 150ms; --t-base: 200ms; --t-slow: 250ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Elevation — very light */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .35);

  /* Layout */
  --header-h: 64px;
  --sidebar-w: 240px;
  --sidebar-mini-w: 76px;
  --content-max: 1840px;

  color-scheme: dark;
}

/* ---------- Light theme: same layout and brand colours, light surfaces. The video player stays dark (cinema). ---------- */
:root[data-theme="light"] {
  --wt-midnight: #FFFFFF;     /* app chrome background */
  --wt-white: #0F1222;        /* "inverted" solid elements (active chip, solid button) */
  --wt-deep: #FFFFFF;
  --wt-card: #F1F2F7;
  --wt-muted: #565D75;
  --wt-border: #E1E4EC;
  --bg: #FFFFFF;
  --bg-2: #FFFFFF;
  --surface: #F1F2F7;
  --surface-hover: #E6E8F0;
  --surface-active: #DCE0EA;
  --text: #0F1222;
  --text-2: #565D75;
  --text-3: #80869B;
  --line: #E1E4EC;
  --line-soft: rgba(15, 18, 34, .08);
  --line-strong: #C9CEDB;
  --primary-soft: rgba(233, 30, 99, .10);
  --focus: #7B4DEB;
  --link: #1A5FD0;
  --hover-tint: rgba(15, 18, 34, .05);
  --overlay: rgba(15, 18, 34, .78);
  --shadow-1: 0 1px 2px rgba(15, 18, 34, .08);
  --shadow-2: 0 10px 28px rgba(15, 18, 34, .14);
  color-scheme: light;
}

/* Channel accent (limited, within WeTwo identity) */
[data-accent="purple"] { --primary: var(--wt-purple); --primary-soft: rgba(136, 86, 246, .16); }
[data-accent="turquoise"] { --primary: var(--wt-turquoise); --primary-soft: rgba(20, 208, 182, .14); }

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-base: 0ms; --t-slow: 0ms; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
