/* ==========================================================================
   Base Design Tokens & Theme Variables
   ========================================================================== */


/* ==========================================================================
   Minecraft Enchanting Calculator - Design System & Stylesheet
   Theme: Obsidian & Enchanting Amethyst / XP Neon
   ========================================================================== */

:root {
    /* Color Palette (Obsidian & Amethyst Dark Default) */
    --bg-base: #0a0b10;
    --bg-surface: #12131c;
    --bg-surface-elevated: #1a1b28;
    --bg-surface-hover: #222434;
    
    --border-subtle: #242738;
    --border-highlight: #3e4360;
    --border-focus: #7c3aed;
    
    --text-primary: #f1f3f9;
    --text-secondary: #9ea4be;
    --text-muted: #656b85;
    
    /* Minecraft Accents */
    --accent-purple: #9333ea;
    --accent-purple-glow: rgba(147, 51, 234, 0.25);
    --accent-amethyst: #c084fc;
    --accent-lapis: #38bdf8;
    --accent-xp: #4ade80;
    --accent-xp-glow: rgba(74, 222, 128, 0.25);
    --accent-gold: #fbbf24;
    --accent-red: #f43f5e;
    
    /* Layout & Spacing */
    --container-max: min(94vw, 1750px);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.2);

    /* Dynamic Theme Overlays */
    --header-bg: rgba(10, 11, 16, 0.85);
    --body-bg-radial-1: rgba(124, 58, 237, 0.15);
    --body-bg-radial-2: rgba(56, 189, 248, 0.05);
}

/* Light Theme - Clean Daylight & High Contrast Accents */
[data-theme="light"] {
    --bg-base: #f4f5f8;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f8fafc;
    --bg-surface-hover: #edf2f7;
    
    --border-subtle: #dbe1ea;
    --border-highlight: #b9c3d5;
    --border-focus: #7c3aed;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent-purple: #7e22ce;
    --accent-purple-glow: rgba(126, 34, 206, 0.18);
    --accent-amethyst: #6b21a8;
    --accent-lapis: #0284c7;
    --accent-xp: #16a34a;
    --accent-xp-glow: rgba(22, 163, 74, 0.2);
    --accent-gold: #b45309;
    --accent-red: #e11d48;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 18px rgba(126, 34, 206, 0.12);

    --header-bg: rgba(255, 255, 255, 0.9);
    --body-bg-radial-1: rgba(126, 34, 206, 0.06);
    --body-bg-radial-2: rgba(2, 132, 199, 0.05);
}


/* Stage Colors for Synchronized Selection Highlighting */
:root {
    --stage-1-color: #38bdf8;
    --stage-1-glow: rgba(56, 189, 248, 0.45);
    --stage-2-color: #34d399;
    --stage-2-glow: rgba(52, 211, 153, 0.45);
    --stage-3-color: #fbbf24;
    --stage-3-glow: rgba(251, 191, 36, 0.45);
    --stage-4-color: #f43f5e;
    --stage-4-glow: rgba(244, 63, 94, 0.45);
    --stage-5-color: #a855f7;
    --stage-5-glow: rgba(168, 85, 247, 0.45);
    --stage-6-color: #818cf8;
    --stage-6-glow: rgba(129, 140, 248, 0.45);
}
