/* Weather Widget */
.weather-widget {
    padding: 20px;
}

.weather-header {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.weather-header .city-name {
    font-weight: 700;
    color: #fff;
}

/* Current Weather */
.weather-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.weather-current-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.weather-icon-main {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.weather-icon-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.weather-day-temp {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.weather-day-name {
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.weather-temp-main {
    font-size: 26px;
    font-weight: 300;
    color: #fff;
    line-height: 1.2;
}

.weather-unit-toggle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    white-space: nowrap;
}

.weather-unit-toggle .active {
    color: #fff;
}

.weather-unit-toggle .divider {
    margin: 0 2px;
}

/* Current Weather Details */
.weather-current-right {
    text-align: right;
    flex-shrink: 0;
}

.weather-detail {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    white-space: nowrap;
}

.weather-detail-label {
    color: rgba(255, 255, 255, 0.5);
}

/* Forecast */
.weather-forecast {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -10px;
    padding: 0 10px;
    -webkit-overflow-scrolling: touch;
}

.weather-forecast::-webkit-scrollbar {
    display: none;
}

.weather-forecast-item {
    flex: 1 0 auto;
    min-width: 65px;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    transition: background 0.2s;
    cursor: pointer;
}

.weather-forecast-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.weather-forecast-item.active {
    background: rgba(255, 255, 255, 0.08);
}

.weather-forecast-day {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    font-weight: 600;
    margin-bottom: 6px;
}

.weather-forecast-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 6px;
}

.weather-forecast-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.weather-forecast-temps {
    font-size: 13px;
}

.weather-forecast-high {
    color: #fff;
    font-weight: 600;
}

.weather-forecast-low {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 3px;
}

/* Loading State */
.weather-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.weather-loading .spinner-border {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Error State */
.weather-error {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.weather-error-icon {
    margin-bottom: 10px;
    opacity: 0.5;
}

.weather-retry-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}

.weather-retry-btn:hover {
    border-color: var(--t4s-primary-color);
    color: var(--t4s-primary-color);
}

/* Tablet */
@media (max-width: 768px) {
    .weather-day-name {
        font-size: 22px;
    }

    .weather-temp-main {
        font-size: 22px;
    }

    .weather-icon-main {
        width: 54px;
        height: 54px;
    }

    .weather-detail {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .weather-widget {
        padding: 15px;
    }

    .weather-current {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .weather-current-left {
        width: 100%;
        gap: 10px;
    }

    .weather-icon-main {
        width: 50px;
        height: 50px;
    }

    .weather-day-name {
        font-size: 20px;
    }

    .weather-temp-main {
        font-size: 20px;
    }

    .weather-unit-toggle {
        font-size: 12px;
    }

    .weather-current-right {
        width: 100%;
        text-align: left;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .weather-detail {
        font-size: 12px;
        white-space: nowrap;
    }

    .weather-forecast {
        gap: 2px;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .weather-forecast-item {
        min-width: 58px;
        padding: 8px 6px;
    }

    .weather-forecast-day {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .weather-forecast-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 4px;
    }

    .weather-forecast-temps {
        font-size: 12px;
    }
}

/* Extra small mobile */
@media (max-width: 375px) {
    .weather-current-left {
        gap: 8px;
    }

    .weather-icon-main {
        width: 44px;
        height: 44px;
    }

    .weather-day-name {
        font-size: 18px;
    }

    .weather-temp-main {
        font-size: 18px;
    }

    .weather-forecast-item {
        min-width: 52px;
        padding: 6px 4px;
    }

    .weather-forecast-icon {
        width: 26px;
        height: 26px;
    }

    .weather-forecast-day,
    .weather-forecast-temps {
        font-size: 11px;
    }
}
