/* Cyber HUD Styling: mecatoncheir.com Medical Intelligence */

:root {
    --accent: #00f2ff;
    --accent-dim: rgba(0, 242, 255, 0.4);
    --accent-dark: #00373a;
    --text: #f8fafc;
    --bg: #000000;
    --font-mono: 'Share Tech Mono', monospace;
    --font-main: 'Outfit', sans-serif;
    --panel-bg: rgba(0, 0, 0, 0.4);
    --border-glass: rgba(0, 242, 255, 0.15);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh; width: 100vw;
}

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

/* 4-Corner HUD Overlay */
.hud-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 10;
    pointer-events: none;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.hud-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    padding: 1rem;
    background: var(--panel-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-glass);
}

.top-left { border-left-width: 4px; border-top-width: 4px; border-radius: 4px 0 0 0; align-self: start; justify-self: start; }
.top-right { border-right-width: 4px; border-top-width: 4px; border-radius: 0 4px 0 0; align-self: start; justify-self: end; text-align: right; }
.bottom-left { border-left-width: 4px; border-bottom-width: 4px; border-radius: 0 0 0 4px; align-self: end; justify-self: start; }
.bottom-right { border-right-width: 4px; border-bottom-width: 4px; border-radius: 0 0 4px 0; align-self: end; justify-self: end; text-align: right; }

.site-title h1 {
    font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; line-height: 1;
}
.site-title h1 span { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

/* RESET_ORIGIN Button */
.cyber-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

.cyber-btn:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 20px var(--accent);
}

.status-item { margin-bottom: 2px; }
.terminal-panel { width: 300px; }
.system-sync { margin-top: 10px; font-size: 0.6rem; color: var(--text); opacity: 0.5; }

/* Dive/Glitch Effect Overlay */
.dive-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 100;
    pointer-events: none;
    background: white;
    opacity: 0;
    transition: opacity 0.1s;
}

.dive-overlay.glitch-active {
    opacity: 0.8 !important;
    background: var(--accent);
    animation: glitch-anim 0.3s steps(3) infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0); background: var(--accent); }
    33% { transform: translate(-5px, 5px); background: #ff00ff; }
    66% { transform: translate(5px, -5px); background: #ffffff; }
}

.dive-overlay.whiteout {
    opacity: 1 !important;
    background: white;
    transition: opacity 0.5s ease-out;
}
