.weather-section {
    margin-top: 48px;
    padding: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header .section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header .section-title .icon {
    font-size: 28px;
    color: var(--primary);
}

.section-header .section-subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.weather-main-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-shadow);
    padding: 32px;
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.weather-main-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.weather-today {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.weather-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.weather-icon-wrapper:hover {
    transform: scale(1.05);
}

.weather-icon-wrapper .icon-xxl {
    font-size: 64px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.weather-temp-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.temp-high-main {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -2px;
}

.temp-low-main {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-tertiary);
    line-height: 1;
}

.weather-today-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weather-status {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(113, 112, 255, 0.15);
    border-radius: var(--radius-sm);
}

.detail-icon .icon-sm {
    font-size: 18px;
    color: var(--primary);
}

.detail-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: auto;
}

.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.forecast-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-shadow);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.forecast-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forecast-day {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.forecast-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.forecast-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.forecast-card:hover .forecast-icon-wrapper {
    transform: scale(1.1);
}

.forecast-icon-wrapper .icon-lg {
    font-size: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.forecast-temps {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.forecast-temps .temp-high {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.forecast-temps .temp-low {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.forecast-status {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.forecast-details {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.forecast-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.forecast-details .icon-xs {
    font-size: 14px;
    color: var(--primary);
}

.weather-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.update-time {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.update-time .icon-xs {
    font-size: 14px;
}

.weather-loading,
.weather-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    text-align: center;
}

.weather-loading p,
.weather-error p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.weather-error .icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(113, 112, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .weather-today {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .weather-today-left {
        width: 100%;
        justify-content: flex-start;
    }
    
    .weather-today-right {
        width: 100%;
    }
    
    .weather-details-grid {
        grid-template-columns: 1fr;
    }
    
    .weather-forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .temp-high-main {
        font-size: 48px;
    }
    
    .temp-low-main {
        font-size: 20px;
    }
    
    .weather-status {
        font-size: 24px;
    }
    
    .weather-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .weather-icon-wrapper .icon-xxl {
        font-size: 52px;
    }
}

@media (max-width: 480px) {
    .weather-main-card {
        padding: 24px;
    }
    
    .section-header .section-title {
        font-size: 28px;
    }
    
    .weather-forecast-grid {
        grid-template-columns: 1fr;
    }
    
    .forecast-card {
        padding: 20px;
    }
    
    .weather-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .weather-icon-wrapper .icon-xxl {
        font-size: 44px;
    }
    
    .temp-high-main {
        font-size: 42px;
    }
    
    .temp-low-main {
        font-size: 18px;
    }
}

#weather-effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

#weather-sun {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
}

.weather-effects-container {
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    #weather-effects-canvas,
    #weather-sun {
        display: none;
    }
}

@media (max-width: 480px) {
    #weather-sun {
        top: 80px;
        right: 20px;
    }
}

.light #weather-effects-canvas {
    opacity: 0.6 !important;
}

.light .sun-core {
    background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
}

.light .sun-rays {
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 10deg,
        rgba(255, 215, 0, 0.2) 10deg 20deg
    );
}

.light .sun-glow {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
}
