/* Wagner's Weather Widget — wagner-weather-widget v1.0.0 */

/* ==========================================================================
   Weather Bar  —  shortcode: [wagner_weather]
   Full-width slim strip, designed to sit inside a theme header area.
   ========================================================================== */

.wagner-weather-bar {
    background: #111111;
    border-bottom: 1px solid #1e1e1e;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-block-start: 46px;
    width: 100%;
}

@media (max-width: 767px) {
    .wagner-weather-bar {
        margin-block-start: 36px;
    }
}

@media (max-width: 342px) {
    .wagner-weather-bar {
        margin-block-start: 51px;
    }
}

.ww-bar-inner {
    align-items: center;
    display: flex;
    gap: 14px;
    height: 42px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
}

/* Left group — icon + location + description */
.ww-bar-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.ww-bar-loc-wrap {
    align-items: baseline;
    display: flex;
    flex-shrink: 0;
    gap: 7px;
}

.ww-bar-location {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ww-bar-desc {
    color: #ffffff;
    font-size: 11px;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Right group — temp + stats */
.ww-bar-metrics {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.ww-bar-temp-wrap {
    align-items: baseline;
    display: flex;
    gap: 1px;
}

.ww-bar-temp {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.ww-bar-unit {
    color: #ffffff;
    font-size: 11px;
}

.ww-bar-sep {
    color: #2e2e2e;
    font-size: 16px;
    font-weight: 300;
}

.ww-bar-metric {
    align-items: center;
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.ww-bar-lbl {
    color: #1c69d4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ww-bar-val {
    color: #bbbbbb;
    font-size: 12px;
    font-weight: 500;
}

/* Timestamp */
.ww-bar-time {
    color: #ffffff;
    flex-shrink: 0;
    font-size: 11px;
    line-height: 42px;
    white-space: nowrap;
}

/* Mobile second row — hidden on desktop */
.ww-bar-mobile-row {
    display: none;
}

.ww-bar-mobile-sep {
    color: #444444;
    font-size: 12px;
}

/* Error */
.wagner-weather-bar.ww-bar-error .ww-bar-desc {
    color: #c0392b;
}

/* Responsive — two-row layout on small screens */
@media (max-width: 640px) {
    .ww-bar-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 6px 12px 0;
        gap: 0 10px;
    }

    /* Row 1: icon + loc-wrap (location + desc) + temp — keep visible */
    .ww-bar-icon,
    .ww-bar-loc-wrap,
    .ww-bar-temp-wrap {
        margin-bottom: 5px;
    }

    /* Hide desktop-only elements; .ww-bar-desc stays visible (inside loc-wrap) */
    .ww-bar-metrics .ww-bar-sep,
    .ww-bar-metrics .ww-bar-metric,
    .ww-bar-time {
        display: none;
    }

    /* Move temp inline with the left group */
    .ww-bar-metrics {
        margin-left: auto;
        margin-bottom: 5px;
    }

    /* Row 2: stats strip */
    .ww-bar-mobile-row {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        padding-bottom: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
}