/* === Sci-Fi HUD Theme === */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

[data-mode="scifi"] {
    background-color: #0a0e17;
    color: #c8dce8;
    font-family: 'Share Tech Mono', monospace;
}

[data-mode="scifi"] h1,
[data-mode="scifi"] h2 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Remove parchment textures */
[data-mode="scifi"] body::before {
    opacity: 0;
}
[data-mode="scifi"] body::after {
    background: radial-gradient(ellipse at center, rgba(0, 180, 255, 0.03) 0%, rgba(0,0,0,0.6) 100%);
}

/* Scan-line overlay */
[data-mode="scifi"]::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 180, 255, 0.015) 2px,
        rgba(0, 180, 255, 0.015) 4px
    );
}

/* Cards / Panels */
[data-mode="scifi"] .card {
    background: linear-gradient(145deg, #0d1220, #111827);
    border: 1px solid #1e3a5f;
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.1), inset 0 1px 0 rgba(0, 180, 255, 0.05);
    border-radius: 0;
}

[data-mode="scifi"] .card > div:first-child::after {
    content: '◆';
    color: #0ea5e9;
    background: linear-gradient(145deg, #0d1220, #111827);
    font-size: 8px;
}

/* Inputs */
[data-mode="scifi"] .input-underline {
    border-bottom-color: #1e3a5f;
    color: #c8dce8;
}

[data-mode="scifi"] input,
[data-mode="scifi"] textarea {
    color: #c8dce8 !important;
    font-family: 'Share Tech Mono', monospace;
}

[data-mode="scifi"] select {
    color: #c8dce8 !important;
    background-color: #0d1220 !important;
    font-family: 'Share Tech Mono', monospace;
}

/* Trait boxes */
[data-mode="scifi"] .trait-box {
    background: #0d1220;
    border-color: #1e3a5f;
    border-radius: 0;
}

[data-mode="scifi"] .trait-label {
    color: #0ea5e9;
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
    letter-spacing: 0.15em;
}

/* Nav */
[data-mode="scifi"] nav {
    background-color: rgba(10, 14, 23, 0.95) !important;
    border-color: #1e3a5f !important;
    box-shadow: 0 2px 12px rgba(0, 180, 255, 0.1);
}

/* Tabs */
[data-mode="scifi"] .tab-btn,
[data-mode="scifi"] .modern-tab-btn,
[data-mode="scifi"] .classic-tab-btn {
    font-family: 'Orbitron', sans-serif;
    border-color: #1e3a5f !important;
    color: #5b8fa8 !important;
    background: #0a0e17 !important;
}

[data-mode="scifi"] .tab-btn.active,
[data-mode="scifi"] .modern-tab-btn.active,
[data-mode="scifi"] .classic-tab-btn.active {
    color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    background: rgba(14, 165, 233, 0.1) !important;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

/* Dots / Trackers — energy bar style */
[data-mode="scifi"] .dot {
    border-color: #1e3a5f;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 180, 255, 0.1);
}

[data-mode="scifi"] .dot.filled {
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.5);
}

/* Sheet cards (domain/general) */
[data-mode="scifi"] .sheet-card,
[data-mode="scifi"] #domainCards .sheet-card {
    background: linear-gradient(145deg, #0d1220, #111827);
    border-color: #1e3a5f;
    border-radius: 0 !important;
}

[data-mode="scifi"] .sheet-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}

[data-mode="scifi"] .domain-card-selected {
    background-color: rgba(14, 165, 233, 0.08) !important;
}

/* Modal */
[data-mode="scifi"] .modal-panel {
    background: linear-gradient(145deg, #0a0e17, #111827);
    border-color: #1e3a5f;
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.15);
    border-radius: 0;
}

[data-mode="scifi"] .modal-overlay {
    background: rgba(0, 5, 15, 0.85);
}

[data-mode="scifi"] .modal-panel select,
[data-mode="scifi"] .modal-panel input {
    background-color: #0d1220 !important;
    border-color: #1e3a5f !important;
    color: #c8dce8 !important;
}

/* Text color overrides */
[data-mode="scifi"] .text-\[\#f5efe6\] { color: #c8dce8 !important; }
[data-mode="scifi"] .text-zinc-400 { color: #5b8fa8 !important; }
[data-mode="scifi"] .text-zinc-500 { color: #3d6a82 !important; }
[data-mode="scifi"] .text-zinc-300 { color: #a0c4d8 !important; }
[data-mode="scifi"] .text-\[#6b5d4d\] { color: #5b8fa8 !important; }
[data-mode="scifi"] .text-\[#a89880\] { color: #5b8fa8 !important; }

/* Background overrides */
[data-mode="scifi"] .bg-\[\#2a2418\] { background-color: #0d1220 !important; border-color: #1e3a5f !important; }
[data-mode="scifi"] .bg-\[\#221f1a\] { background-color: #0d1220 !important; }
[data-mode="scifi"] .bg-zinc-900 { background-color: #0d1220 !important; }
[data-mode="scifi"] .bg-black\/40 { background-color: rgba(0, 180, 255, 0.05) !important; }
[data-mode="scifi"] .bg-black\/20 { background-color: rgba(0, 180, 255, 0.03) !important; }
[data-mode="scifi"] .bg-black\/60 { background-color: rgba(0, 10, 20, 0.4) !important; }

/* Border overrides */
[data-mode="scifi"] .border-\[\#363026\] { border-color: #1e3a5f !important; }
[data-mode="scifi"] .border-\[\#4a3f30\] { border-color: #1e3a5f !important; }
[data-mode="scifi"] .border-zinc-700 { border-color: #1e3a5f !important; }
[data-mode="scifi"] .border-zinc-800 { border-color: #1e3a5f !important; }
[data-mode="scifi"] .border-gray-700 { border-color: #1e3a5f !important; }

/* Domain card backgrounds — cooler tones */
[data-mode="scifi"] .bg-\[\#14141c\] { background-color: #0d1220 !important; }
[data-mode="scifi"] .bg-\[\#1c1414\] { background-color: #150d0d !important; }
[data-mode="scifi"] .bg-\[\#19141c\] { background-color: #110d18 !important; }
[data-mode="scifi"] .bg-\[\#1c1a14\] { background-color: #12110d !important; }
[data-mode="scifi"] .bg-\[\#14181c\] { background-color: #0d1220 !important; }

/* Support links */
[data-mode="scifi"] .support-link {
    border-color: #1e3a5f !important;
    background: linear-gradient(145deg, #0d1220, #111827) !important;
    border-radius: 0 !important;
}
[data-mode="scifi"] .support-link:hover {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}

/* Info buttons */
[data-mode="scifi"] .info-btn {
    border-color: #1e3a5f;
    color: #0ea5e9;
}

[data-mode="scifi"] .info-popup {
    background: #0d1220;
    border-color: #1e3a5f;
    border-radius: 0;
}

/* Theme picker dropdown */
[data-mode="scifi"] #themeDropdown {
    background: #0d1220 !important;
    border-color: #1e3a5f !important;
    border-radius: 0 !important;
}

/* Collapsible section headers */
[data-mode="scifi"] .section-toggle {
    color: #5b8fa8;
}

/* Hero header (character info panel) */
[data-mode="scifi"] .hero-header {
    background: linear-gradient(145deg, #0d1220, #111827);
    border: 1px solid #1e3a5f;
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.1), inset 0 1px 0 rgba(0, 180, 255, 0.05);
    border-radius: 0;
}

/* Mode toggle button in scifi */
[data-mode="scifi"] button[title*="Cycle"] {
    background: #0a0e17 !important;
    border-color: #1e3a5f !important;
    width: 32px;
    height: 32px;
}

/* Force square corners on all rounded elements */
[data-mode="scifi"] [class*="rounded"] {
    border-radius: 0 !important;
}

/* Bottom bar */
[data-mode="scifi"] .fixed.bottom-0 {
    background-color: rgba(10, 14, 23, 0.95) !important;
    border-color: #1e3a5f !important;
}
