/* ==========================================================================
   WORDNET EXPLORER SUITE - 10 ACADEMIC PALETTES
   ========================================================================== */

body, header, main, section, div, input, select, button, summary, .synset, .attr-row {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* 1. INDIGO TECH (Default Dark) */
[data-theme="indigo-tech"] {
    --bg-main: #0b1220;       --bg-card: #0f172a;       --bg-nested: #1e293b;
    --border-color: #22304a;  --text-main: #f1f5f9;     --text-muted: #94a3b8;
    --accent-primary: #7c3aed;--accent-hover: #6d28d9;  --accent-secondary: #22d3ee;
}

/* 2. EMERALD SAGE (Scientific Slate) */
[data-theme="emerald-sage"] {
    --bg-main: #0a1f1d;       --bg-card: #030f0e;       --bg-nested: #14322f;
    --border-color: #20504b;  --text-main: #f0fdf4;     --text-muted: #86efac;
    --accent-primary: #10b981;--accent-hover: #059669;  --accent-secondary: #34d399;
}

/* 3. CYBERPUNK AMBER (High-Contrast Dev) */
[data-theme="cyberpunk-amber"] {
    --bg-main: #121212;       --bg-card: #1c1c1c;       --bg-nested: #2d2d2d;
    --border-color: #444444;  --text-main: #ffffff;     --text-muted: #b3b3b3;
    --accent-primary: #f59e0b;--accent-hover: #d97706;  --accent-secondary: #fcd34d;
}

/* 4. DEEP BURGUNDY (Classic Humanities Lab) */
[data-theme="deep-burgundy"] {
    --bg-main: #1e1114;       --bg-card: #110507;       --bg-nested: #321d22;
    --border-color: #4c2f35;  --text-main: #fae8eb;     --text-muted: #f198a4;
    --accent-primary: #be123c;--accent-hover: #9f1239;  --accent-secondary: #fda4af;
}

/* 5. OCEAN OCEANIC (Subsea Hydro-Tech) */
[data-theme="ocean-oceanic"] {
    --bg-main: #0c1a24;       --bg-card: #040d14;       --bg-nested: #172f3f;
    --border-color: #234760;  --text-main: #f0f7fc;     --text-muted: #88c0d0;
    --accent-primary: #0284c7;--accent-hover: #0369a1;  --accent-secondary: #38bdf8;
}

/* 6. SOLARIZED LAB (Light Academic) */
[data-theme="solarized-lab"] {
    --bg-main: #fdf6e3;       --bg-card: #eee8d5;       --bg-nested: #fdf6e3;
    --border-color: #93a1a1;  --text-main: #073642;     --text-muted: #586e75;
    --accent-primary: #b58900;--accent-hover: #cb4b16;  --accent-secondary: #2aa198;
}

/* 7. NORDIC SNOW (Minimalist Cold Light) */
[data-theme="nordic-snow"] {
    --bg-main: #e5e9f0;       --bg-card: #ffffff;       --bg-nested: #d8dee9;
    --border-color: #ccd3de;  --text-main: #2e3440;     --text-muted: #4c566a;
    --accent-primary: #5e81ac;--accent-hover: #81a1c1;  --accent-secondary: #88c0d0;
}

/* 8. GRAPHITE MONO (Corporate Industrial) */
[data-theme="graphite-mono"] {
    --bg-main: #27272a;       --bg-card: #18181b;       --bg-nested: #3f3f46;
    --border-color: #52525b;  --text-main: #f4f4f5;     --text-muted: #a1a1aa;
    --accent-primary: #71717a;--accent-hover: #52525b;  --accent-secondary: #d4d4d8;
}

/* 9. MIDNIGHT PURPLE (Cosmic Relational Field) */
[data-theme="midnight-purple"] {
    --bg-main: #130f26;       --bg-card: #0a0714;       --bg-nested: #221b40;
    --border-color: #3b2e66;  --text-main: #f3f0fa;     --text-muted: #b19ffb;
    --accent-primary: #7c3aed;--accent-hover: #6d28d9;  --accent-secondary: #c084fc;
}

/* 10. METALLIC STEEL (Aero Engineering) */
[data-theme="metallic-steel"] {
    --bg-main: #1f2937;       --bg-card: #111827;       --bg-nested: #374151;
    --border-color: #4b5563;  --text-main: #f9fafb;     --text-muted: #9ca3af;
    --accent-primary: #3b82f6;--accent-hover: #2563eb;  --accent-secondary: #60a5fa;
}

/* Structural Engine Utility Mappings */
.theme-bg { background-color: var(--bg-main) !important; }
.theme-card { background-color: var(--bg-card) !important; }
.theme-nested { background-color: var(--bg-nested) !important; }
.theme-border { border-color: var(--border-color) !important; }
.theme-text { color: var(--text-main) !important; }
.theme-muted { color: var(--text-muted) !important; }
.theme-btn { background-color: var(--accent-primary) !important; color: #ffffff !important; }
.theme-btn:hover { background-color: var(--accent-hover) !important; }
.theme-accent-text { color: var(--accent-primary) !important; }
.theme-secondary-text { color: var(--accent-secondary) !important; }
