/* ====================================
   OnlyBrains Styles | 3D Edition
   ==================================== */

:root {
    --primary: #8b5cf6;
    --secondary: #a78bfa;
    --accent: #f59e0b;
    --dark: #0a0a1a;
    --light: #1a1a2e;
    --text: #ffffff;
    --text-light: #9ca3af;
    --golden: #f59e0b;
    --brain: #8b5cf6;
    --money: #10b981;
    --bg-dark: #0a0a1a;
    /* Tier colors */
    --tier-neuron: #6b7280;
    --tier-synapse: #3b82f6;
    --tier-cortex: #8b5cf6;
    --tier-genius: #f59e0b;
    --tier-galaxy-brain: #ec4899;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ====================================
   3D Canvas
   ==================================== */

#brain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ====================================
   Dock Sidebars (West/East)
   ==================================== */

.dock-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dock-sidebar-title {
    color: var(--brain);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.dock-sidebar-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.dock-sidebar-link:hover {
    background: rgba(139, 92, 246, 0.2);
    color: white;
}

.dock-sidebar-link.active {
    background: var(--brain);
    color: white;
}

/* ====================================
   North Dock (Header/Nav)
   ==================================== */

#dock-north .dock-content {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

#main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(139, 92, 246, 0.2);
    color: white;
}

.nav-link.active {
    background: var(--brain);
    color: white;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 180px;
    z-index: 2000;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu .nav-link {
    display: block;
    width: 100%;
    border-radius: 4px;
    font-size: 0.85rem;
}

.nav-dropdown-menu .nav-link:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* Nav Login Button */
.nav-login-btn {
    color: var(--golden);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(245,158,11,0.4);
    background: rgba(245,158,11,0.1);
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
    margin-left: auto;
}

.nav-login-btn:hover {
    background: rgba(245,158,11,0.25);
    border-color: var(--golden);
}

.nav-login-btn.active {
    background: var(--golden);
    color: #0a0a1a;
}

/* ====================================
   Loading Spinner (lazy loading state)
   ==================================== */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--brain);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

