/* ============================================================
   HumHub Weather Widget – weather.css
   ============================================================ */

/* ── Inner widget container (lives inside .panel-body) ──────── */
.weather-widget {
    background: linear-gradient(135deg, #1a3c5e 0%, #1e4976 60%, #1a6b8a 100%);
    border-radius: 6px;
    color: #fff;
    padding: 12px 14px 10px !important; /* override panel-body default padding */
}

/* ── Header row ─────────────────────────────────────────────── */
.weather-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.weather-location {
    flex: 0 0 auto;
    min-width: 80px;
}

.weather-city {
    font-size: 1em;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.weather-label {
    font-size: 0.6em;
    letter-spacing: .12em;
    opacity: .75;
    margin-top: 2px;
}

/* Large icon */
.weather-current-icon {
    flex: 1 1 auto;
    text-align: center;
    font-size: 2.6em;
    line-height: 1;
}

.weather-current-info {
    flex: 0 0 auto;
    text-align: right;
}

.weather-temp {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.1;
}

.weather-condition {
    font-size: 0.7em;
    opacity: .85;
    white-space: nowrap;
}

.weather-error {
    font-size: 0.72em;
    opacity: .7;
}

/* ── 7-day forecast row ──────────────────────────────────────── */
.weather-forecast {
    border-top: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
}

.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 28px;
}

.weather-day-name {
    font-size: 0.68em;
    opacity: .85;
    font-weight: 600;
}

.weather-day-icon {
    font-size: 1.3em;
    line-height: 1;
}

.weather-day-temps {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.weather-day-max {
    font-size: 0.75em;
    font-weight: 600;
    color: #f4d03f;
}

.weather-day-min {
    font-size: 0.68em;
    opacity: .7;
    color: #aed6f1;
}
