/*#########################################################################################
   Hilton Weather All Rights Reserved © 25-07-2026
#########################################################################################*/

/* --------------------------------------------------
   ROOT VARIABLES — DARK THEME
-------------------------------------------------- */
:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-card-glass: rgba(22, 27, 34, 0.75);

    --text-light: #ffffff;
    --text-muted: #9ba3b0;

    --accent-grey: #30363d;
    --accent-grey-hover: #3b434d;
    --accent-glow: rgba(255,255,255,0.35);

    --blue-glow: rgba(88,166,255,0.5);
    --green-glow: rgba(46,160,67,0.5);
}

/* --------------------------------------------------
   GLOBAL PAGE
-------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    color: var(--text-light);
    font-family: Arial, Helvetica, sans-serif;

    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-attachment: fixed !important;
}

/* Remove WD blue text */
span[style*="color:white"],
font[color="white"],
font[color="#ffff"],
font[color="#ffff"] {
    color: var(--text-light) !important;
}

/* --------------------------------------------------
   GLOBAL LINK STYLE
-------------------------------------------------- */
a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

a:hover { color: #ffcc00; }
a:visited { color: var(--text-light); }

/* --------------------------------------------------
   PAGE TITLE
-------------------------------------------------- */
h1 {
    text-align: center;
    margin: 30px 0;
    font-size: 2.4rem;
    color: #ffffff;
    text-shadow: 0 0 12px var(--blue-glow);
}

/* --------------------------------------------------
   CONTENT WRAPPER
-------------------------------------------------- */
.content {
    max-width: 1500px;
    margin: auto;
    padding: 20px;
}

/* --------------------------------------------------
   DASHBOARD GRID
-------------------------------------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* --------------------------------------------------
   CARD STYLE
-------------------------------------------------- */
.dashboard-grid .card,
.card {
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.45);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 35px var(--accent-glow);
}

.card h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px var(--blue-glow);
}

/* --------------------------------------------------
   ROWS
-------------------------------------------------- */
.row {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

/* --------------------------------------------------
   SKYENGINE v12
-------------------------------------------------- */
.skyengine-main { margin: 15px 0; }
.skyengine-type {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px var(--blue-glow);
}
.skyengine-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 5px;
}
.skyengine-confidence { margin-top: 20px; }
.conf-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.conf-bar {
    width: 100%;
    height: 12px;
    background: var(--accent-grey);
    border-radius: 6px;
    overflow: hidden;
}
.conf-fill {
    height: 12px;
    width: 0%;
    background: #2ea043;
    box-shadow: 0 0 10px var(--green-glow);
    transition: width 0.4s ease;
}
.conf-value {
    margin-top: 6px;
    font-size: 1rem;
    color: var(--text-light);
}
.skyengine-probs { margin-top: 20px; }
.skyengine-probs h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #fff;
}
#v12Probs div {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --------------------------------------------------
   UV BAR
-------------------------------------------------- */
.uv-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}
.uv-bar-fill {
    height: 100%;
    width: 0%;
    background: #f1c40f;
    transition: width 0.4s ease, background 0.4s ease;
}

/* --------------------------------------------------
   RAIN BAR
-------------------------------------------------- */
.rain-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rain-bar {
    flex: 1;
    max-width: 50%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}
#rainBarFill {
    height: 100%;
    width: 0%;
    background: #4caf50;
    transition: width 0.4s ease, background 0.4s ease;
}

/* --------------------------------------------------
   TEMP DISPLAY
-------------------------------------------------- */
.site-temp {
    font-size: 26px;
    font-weight: 600;
    text-align: right;
}

/* --------------------------------------------------
   UV TILE COLORS
-------------------------------------------------- */
.uv-low       { background: linear-gradient(135deg, #27ae60, #2ecc71); color: #fff; }
.uv-mod       { background: linear-gradient(135deg, #f4d03f, #f1c40f); color: #000; }
.uv-high      { background: linear-gradient(135deg, #d35400, #e67e22); color: #fff; }
.uv-veryhigh  { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; }

/* --------------------------------------------------
   RAIN TILE COLORS
-------------------------------------------------- */
.rain-none    { background: linear-gradient(135deg, #7f8c8d, #95a5a6); color: #fff; }
.rain-light   { background: linear-gradient(135deg, #2980b9, #3498db); color: #fff; }
.rain-med     { background: linear-gradient(135deg, #1f618d, #2e86c1); color: #fff; }
.rain-heavy   { background: linear-gradient(135deg, #2c3e50, #34495e); color: #fff; }

/* --------------------------------------------------
   MET OFFICE WARNING GLOW
-------------------------------------------------- */
@keyframes glowYellow {
    from { box-shadow: 0 0 6px rgba(255, 255, 0, 0.4); }
    to   { box-shadow: 0 0 18px rgba(255, 255, 0, 0.9); }
}
@keyframes glowAmber {
    from { box-shadow: 0 0 6px rgba(255, 165, 0, 0.4); }
    to   { box-shadow: 0 0 18px rgba(255, 165, 0, 0.9); }
}
@keyframes glowRed {
    from { box-shadow: 0 0 6px rgba(255, 0, 0, 0.4); }
    to   { box-shadow: 0 0 18px rgba(255, 0, 0, 0.9); }
}

.nav-yellow { animation: glowYellow 1.8s ease-in-out infinite alternate; }
.nav-amber  { animation: glowAmber  1.8s ease-in-out infinite alternate; }
.nav-red    { animation: glowRed    1.8s ease-in-out infinite alternate; }
/* --------------------------------------------------
   GRID (Legacy WD pages)
-------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------
   LAYOUT (layout.php)
-------------------------------------------------- */
.overlay {
    background: rgba(0,0,0,0.35);
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
    min-height: calc(100vh - 250px);
}
.site-header {
    background: rgba(0,0,0,0.55);
    padding: 15px 20px;
    backdrop-filter: blur(4px);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title {
    font-size: 28px;
    font-weight: bold;
}

/* --------------------------------------------------
   MENU BAR
-------------------------------------------------- */
.menu-bar {
    width: 100%;
    background: rgba(0,0,0,0.55);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}
.menu-bar a {
    background: rgba(255,255,255,0.08);
    padding: 10px 18px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 0 6px rgba(255,255,255,0.15);
}
.menu-bar a:hover {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 12px rgba(255,255,255,0.35);
    transform: translateY(-2px);
}
.glow-yellow { box-shadow: 0 0 12px rgba(255,255,0,0.65) !important; }
.glow-amber { box-shadow: 0 0 12px rgba(255,165,0,0.75) !important; }
.glow-red   { box-shadow: 0 0 14px rgba(255,0,0,0.85) !important; }

.datastream-tab {
    font-weight: normal;
    padding: 5px 10px;
    margin-left: auto;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 6px rgba(255,255,255,0.15);
}
.datastream-good { color: #00ff99; }
.datastream-bad  { color: #ff4444; }

.site-footer {
    background: rgba(0,0,0,0.55);
    padding: 15px 20px;
    text-align: center;
    margin-top: 40px;
    backdrop-filter: blur(4px);
}

/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */
@media (max-width: 768px) {
    #dataStreamStatus { display: none !important; }
    #dataStreamStatusMobile {
        display: inline-block !important;
        font-size: 14px;
        padding: 4px 8px;
        margin-left: 10px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .site-header { padding: 10px 12px; }
    .site-title { font-size: 20px; }
    #headerTemp { font-size: 18px; }

    .menu-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .menu-bar a {
        padding: 8px 12px;
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }

    .overlay { padding: 10px; }
    .container { width: 100%; padding: 0; margin: 0; }
    .site-footer { padding: 10px; margin-top: 20px; font-size: 13px; }
}

/* --------------------------------------------------
   FIRE CALC BAR
-------------------------------------------------- */
.skyengine-age {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 8px;
}
.fire-calc-bar {
    height: 6px;
    background: linear-gradient(90deg, #e67e22, #f1c40f);
    border-radius: 4px;
    margin-top: 6px;
    width: 100%;
    transition: width 1s linear;
}

/* --------------------------------------------------
   CARD ROW ALIGNMENT
-------------------------------------------------- */
.card .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

/* --------------------------------------------------
   BAROMETER ICON ALIGNMENT
-------------------------------------------------- */
#barometerIcon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
#barometerIcon svg {
    vertical-align: middle;
}

/* --------------------------------------------------
   CARD HEADER ICON ALIGNMENT
-------------------------------------------------- */
.card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --------------------------------------------------
   CONSISTENT LABEL WIDTH
-------------------------------------------------- */
.card .row strong {
    min-width: 140px;
}

/* --------------------------------------------------
   WX CARD (Legacy)
-------------------------------------------------- */
.wx-card {
    background: #2b2b2b;
    border-radius: 14px;
    padding: 0;
    margin: 20px;
    box-shadow: 0 0 18px rgba(0,0,0,0.55);
    overflow: hidden;
}
.wx-card-header {
    background: #3a3a3a;
    padding: 10px 15px;
    border-bottom: 1px solid #444;
}
.wx-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.wind-compass-wrapper {
    width: 300px;
    margin: 20px auto;
}
.wind-info {
    text-align: center;
    padding: 10px 0 15px 0;
    color: #fff;
    font-size: 14px;
}
.wind-info div { margin: 4px 0; }
#windArrow {
    transform-origin: 150px 150px;
    transition: transform 0.6s ease-in-out;
}
#gustHalo {
    transition: r 0.6s ease-in-out;
}

/* --------------------------------------------------
   WEATHER COCKPIT — DARK BRUSHED-STEEL INSTRUMENTS
-------------------------------------------------- */
.instrument-frame {
    background: linear-gradient(145deg, #2b2b2b, #1f1f1f);
    border: 2px solid #555;
    border-radius: 16px;
    box-shadow:
        inset 4px 4px 8px #1a1a1a,
        inset -4px -4px 8px #3a3a3a,
        0 0 25px rgba(0,0,0,0.45);
    padding: 10px;
}

.instrument-face {
    background: rgba(20,20,20,0.55);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.instrument-tube {
    fill: rgba(255,255,255,0.15);
}

.instrument-tube-highlight {
    fill: rgba(255,255,255,0.35);
}

.instrument-fluid-temp { fill: #d60000; }
.instrument-fluid-rain { fill: #0077ff; }
.instrument-fluid-humidity { fill: #00aa44; }

.instrument-bulb-glass {
    fill: rgba(255,255,255,0.7);
}

.instrument-bulb-fluid {
    fill: currentColor;
}

.instrument-arc {
    stroke-width: 12;
    stroke-linecap: round;
}

.instrument-readout {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.instrument-needle-shadow {
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.4));
}
/* Full-width Sun & Moon card */
.card.sunmoon-full {
    grid-column: span 3;
}