/* mechanic.stream — Sci-Fi HUD Telemetry Broadcast */

:root {
    --void-dark: #0a0f1a;
    --panel-dark: #1a2a3a;
    --grid-line: #556677;
    --steel: #8899aa;
    --phosphor-green: #00ff88;
    --neon-cyan: #00ccff;
    --amber-warn: #ffaa22;
    --alert-red: #ff3344;
    --deep-panel: #0d1420;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void-dark);
    color: var(--steel);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ====================== BROADCAST HERO ====================== */
.broadcast-hero {
    width: 100vw;
    height: 100vh;
    background: var(--void-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Scan line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--phosphor-green);
    opacity: 0.3;
    animation: scan-sweep 4s linear infinite;
    z-index: 2;
}

@keyframes scan-sweep {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Viewfinder brackets */
.bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
}

.bracket-tl { top: 20px; left: 20px; }
.bracket-tr { top: 20px; right: 20px; }
.bracket-bl { bottom: 20px; left: 20px; }
.bracket-br { bottom: 20px; right: 20px; }

.hero-content {
    text-align: center;
    position: relative;
    z-index: 4;
    padding: 20px;
}

.broadcast-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 51, 68, 0.15);
    border: 1px solid var(--alert-red);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 24px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--alert-red);
    animation: live-pulse 1s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--alert-red);
    letter-spacing: 0.15em;
}

.hero-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--phosphor-green);
    letter-spacing: 0.08em;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    min-height: 1.2em;
    margin-bottom: 12px;
}

.hero-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.55rem, 0.9vw, 0.75rem);
    color: var(--grid-line);
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-key {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    color: var(--grid-line);
    letter-spacing: 0.1em;
}

.stat-val {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--phosphor-green);
}

.signal-ok {
    color: var(--phosphor-green);
}

/* ====================== DASHBOARD ====================== */
.dashboard-section {
    padding: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.dash-panel {
    background: var(--panel-dark);
    border: 1px solid var(--grid-line);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(85, 102, 119, 0.15);
    border-bottom: 1px solid var(--grid-line);
}

.panel-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: var(--grid-line);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.panel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.panel-dot.green {
    background: var(--phosphor-green);
    box-shadow: 0 0 4px var(--phosphor-green);
}

.panel-dot.amber {
    background: var(--amber-warn);
    box-shadow: 0 0 4px var(--amber-warn);
}

.panel-body {
    padding: 16px;
}

/* Catalog panel */
.catalog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(85, 102, 119, 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.catalog-item:last-child {
    border-bottom: none;
}

.cat-id {
    color: var(--grid-line);
    flex-shrink: 0;
    width: 60px;
}

.cat-name {
    color: var(--steel);
    flex: 1;
}

.cat-status {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding: 1px 6px;
    border-radius: 2px;
}

.status-active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--phosphor-green);
}

.status-idle {
    background: rgba(136, 153, 170, 0.1);
    color: var(--steel);
}

.status-warn {
    background: rgba(255, 170, 34, 0.1);
    color: var(--amber-warn);
}

/* Stream feed */
.stream-feed {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--phosphor-green);
    opacity: 0.7;
    overflow: hidden;
    height: 200px;
    line-height: 1.8;
}

/* Gauges */
.gauge-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gauge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gauge-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: var(--grid-line);
    letter-spacing: 0.08em;
    width: 90px;
    flex-shrink: 0;
}

.gauge-bar {
    flex: 1;
    height: 6px;
    background: rgba(85, 102, 119, 0.3);
    border-radius: 1px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: var(--phosphor-green);
    border-radius: 1px;
    transition: width 1.5s ease;
}

.fill-cyan { background: var(--neon-cyan); }
.fill-amber { background: var(--amber-warn); }
.fill-red { background: var(--alert-red); }

.gauge-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--steel);
    width: 40px;
    text-align: right;
}

/* Schematic */
.schematic-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.schematic-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.gear-spin {
    animation: spin-cw 6s linear infinite;
    transform-origin: center;
}

.gear-spin-rev {
    animation: spin-ccw 4s linear infinite;
    transform-origin: center;
}

@keyframes spin-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-ccw {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ====================== ABOUT SECTION ====================== */
.about-section {
    padding: 40px 20px;
}

.about-inner {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--grid-line);
    border-radius: 2px;
    overflow: hidden;
}

.about-body {
    padding: 24px;
}

.about-body p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--steel);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-body p:last-child {
    margin-bottom: 0;
    color: var(--phosphor-green);
}

/* ====================== FOOTER ====================== */
.site-footer {
    border-top: 1px solid var(--grid-line);
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: var(--grid-line);
    letter-spacing: 0.08em;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-domain {
    color: var(--steel);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 16px;
    }

    .footer-bar {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .gauge-label {
        width: 70px;
    }
}
