/* ==============================================
   JARVIS MARK 8 — Core HUD Stylesheet
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

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

body {
    background: #000;
    color: #0ff;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    border: 4px solid #048;
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 40, 80, 0.2) 0%, transparent 90%);
}

/* --- Arc Reactor (Center) --- */
#main-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    position: relative;
}

#arc {
    width: 150px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid #0ff;
    box-shadow: 0 0 50px #0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: arc-pulse 2s infinite;
    transition: 0.5s;
    position: relative;
    z-index: 100;
}

#arc.listening {
    border-color: #f00;
    box-shadow: 0 0 80px #f00;
}

.ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 255, 255, 0.2);
    animation: ring-spin 15s linear infinite;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes arc-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%      { transform: scale(1.05); opacity: 1; }
}

/* --- Central Display --- */
#display {
    width: 40vw;
    min-width: 300px;
    max-width: 600px;
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid #08f;
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85em;
    line-height: 1.6;
    backdrop-filter: blur(20px);
    text-align: center;
    margin-top: 30px;
    z-index: 90;
    box-shadow: 0 0 30px rgba(0, 0, 0, 1);
}

/* --- Hologram Panels (shared) --- */
.hologram {
    position: absolute;
    background: rgba(0, 10, 20, 0.95);
    border: 1px solid #0ff;
    border-radius: 5px;
    opacity: 0;
    transform: scale(0.9);
    transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}
.hologram.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* --- Left Panel: Live Web Page --- */
#web-panel {
    left: 20px;
    top: 80px;
    width: 28%;
    height: 80vh;
    border-left: 5px solid #0ff;
}
#web-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* --- Right Panel: Visual Intel --- */
#info-panel {
    right: 20px;
    top: 80px;
    width: 28%;
    height: 80vh;
    border-right: 5px solid #0ff;
    display: flex;
    flex-direction: column;
}
#primary-img {
    width: 100%;
    height: 45%;
    object-fit: cover;
    border-bottom: 2px solid #048;
    background: #000;
}

/* --- Weather Content --- */
#weather-content {
    flex-grow: 1;
    padding: 20px;
    display: none;
}
.temp-main {
    font-size: 4em;
    font-weight: bold;
    text-align: center;
    color: #fff;
}
.w-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 15px;
}
.w-card {
    background: rgba(0, 30, 60, 0.5);
    padding: 5px;
    border: 1px solid #08f;
    text-align: center;
    font-size: 0.6em;
}

/* --- Bottom Panel: Satellite Map --- */
#satellite-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 180px;
    border: 2px solid #0ff;
    opacity: 0;
    transition: 0.5s;
    z-index: 10;
    border-radius: 5px;
}
#satellite-link.visible {
    opacity: 1;
}
#map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: hue-rotate(180deg) brightness(0.8) contrast(1.2);
}

/* --- Header Elements --- */
.header {
    background: #048;
    padding: 8px;
    font-size: 0.6em;
    letter-spacing: 2px;
    font-weight: bold;
    color: #0ff;
    text-transform: uppercase;
}
.header-text {
    position: absolute;
    top: 30px;
    font-size: 2em;
    letter-spacing: 15px;
    color: #0ff;
    font-weight: bold;
    z-index: 200;
}

/* --- Diagnostics --- */
.diag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7em;
    color: #444;
    text-align: right;
    z-index: 200;
}
.active { color: #0f0 !important; }

/* --- HUD Log (bottom-left debug) --- */
#hud-log {
    position: fixed;
    bottom: 10px;
    left: 10px;
    width: 300px;
    max-height: 150px;
    overflow-y: auto;
    font-family: 'Consolas', monospace;
    font-size: 0.55em;
    color: #0a7;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #041;
    border-radius: 4px;
    padding: 6px;
    z-index: 300;
    pointer-events: none;
}
#hud-log .log-error { color: #f44; }
#hud-log .log-warn  { color: #fa0; }
#hud-log .log-info  { color: #0a7; }
