/* ====== GLOBAL RESET FOR WEATHER WIDGET ====== */
.weather-widget,
.weather-widget * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ====== MAIN CONTAINER (FULL WIDTH + BOTTOM SPACE) ====== */
.weather-widget {
    display: flex;
    width: 100%;
    margin: 0 0 20px 0; /* bottom spacing restored */
    background: #ffffff;
    overflow: hidden;
    font-family: system-ui, -apple-system, sans-serif;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

/* ====== CURRENT WEATHER SECTION ====== */
.current-weather {
    flex: 0 0 260px;
    color: #1e73be;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Weather Background Themes */

/* ☀️ Sunny */
.current-weather.sunny {
    background: linear-gradient(135deg, #f7b733, #fc4a1a);
}

/* ☁️ Cloudy */
.current-weather.cloudy {
    background: linear-gradient(135deg, #757f9a, #d7dde8);
}

/* 🌧 Rain */
.current-weather.rainy {
    background: linear-gradient(135deg, #314755, #26a0da);
}

/* ⛈ Storm */
.current-weather.storm {
    background: linear-gradient(135deg, #232526, #414345);
}

/* ❄ Snow */
.current-weather.snow {
    background: linear-gradient(135deg, #83a4d4, #b6fbff);
}

/* 🌙 Night */
.current-weather.night {
    background: linear-gradient(135deg, #141e30, #243b55);
}

.current-weather .current-heading {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.current-weather img {
    width: 60px;
    height: 60px;
    margin: 4px 0;
}

.current-weather .current-temperature {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    margin: 4px 0;
}

.current-weather .current-description {
    font-size: 0.9rem;
    margin-bottom: 6px;
    text-transform: capitalize;
}

/* Weather Info Row */
.weather-info {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.weather-info .info-item {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 6px;
}

/* ====== FORECAST SECTION (ALWAYS HORIZONTAL) ====== */
.forecast-days {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 12px;
    background: #ffffff;
}

/* Hide scrollbar (optional cleaner look) */
.forecast-days::-webkit-scrollbar {
    height: 4px;
}

.forecast-days::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ====== FORECAST CARD ====== */
.weather-item {
    flex: 1;
    min-width: 90px;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.weather-item:hover {
    background: #f2f5f9;
}

.weather-item .date {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: #444;
}

.weather-item img {
    width: 34px;
    height: 34px;
    margin: 3px auto;
}

.weather-item .temperature {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
}

.weather-item .description {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.1;
}

/* ====== MOBILE VIEW ====== */
@media (max-width: 768px) {

    .weather-widget {
        flex-direction: column; /* stack vertically */
    }

    .current-weather {
        width: 100%;
        flex: unset;
        padding: 12px;
    }

    .current-weather .current-temperature {
        font-size: 2.2rem;
    }

    .forecast-days {
        width: 100%;
        padding: 8px;
        gap: 4px;
    }

    .weather-item {
        min-width: 75px;
        padding: 6px 2px;
    }

    .weather-item img {
        width: 28px;
        height: 28px;
    }
}

/* ====== VERY SMALL PHONES ====== */
@media (max-width: 480px) {

    .current-weather .current-temperature {
        font-size: 2rem;
    }

    .weather-item {
        min-width: 70px;
    }

    .weather-item img {
        width: 26px;
        height: 26px;
    }

    .weather-item .temperature {
        font-size: 0.85rem;
    }
}