/* Стили для раздела погоды */
.weather-section {
    max-width: 100%;
}

.weather-section-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

/* Хлебные крошки погоды */
.weather-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.weather-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.weather-breadcrumb:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.weather-breadcrumb.active {
    color: var(--primary);
    font-weight: 500;
}

.weather-breadcrumb-separator {
    color: var(--muted-foreground);
}

/* Основная сетка погоды */
.weather-grid {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 1.5rem;
    min-height: 600px;
}

@media (max-width: 1200px) {
    .weather-grid {
        grid-template-columns: 280px 1fr;
    }
    .weather-forecast-sidebar {
        grid-column: 1 / -1;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .weather-grid {
        grid-template-columns: 1fr;
    }
    .weather-sidebar, .weather-map-container, .weather-forecast-sidebar {
        grid-column: 1 / -1;
    }
}

/* Левая панель - поиск и информация */
.weather-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.weather-search-box {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

.weather-search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.weather-search-box input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.weather-search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.weather-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow-hover);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.weather-search-result {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.weather-search-result:hover {
    background-color: #f8fafc;
}

.weather-search-result:last-child {
    border-bottom: none;
}

.weather-location-info {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.weather-location-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.weather-current-weather {
    text-align: center;
    padding: 1rem 0;
}

.weather-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.weather-temperature {
    font-size: 3rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.weather-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.weather-detail-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.weather-detail-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Центральная карта погоды */
.weather-map-container {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.weather-map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f8fafc;
}

.weather-map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.weather-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.weather-map-region {
    position: absolute;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    background-color: rgba(59, 130, 246, 0.1);
    opacity: 0.3;
}

.weather-map-region:hover {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.3);
    opacity: 0.6;
}

.weather-map-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.weather-btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-btn-outline:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.weather-btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.weather-zoom-controls {
    display: flex;
    gap: 0.5rem;
}

.weather-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

/* Правая панель - прогноз погоды */
.weather-forecast-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weather-forecast-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.weather-forecast-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.weather-forecast-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.weather-forecast-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.weather-forecast-date {
    font-weight: 500;
    color: var(--foreground);
    min-width: 80px;
}

.weather-forecast-icon {
    font-size: 1.5rem;
    color: var(--primary);
    width: 2rem;
    text-align: center;
}

.weather-forecast-temp {
    font-weight: 600;
    color: var(--foreground);
    margin-left: auto;
}

.weather-forecast-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: right;
}

/* Уведомление для погоды */
.weather-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.weather-toast.show {
    transform: translateX(0);
}

.weather-toast-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.weather-toast-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Анимации для погоды */
@keyframes weatherFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.weather-section.active {
    animation: weatherFadeIn 0.5s ease-in-out;
}

/* Адаптивность для погоды */
@media (max-width: 480px) {
    .weather-grid {
        gap: 1rem;
    }

    .weather-map-wrapper {
        height: 400px;
    }

    .weather-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .weather-temperature {
        font-size: 2.5rem;
    }

    .weather-icon {
        font-size: 3rem;
    }
}

/* Состояние загрузки для погоды */
.weather-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--muted-foreground);
}

.weather-loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #f3f4f6;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: weatherSpin 1s linear infinite;
    margin-right: 0.75rem;
}

@keyframes weatherSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Меню выбора локаций для погоды */
.weather-location-menu {
    animation: weatherFadeIn 0.2s ease-in-out;
}

.weather-location-menu button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.weather-location-menu button:hover {
    background-color: #e2e8f0 !important;
}
