/**
 * CSS Variables - Design tokens for the application
 *
 * Modern glassmorphism theme. Dark mode is the default; light mode is applied
 * when <html data-theme="light"> is set by static/js/theme.js.
 */
:root {
    /* --- Palette ----------------------------------------------------------- */
    --bg-deep: #070812;
    --bg-primary: #0b0d1a;
    --bg-secondary: #12152a;
    --bg-tertiary: #1a1e3a;

    /* Text */
    --text-primary: #f5f6ff;
    --text-secondary: #a7acc9;

    /* Accent (violet) - replaces the previous red to give a distinct identity */
    --accent-red: #8b5cf6;
    --accent-red-hover: #7c3aed;
    --accent-red-light: #c4b5fd;
    --accent-cyan: #22d3ee;
    --accent-pink: #f472b6;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --yt-border: rgba(255, 255, 255, 0.10);

    /* --- Glass surfaces ---------------------------------------------------- */
    --yt-surface: rgba(255, 255, 255, 0.06);
    --yt-chip: rgba(255, 255, 255, 0.08);
    --yt-chip-hover: rgba(255, 255, 255, 0.14);
    --yt-hover: rgba(255, 255, 255, 0.10);
    --yt-play-red: #8b5cf6;
    --yt-thumb-bg: rgba(255, 255, 255, 0.05);

    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-strong: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: 18px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --glass-glow: 0 0 40px rgba(139, 92, 246, 0.25);

    /* Status */
    --success-green: #34d399;
    --error-red: #f87171;
    --info-blue: #60a5fa;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.40);

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.18s ease;
    --transition-normal: 0.28s ease;
    --transition-slow: 0.45s ease;

    color-scheme: dark;
}

[data-theme="light"] {
    --bg-deep: #f0f2ff;
    --bg-primary: #f5f6ff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eaeffd;

    --text-primary: #0f1020;
    --text-secondary: #5a5f80;

    --accent-red: #7c3aed;
    --accent-red-hover: #6d28d9;
    --accent-red-light: #a78bfa;
    --accent-cyan: #0891b2;
    --accent-pink: #db2777;

    --border-color: rgba(15, 16, 32, 0.08);
    --yt-border: rgba(15, 16, 32, 0.10);

    --yt-surface: rgba(255, 255, 255, 0.70);
    --yt-chip: rgba(255, 255, 255, 0.60);
    --yt-chip-hover: rgba(255, 255, 255, 0.85);
    --yt-hover: rgba(15, 16, 32, 0.05);
    --yt-play-red: #7c3aed;
    --yt-thumb-bg: rgba(255, 255, 255, 0.50);

    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-strong: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.60);
    --glass-blur: 16px;
    --glass-shadow: 0 8px 32px rgba(15, 16, 32, 0.12);
    --glass-glow: 0 0 40px rgba(124, 58, 237, 0.18);

    --success-green: #059669;
    --error-red: #dc2626;
    --info-blue: #2563eb;

    --shadow-sm: 0 2px 8px rgba(15, 16, 32, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 16, 32, 0.12);
    --shadow-lg: 0 20px 60px rgba(15, 16, 32, 0.16);

    color-scheme: light;
}