/* ==============================================
   JARVIS MARK 8 — Weather Dashboard Styles
   Full-screen split-panel weather + location HUD
   ============================================== */

/* --- Overlay Container --- */
#weather-dashboard {
    position: fixed;
    inset: 0;
    z-index: 450;
    display: none;
    background: #060a12;
    flex-direction: column;
}
#weather-dashboard.active {
    display: flex;
    animation: wd-fade-in 0.5s ease-out;
}
@keyframes wd-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --- Header Bar --- */
#wd-header {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(0, 15, 30, 0.9);
    border-bottom: 1px solid rgba(0, 170, 255, 0.25);
    gap: 16px;
    flex-shrink: 0;
}
#wd-location {
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    letter-spacing: 4px;
    color: #0af;
    white-space: nowrap;
}
#wd-condition-bar {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85em;
    color: #6a8fad;
    flex: 1;
}
#wd-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid #0af;
    background: rgba(0, 10, 20, 0.6);
    color: #0af;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
#wd-close:hover { background: #0af; color: #000; box-shadow: 0 0 16px #0af; }

/* --- Split Content --- */
#wd-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    overflow: hidden;
    gap: 1px;
    background: rgba(0, 170, 255, 0.08);
}

/* --- Left Panel: Weather --- */
#wd-weather-panel {
    background: #060a12;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
#wd-weather-panel::-webkit-scrollbar { width: 5px; }
#wd-weather-panel::-webkit-scrollbar-track { background: #060a12; }
#wd-weather-panel::-webkit-scrollbar-thumb { background: #0af; border-radius: 3px; }

/* --- Current Conditions --- */
#wd-current {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: rgba(0, 15, 30, 0.6);
    border: 1px solid rgba(0, 170, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}
#wd-current-icon {
    font-size: 4em;
    line-height: 1;
}
#wd-current-temp {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5em;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
#wd-current-temp .unit { font-size: 0.35em; color: #6a8fad; vertical-align: top; margin-left: 2px; }
#wd-current-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85em;
    color: #8ab4d6;
}
#wd-current-details .detail-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
#wd-current-details .detail-label { color: #4a7a9d; min-width: 70px; }
#wd-current-details .detail-value { color: #c8e6ff; font-weight: 600; }

/* --- Section Titles --- */
.wd-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6em;
    letter-spacing: 3px;
    color: #0af;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
    margin-bottom: 12px;
}

/* --- Hourly Chart --- */
#wd-hourly {
    padding: 16px;
    background: rgba(0, 15, 30, 0.4);
    border: 1px solid rgba(0, 170, 255, 0.12);
    border-radius: 10px;
}
#wd-hourly-chart {
    width: 100% !important;
    max-height: 220px;
}

/* --- Weekly Forecast Grid --- */
#wd-weekly {
    padding: 16px;
    background: rgba(0, 15, 30, 0.4);
    border: 1px solid rgba(0, 170, 255, 0.12);
    border-radius: 10px;
}
#wd-weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.wd-day-card {
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 170, 255, 0.1);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    transition: border-color 0.3s;
}
.wd-day-card:hover { border-color: #0af; }
.wd-day-card.selected {
    border-color: #0af;
    background: rgba(0, 170, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}
.wd-day-name {
    font-size: 0.7em;
    font-weight: 700;
    color: #0af;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.wd-day-icon { font-size: 1.6em; margin: 4px 0; }
.wd-day-temps { font-size: 0.8em; margin: 4px 0; }
.wd-hi { color: #fff; font-weight: 700; }
.wd-lo { color: #4a7a9d; margin-left: 4px; }
.wd-day-precip { font-size: 0.65em; color: #4a7a9d; margin-top: 4px; }

/* --- Right Panel: Wikipedia --- */
#wd-wiki-panel {
    background: #060a12;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#wd-wiki-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.15);
    flex-shrink: 0;
}
#wd-wiki-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    display: none;
}
#wd-wiki-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.55em;
    letter-spacing: 3px;
    color: #0af;
}
#wd-wiki-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: #0a0e17;
}

/* --- Map Thumbnail (in header) --- */
#wd-map-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    filter: hue-rotate(180deg) brightness(0.8) contrast(1.2);
    display: none;
    margin-left: auto;
}
