"""Stark HUD theme — dark glass, arc-reactor glow, cyan/amber accents."""

:root {
    --bg: #05080f;
    --panel: rgba(10, 20, 40, 0.55);
    --panel-border: rgba(0, 200, 255, 0.25);
    --cyan: #00e5ff;
    --amber: #ffb300;
    --green: #00ff88;
    --red: #ff3355;
    --text: #c8d8e8;
    --dim: #5a7a95;
    --font-mono: "Consolas", "SF Mono", monospace;
}

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

body {
    background: radial-gradient(ellipse at 50% -20%, #0b1e38 0%, var(--bg) 55%);
    color: var(--text);
    font-family: var(--font-mono);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Arc reactor background rings */
body::before {
    content: "";
    position: fixed;
    top: 50%; left: 50%;
    width: 900px; height: 900px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 40%),
        repeating-radial-gradient(circle, transparent 0 60px, rgba(0,229,255,0.04) 60px 62px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

header {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 16px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(5, 10, 20, 0.7);
    backdrop-filter: blur(8px);
}

header h1 {
    font-size: 22px; letter-spacing: 4px;
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

header .status-led {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: blink 2s infinite;
}

header .status-led.off { background: var(--red); box-shadow: 0 0 10px var(--red); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

header .clock { margin-left: auto; color: var(--dim); font-size: 14px; }

main {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    gap: 16px;
    padding: 16px 28px;
}

@media (max-width: 1100px) {
    main { grid-template-columns: 1fr; }
}

.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 14px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.06), inset 0 0 30px rgba(0, 229, 255, 0.03);
}

.panel h2 {
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    padding-bottom: 8px;
}

.tile {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--dim);
    font-size: 13px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tile .name { color: var(--text); }
.tile .val { color: var(--dim); font-size: 12px; }

.tile.ok { border-left-color: var(--green); box-shadow: inset 0 0 12px rgba(0,255,136,0.05); }
.tile.ok .val { color: var(--green); }
.tile.bad { border-left-color: var(--red); box-shadow: inset 0 0 12px rgba(255,51,85,0.08); }
.tile.bad .val { color: var(--red); }
.tile.warn { border-left-color: var(--amber); }
.tile.warn .val { color: var(--amber); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

.app-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    transition: transform 0.15s, box-shadow 0.3s;
}

.app-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 229, 255, 0.15); }

.app-card h3 { font-size: 14px; color: var(--cyan); margin-bottom: 4px; }
.app-card p { font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.app-card .meta { font-size: 11px; color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; }
.app-card .meta .branch { color: var(--amber); }
.app-card .meta .dirty { color: var(--red); }
.app-card .meta .clean { color: var(--green); }
.app-card a { color: var(--cyan); font-size: 11px; text-decoration: none; }
.app-card a:hover { text-decoration: underline; }

.voice-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 5;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 28px;
    background: rgba(5, 10, 20, 0.85);
    border-top: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
}

.voice-bar .ptt {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.voice-bar .ptt:active, .voice-bar .ptt.recording {
    background: var(--red); border-color: var(--red); color: white;
    box-shadow: 0 0 20px rgba(255, 51, 85, 0.6);
}

.voice-bar .transcript {
    flex: 1;
    font-size: 13px; color: var(--text);
    min-height: 20px;
}

.voice-bar .jarvis-line {
    font-size: 12px; color: var(--amber);
    max-width: 40%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.meter { display: flex; gap: 2px; align-items: flex-end; height: 24px; }
.meter .bar { width: 3px; background: var(--cyan); border-radius: 1px; opacity: 0.7; }
