/* mujun.xyz - Generative Art HUD Overlay */

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

:root {
    --matrix-green: #00FF88;
    --cyber-blue: #00CCFF;
    --signal-pink: #FF3366;
    --void-black: #0A0A0F;
    --deep-navy: #1A1A2E;
    --muted-slate: #4A5568;
    --cool-silver: #A0AEC0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--void-black);
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--cool-silver);
}

/* Generative Canvas */
#generative-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* HUD Container */
#hud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* HUD Panels - Shared */
.hud-panel {
    position: absolute;
    background: rgba(10, 10, 15, 0.80);
    border: 1px solid var(--muted-slate);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hud-panel.visible {
    opacity: 1;
}

/* Top Panel / Nav */
.hud-panel-top {
    top: 16px;
    left: 16px;
    right: 16px;
    height: 56px;
    transform: translateY(-80px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.hud-panel-top.visible {
    transform: translateY(0);
}

#main-nav {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    gap: 24px;
}

.nav-logo {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--matrix-green);
    letter-spacing: 2px;
}

.nav-domain {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted-slate);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.nav-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--cool-silver);
    text-decoration: none;
    letter-spacing: 1.5px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-link:hover {
    color: var(--matrix-green);
    border-color: var(--matrix-green);
}

.nav-status {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 24px;
}

.status-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted-slate);
}

.status-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--matrix-green);
}

/* Left Panel */
.hud-panel-left {
    top: 88px;
    left: 16px;
    width: 320px;
    bottom: 72px;
    transform: translateX(-360px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, opacity 0.4s ease 0.1s;
}

.hud-panel-left.visible {
    transform: translateX(0);
}

/* Right Panel */
.hud-panel-right {
    top: 88px;
    right: 16px;
    width: 300px;
    bottom: 72px;
    transform: translateX(340px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, opacity 0.4s ease 0.2s;
}

.hud-panel-right.visible {
    transform: translateX(0);
}

/* Bottom Panel */
.hud-panel-bottom {
    bottom: 16px;
    left: 16px;
    right: 16px;
    height: 40px;
    transform: translateY(60px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s, opacity 0.4s ease 0.3s;
}

.hud-panel-bottom.visible {
    transform: translateY(0);
}

/* Panel Internal Styles */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
}

.panel-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted-slate);
    letter-spacing: 2px;
}

.panel-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--matrix-green);
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.panel-content {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(100% - 48px);
}

.panel-content::-webkit-scrollbar {
    width: 4px;
}

.panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.panel-content::-webkit-scrollbar-thumb {
    background: var(--muted-slate);
    border-radius: 2px;
}

/* Typography */
.display-heading {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--matrix-green);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-heading {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--cyber-blue);
    margin-bottom: 12px;
}

.body-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cool-silver);
    margin-bottom: 12px;
}

/* Data Rows */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(74, 85, 104, 0.15);
}

.data-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted-slate);
    letter-spacing: 1px;
}

.data-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--matrix-green);
}

/* Paradox Visualizer */
.paradox-visualizer {
    margin: 16px 0;
}

.paradox-bar {
    width: 100%;
    height: 4px;
    background: rgba(74, 85, 104, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.paradox-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--matrix-green), var(--signal-pink));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.paradox-labels {
    display: flex;
    justify-content: space-between;
}

/* Bottom Bar */
.bottom-bar {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    gap: 16px;
}

.scanline-container {
    width: 120px;
    height: 2px;
    background: rgba(74, 85, 104, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.scanline {
    width: 30px;
    height: 100%;
    background: var(--matrix-green);
    border-radius: 1px;
    animation: scanline-move 2s linear infinite;
}

@keyframes scanline-move {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(120px); }
}

.bottom-info {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

/* Cursor Ring */
#cursor-ring {
    position: fixed;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.3s ease;
}

#cursor-ring.active {
    width: 160px;
    height: 160px;
    border-color: rgba(255, 51, 102, 0.25);
}

/* Glitch Text Effect */
@keyframes glitch-text {
    0%, 90%, 100% { transform: translate(0, 0); opacity: 1; }
    92% { transform: translate(-2px, 1px); opacity: 0.8; }
    94% { transform: translate(2px, -1px); opacity: 0.9; }
    96% { transform: translate(-1px, -1px); opacity: 0.8; }
    98% { transform: translate(1px, 2px); opacity: 0.9; }
}

.glitch-active {
    animation: glitch-text 3s ease-in-out infinite;
}

/* Phase transition glow */
@keyframes phase-glow {
    0% { box-shadow: 0 0 0 rgba(0, 255, 136, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.15); }
    100% { box-shadow: 0 0 0 rgba(0, 255, 136, 0); }
}

.phase-transition {
    animation: phase-glow 1s ease-out;
}

/* Responsive - smaller screens */
@media (max-width: 900px) {
    .hud-panel-left {
        width: 260px;
    }
    .hud-panel-right {
        width: 240px;
    }
}

@media (max-width: 700px) {
    .hud-panel-left,
    .hud-panel-right {
        top: auto;
        bottom: 72px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: 40vh;
    }
    .hud-panel-right {
        display: none;
    }
    .nav-links {
        display: none;
    }
}
