:root {
    --bg-dark: #05050A;
    --glass-bg: rgba(15, 15, 25, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-blue: #00F0FF;
    --neon-purple: #8A2BE2;
    --text-main: #FFFFFF;
    --text-dim: #A0A0B0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    width: 100%; height: 100%;
    background-color: var(--bg-dark);
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    overflow: hidden;
    user-select: none;
}

/* Typography */
h1, h2, h3 { font-family: 'Rajdhani', sans-serif; letter-spacing: 2px; text-transform: uppercase; }

/* Loader */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1.5s ease-out;
}
.loader-content { text-align: center; }
.glow-text {
    font-size: 3rem; margin-bottom: 10px;
    text-shadow: 0 0 20px var(--neon-purple), 0 0 40px var(--neon-blue);
}
.progress-bar {
    width: 300px; height: 2px; background: rgba(255,255,255,0.1);
    margin-top: 20px; overflow: hidden; position: relative;
}
.progress {
    width: 0%; height: 100%; background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    transition: width 0.3s;
}

/* Canvas Container */
#canvas-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

/* UI Layer */
#ui-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10; pointer-events: none; /* Let clicks pass to canvas */
    display: flex; flex-direction: column; justify-content: space-between;
}
#ui-layer.hidden { opacity: 0; }
#ui-layer > * { pointer-events: auto; } /* Re-enable clicks on UI elements */

/* Brand Header */
.brand { padding: 30px; }
.brand h2 { font-size: 1.5rem; text-shadow: 0 0 10px var(--neon-blue); }
.brand span { color: var(--neon-purple); font-weight: 300; }

/* Side Panel (Glassmorphism) */
.side-panel {
    position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
    width: 380px; max-height: 80vh;
    background: var(--glass-bg);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px; padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(138, 43, 226, 0.1);
    overflow-y: auto;
}
.side-panel::-webkit-scrollbar { width: 5px; }
.side-panel::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 5px; }

.panel-header { margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.panel-header h2 { font-size: 2.5rem; margin-bottom: 5px; text-shadow: 0 0 15px rgba(255,255,255,0.5); }
.badge {
    background: rgba(0, 240, 255, 0.1); color: var(--neon-blue);
    padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; border: 1px solid var(--neon-blue);
}

/* Tabs */
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab {
    flex: 1; background: transparent; border: none; color: var(--text-dim);
    padding: 8px 0; font-family: 'Rajdhani', sans-serif; font-size: 1rem;
    cursor: pointer; transition: 0.3s; border-bottom: 2px solid transparent;
}
.tab.active { color: var(--neon-blue); border-bottom: 2px solid var(--neon-blue); text-shadow: 0 0 8px var(--neon-blue); }

.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Data Grid */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.data-item { display: flex; flex-direction: column; background: rgba(0,0,0,0.3); padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.data-item span { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; margin-bottom: 4px; }
.data-item strong { font-size: 1rem; color: var(--text-main); font-family: 'Rajdhani', sans-serif; }

/* Fact List */
.fact-list { list-style: none; }
.fact-list li {
    font-size: 0.9rem; margin-bottom: 12px; padding-left: 15px; position: relative; color: #D0D0E0; line-height: 1.4;
}
.fact-list li::before {
    content: '✦'; position: absolute; left: 0; top: 0; color: var(--neon-purple); font-size: 1rem; text-shadow: 0 0 5px var(--neon-purple);
}

/* Bottom Navigation */
.bottom-nav { width: 100%; padding: 20px; display: flex; justify-content: center; padding-bottom: 30px; }
.nav-container {
    display: flex; gap: 15px; background: var(--glass-bg); backdrop-filter: blur(10px);
    padding: 10px 20px; border-radius: 50px; border: 1px solid var(--glass-border);
}
.planet-btn {
    background: transparent; border: none; color: var(--text-dim); font-size: 1.8rem;
    cursor: pointer; transition: 0.3s; width: 45px; height: 45px;
    display: flex; justify-content: center; align-items: center; border-radius: 50%;
}
.planet-btn:hover { color: var(--text-main); transform: scale(1.2); }
.planet-btn.active {
    color: var(--neon-blue); text-shadow: 0 0 15px var(--neon-blue);
    background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .side-panel {
        width: calc(100% - 40px); right: 20px; top: auto; bottom: 100px; transform: none; max-height: 50vh;
    }
    .nav-container { gap: 5px; padding: 10px; overflow-x: auto; max-width: 100vw; border-radius: 20px; }
    .planet-btn { font-size: 1.5rem; width: 35px; height: 35px; }
}
