/* White-label themes — loaded after app.css. Cosmic matches :root defaults; heritage & ocean override tokens + page background. */

html[data-theme="heritage"] {
    --cosmic-deep: #1c1917;
    --cosmic-mid: #292524;
    --cosmic-purple: #44403c;
    --cosmic-magenta: #d97706;
    --cosmic-orange: #ea580c;
    --cosmic-cyan: #0d9488;
    --cosmic-pink: #f59e0b;
    --bg: #1c1917;
    --panel: rgba(41, 37, 36, 0.55);
    --panel-solid: #292524;
    --text: #fafaf9;
    --muted: #a8a29e;
    --line: rgba(255, 255, 255, 0.12);
    --brand: #fcd34d;
    --accent: #f59e0b;
    --good: #4ade80;
    --shadow: 0 16px 48px rgba(12, 10, 9, 0.55);
    --glow-magenta: 0 0 32px rgba(217, 119, 6, 0.25);
    --glow-orange: 0 0 28px rgba(234, 88, 12, 0.3);
    --glow-cyan: 0 0 28px rgba(13, 148, 136, 0.25);
}

html[data-theme="heritage"] body {
    background-color: #1c1917;
    background-image:
        radial-gradient(ellipse 100% 80% at 15% 10%, rgba(217, 119, 6, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse 80% 60% at 85% 75%, rgba(68, 64, 60, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, rgba(28, 25, 23, 0.3) 0%, rgba(12, 10, 9, 0.85) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: center, center, center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

html[data-theme="heritage"] body::before {
    opacity: 0.2;
    mix-blend-mode: soft-light;
}

html[data-theme="heritage"] .topbar {
    background: rgba(28, 25, 23, 0.82);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(217, 119, 6, 0.06);
}

html[data-theme="ocean"] {
    --cosmic-deep: #0c1929;
    --cosmic-mid: #0f2744;
    --cosmic-purple: #164e63;
    --cosmic-magenta: #06b6d4;
    --cosmic-orange: #38bdf8;
    --cosmic-cyan: #22d3ee;
    --cosmic-pink: #67e8f9;
    --bg: #0c1929;
    --panel: rgba(15, 39, 68, 0.55);
    --panel-solid: #0f2744;
    --text: #ecfeff;
    --muted: #a5f3fc;
    --line: rgba(165, 243, 252, 0.14);
    --brand: #67e8f9;
    --accent: #22d3ee;
    --good: #4ade80;
    --shadow: 0 16px 48px rgba(6, 24, 44, 0.55);
    --glow-magenta: 0 0 32px rgba(6, 182, 212, 0.35);
    --glow-orange: 0 0 28px rgba(56, 189, 248, 0.3);
    --glow-cyan: 0 0 28px rgba(34, 211, 238, 0.35);
}

html[data-theme="ocean"] body {
    background-color: #061222;
    background-image:
        radial-gradient(ellipse 90% 70% at 50% 15%, rgba(6, 182, 212, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(15, 39, 68, 0.9) 0%, transparent 55%),
        linear-gradient(195deg, rgba(8, 25, 48, 0.5) 0%, #030a14 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: center, center, center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

html[data-theme="ocean"] body::before {
    opacity: 0.38;
    mix-blend-mode: screen;
}

html[data-theme="ocean"] .topbar {
    background: rgba(6, 18, 34, 0.82);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(6, 182, 212, 0.1);
}

html[data-theme="heritage"] .site-footer {
    background: rgba(28, 25, 23, 0.4);
}

html[data-theme="ocean"] .site-footer {
    background: rgba(6, 18, 34, 0.42);
}
