/* Стили для переключателя прогноза */
.forecast-toggle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.6) 100%);
    border-radius: 16px;
    border: 1px dashed #dee2e6;
}

.forecast-label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 16px;
}

.forecast-toggle {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.forecast-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.forecast-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.forecast-btn.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Контейнер для прогноза */
.weather-forecast {
    display: none;
    margin: 40px auto 20px auto;
    animation: slideInFromTop 0.6s ease-out;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    color: #333;
    max-width: 95%;
}

.weather-forecast.show {
    display: block;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Карточка дня прогноза */
.forecast-day {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: cardAppear 0.7s ease-out forwards;
    opacity: 0;
    transform: translateY(15px);
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.forecast-day:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.forecast-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.forecast-day-of-week {
    font-size: 16px;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.forecast-icon {
    width: 50px;
    height: 50px;
    margin: 10px auto;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2));
}

.forecast-temp {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 8px 0;
}

.forecast-temp-minmax {
    display: flex;
    justify-content: space-around;
    margin-top: 8px;
}

.forecast-temp-max {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 16px;
}

.forecast-temp-min {
    color: #4dabf7;
    font-weight: 600;
    font-size: 16px;
}

.forecast-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    font-style: italic;
}

/* Детали прогноза */
.forecast-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.forecast-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

/* Стили для прогноза на завтра и послезавтра */
.tomorrow-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.tomorrow-icon-temp {
    display: flex;
    align-items: center;
    gap: 20px;
}

.big-weather-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.tomorrow-temp {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.tomorrow-minmax {
    display: flex;
    gap: 30px;
    background: rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
}

.minmax-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: white;
}

.minmax-item i {
    font-size: 20px;
}

/* Почасовой прогноз */
.hourly-forecast {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hour-item {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 15px;
    min-width: 100px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hour-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.hour-time {
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    font-size: 14px;
}

.hour-temp {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 8px 0;
}

.hour-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    font-style: italic;
    margin-top: 5px;
}

/* Прогноз на 5 дней */
.five-day-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.five-day-card {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.five-day-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.day-name {
    font-weight: 600;
    color: white;
    font-size: 16px;
}

.day-date {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 5px 0;
}

.day-icon {
    width: 50px;
    height: 50px;
    margin: 10px auto;
}

.day-temp {
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.day-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-top: 8px;
    font-style: italic;
}

/* Кнопка назад */
.back-to-current-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
}

.back-to-current-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Заметка для послезавтра */
.day-after-note {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    color: #ff9800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.day-after-note i {
    font-size: 16px;
    color: #ff9800;
    flex-shrink: 0;
}

.day-after-note span {
    flex: 1;
    line-height: 1.4;
}

/* Заголовки */
.forecast-title {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hourly-title {
    color: white;
    margin: 20px 0 10px;
    font-size: 18px;
}

.forecast-error {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 600px) {
    .forecast-days {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .forecast-day {
        padding: 12px;
    }

    .forecast-toggle {
        flex-direction: column;
        width: 100%;
        max-width: 200px;
    }

    .forecast-btn {
        width: 100%;
    }

    .tomorrow-icon-temp {
        flex-direction: column;
        gap: 10px;
    }

    .tomorrow-temp {
        font-size: 36px;
    }

    .tomorrow-minmax {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .five-day-forecast {
        grid-template-columns: repeat(2, 1fr);
    }

    .forecast-toggle {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }

    .forecast-btn {
        width: 100%;
        min-width: auto;
    }
}
.day-after-note,
.hourly-title {
    display: none !important;
}
