/* ============================================
   GREG BLAKE — Global Styles
   Digital Cockpit / Space Navigation Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #000a14;
    --bg-secondary: #001025;
    --text-primary: #e0f0ff;
    --text-secondary: #88aacc;
    --accent-cyan: #00e5ff;
    --accent-blue: #0088ff;
    --accent-gold: #ffaa00;
    --accent-orange: #ff6600;
    --glass-bg: rgba(0, 20, 40, 0.6);
    --glass-border: rgba(0, 229, 255, 0.15);
    --glass-blur: 12px;
    --font-display: 'Courier New', 'Fira Code', monospace;
    --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --hud-glow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Three.js Background Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* --- Glass-morphism Panel --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: var(--hud-glow);
}

/* --- HUD Navigation --- */
#hud-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    background: rgba(0, 10, 20, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

#hud-nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

#hud-nav .logo img {
    width: 36px;
    height: 36px;
}

#hud-nav .logo span {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
}

#hud-nav .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

#hud-nav .nav-links a {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

#hud-nav .nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

#hud-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s;
}

#hud-nav .nav-links a:hover::after {
    width: 100%;
}

/* --- Page Content Container --- */
.page-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.1rem;
    color: var(--accent-gold);
}

p {
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-gold);
}

/* --- Buttons --- */
.btn-hud {
    font-family: var(--font-display);
    font-size: 13px;
    padding: 10px 24px;
    color: var(--accent-cyan);
    background: transparent;
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-hud:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3), inset 0 0 15px rgba(0, 229, 255, 0.1);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 3px;
    opacity: 0.5;
}

/* --- Selection --- */
::selection {
    background: rgba(0, 229, 255, 0.3);
    color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #hud-nav {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }

    #hud-nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .page-content {
        padding-top: 120px;
    }
}
