/* DreamQuests Theme Variables */

:root,
[data-theme="dark"] {
    /* Core palette — deep cosmic */
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-tertiary: #1a1a3e;
    --bg-card: rgba(26, 26, 62, 0.6);
    --bg-card-hover: rgba(36, 36, 80, 0.7);
    --bg-input: rgba(17, 17, 40, 0.8);
    --bg-overlay: rgba(10, 10, 26, 0.85);

    /* Glass */
    --glass-bg: rgba(139, 92, 246, 0.08);
    --glass-border: rgba(139, 92, 246, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Text */
    --text-primary: #e9e5f5;
    --text-secondary: #a5a0c0;
    --text-muted: #6b6590;
    --text-inverse: #0a0a1a;

    /* Accent — violet spectrum */
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-lighter: #c4b5fd;
    --accent-dark: #6d28d9;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-subtle: rgba(139, 92, 246, 0.1);

    /* Secondary accent — cosmic teal */
    --accent2: #06b6d4;
    --accent2-light: #22d3ee;
    --accent2-glow: rgba(6, 182, 212, 0.3);

    /* Mood colors */
    --mood-happy: #fbbf24;
    --mood-peaceful: #34d399;
    --mood-anxious: #f97316;
    --mood-scary: #ef4444;
    --mood-sad: #60a5fa;
    --mood-confused: #a78bfa;
    --mood-excited: #f472b6;
    --mood-neutral: #9ca3af;

    /* Borders */
    --border: rgba(139, 92, 246, 0.12);
    --border-light: rgba(139, 92, 246, 0.06);
    --border-focus: rgba(139, 92, 246, 0.5);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px var(--accent-glow);
    --shadow-glow-sm: 0 0 10px var(--accent-glow);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Typography */
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Nunito', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Z-index layers */
    --z-starfield: 0;
    --z-content: 1;
    --z-navbar: 100;
    --z-modal: 200;
    --z-toast: 300;
    --z-loading: 400;

    /* Layout */
    --navbar-height: 60px;
    --bottom-nav-height: 64px;
    --max-width: 800px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="light"] {
    --bg-primary: #f5f3ff;
    --bg-secondary: #ede9fe;
    --bg-tertiary: #ddd6fe;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(255, 255, 255, 0.9);
    --bg-overlay: rgba(245, 243, 255, 0.9);

    --glass-bg: rgba(139, 92, 246, 0.05);
    --glass-border: rgba(139, 92, 246, 0.12);
    --glass-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);

    --text-primary: #1e1b4b;
    --text-secondary: #4c4580;
    --text-muted: #7c73a8;
    --text-inverse: #f5f3ff;

    --border: rgba(139, 92, 246, 0.15);
    --border-light: rgba(139, 92, 246, 0.08);

    --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.08);
    --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.12);
    --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.15);
}
