/* Weather Dashboard - Professional Styles */

/* Weather-specific variables that work with site themes */
.weather-page {
    --weather-glass-bg: var(--surface-color);
    --weather-glass-border: var(--border-color);
    --weather-backdrop-blur: none;
    --weather-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --weather-transition: all 0.3s ease;
}

/* Theme integration for weather backgrounds */
[data-theme="dark"] .weather-page {
    --weather-glass-bg: var(--surface-color);
    --weather-glass-border: var(--border-color);
    --weather-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Dynamic Weather Background */
.weather-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: var(--weather-transition);
    opacity: 0.2;
}

.weather-background.sunny {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.weather-background.cloudy {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.weather-background.rainy {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
}

.weather-background.snowy {
    background: linear-gradient(135deg, #ddd6fe 0%, #8b5cf6 100%);
}

.weather-background.stormy {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    opacity: 0.95;
    transition: var(--weather-transition);
}

.background-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.1), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: particles 20s linear infinite;
    opacity: 0.6;
}

@keyframes particles {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-150px); }
}

/* Base Weather Container - Now uses main container structure for proper centering */
.weather-container {
    width: 100%;
    max-width: none;
    padding: 0;
}

/* Welcome State Styles */
.weather-welcome {
    margin-bottom: 2rem;
}

.welcome-content {
    text-align: center;
    padding: 3rem 2rem;
}

.welcome-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.welcome-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.welcome-content > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.feature-item span {
    font-weight: 500;
    color: var(--text-color);
}

/* Glass Card Effect */
.glass-card {
    background: var(--weather-glass-bg);
    border: 1px solid var(--weather-glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--weather-shadow);
    transition: var(--weather-transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Weather Header */
.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.weather-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-title-icon {
    background: linear-gradient(45deg, var(--primary-color), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.weather-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.header-controls {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.control-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--weather-transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.location-control-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
}

.location-control-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    z-index: 2;
}

.search-input {
    flex: 1;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--weather-transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    margin-left: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--weather-transition);
}

.search-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Search Suggestions with Autocomplete */
.search-suggestions {
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--weather-shadow);
    display: none;
    z-index: 10;
}

.search-suggestions.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.suggestion-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--weather-transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestion-item:hover {
    background: var(--primary-color);
    color: white;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    color: var(--text-muted);
}

.suggestion-text {
    flex: 1;
}

.suggestion-country {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Quick Cities */
.quick-cities {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-city-label {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.cities-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.city-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--weather-transition);
    font-size: 0.9rem;
}

.city-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Loading States */
.weather-loading, .weather-error {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-content, .error-content {
    max-width: 400px;
    margin: 0 auto;
}

.loading-spinner-weather {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-progress {
    background: var(--border-color);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    border-radius: 10px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.error-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--weather-transition);
}

.retry-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Current Weather */
.current-weather-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.location-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.coordinates {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.weather-status {
    text-align: center;
}

.weather-icon-container {
    position: relative;
    margin-bottom: 1rem;
}

.weather-icon {
    font-size: 4rem;
    background: linear-gradient(45deg, var(--primary-color), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

.weather-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent);
    animation: pulse 2s infinite;
}

/* Current Weather Main */
.current-weather-main {
    text-align: center;
    margin-bottom: 2rem;
}

.temperature-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.main-temp {
    font-size: 5rem;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1;
}

.temp-unit {
    font-size: 2rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.feels-like {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Weather Details Grid */
.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--weather-transition);
    cursor: pointer;
}

.detail-card:hover {
    transform: translateY(-3px);
    background: var(--surface-color);
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary-color), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.detail-extra {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Sun Times */
.sun-times {
    display: flex;
    justify-content: space-around;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.sun-time {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.sun-time i {
    font-size: 2rem;
    color: var(--primary-color);
}

.sun-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sun-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Weather Alerts */
.weather-alerts {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Air Quality Section */
.air-quality-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.aqi-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.aqi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.aqi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.aqi-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

.aqi-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* Weather Recommendations */
.weather-recommendations {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.recommendations-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2196f3;
    font-weight: 600;
    margin-bottom: 1rem;
}

.recommendations-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
}

.recommendation-item i {
    color: #2196f3;
    font-size: 1rem;
}

/* Weather Actions */
.weather-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

/* Responsive Design for New Features */
@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .location-control-btn {
        order: -1;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .weather-alerts,
    .air-quality-section,
    .weather-recommendations {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .aqi-value {
        font-size: 2rem;
    }
    
    .weather-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .recommendation-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .alert-item {
        padding: 0.375rem;
        font-size: 0.8rem;
    }
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-btn.favorited {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
    color: #f44336;
}

.action-btn.favorited i {
    color: #f44336;
}

/* Forecast Sections */
.forecast-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.section-header i {
    color: var(--primary-color);
}

/* Hourly Forecast */
.hourly-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.hourly-scroll::-webkit-scrollbar {
    height: 8px;
}

.hourly-scroll::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.hourly-item {
    flex: 0 0 120px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--weather-transition);
    cursor: pointer;
}

.hourly-item:hover {
    transform: translateY(-5px);
    background: var(--surface-color);
}

.hourly-time {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

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

.hourly-temp {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.hourly-details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Daily Forecast - Horizontal Layout like Hourly */
.daily-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.daily-container::-webkit-scrollbar {
    height: 8px;
}

.daily-container::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.daily-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.daily-item {
    flex: 0 0 160px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--weather-transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 220px;
}

.daily-item:hover {
    transform: translateY(-5px);
    background: var(--surface-color);
}

.daily-day {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.daily-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

.daily-temps {
    margin-bottom: 1rem;
}

.daily-high {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 1rem;
}

.daily-low {
    color: var(--text-muted);
}

.daily-details {
    flex: 0 0 150px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Weather Charts */
.weather-charts {
    margin-bottom: 2rem;
}

.charts-container {
    display: grid;
    gap: 2rem;
}

.chart-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.chart-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    border-radius: 12px;
}

/* Air Quality Section */
.air-quality-section {
    margin-bottom: 2rem;
}

.air-quality-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.aqi-main {
    text-align: center;
}

.aqi-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aqi-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.aqi-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.aqi-detail {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.aqi-component {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.aqi-component-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Last Updated */
.last-updated {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .weather-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        justify-content: center;
    }
    
    .header-controls {
        justify-content: center;
    }
    
    .current-weather-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .main-temp {
        font-size: 4rem;
    }
    
    .weather-details-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .detail-card {
        padding: 1rem;
    }
    
    .daily-item {
        flex: 0 0 140px;
        min-height: 200px;
        padding: 1rem 0.5rem;
    }
    
    .daily-day {
        font-size: 0.8rem;
    }
    
    .daily-icon {
        font-size: 2rem;
    }
    
    .daily-description {
        font-size: 0.75rem;
    }
    
    .air-quality-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-cities {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .cities-grid {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .chart-container {
        height: 280px;
        padding: 0.5rem;
    }
    
    .chart-card {
        padding: 1rem;
    }
    
    .chart-header h3 {
        font-size: 1.1rem;
    }
    
    .city-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .welcome-features {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .welcome-content {
        padding: 2rem 1rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .welcome-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .weather-title h1 {
        font-size: 1.8rem;
    }
    
    .main-temp {
        font-size: 3.5rem;
    }
    
    .weather-details-grid {
        grid-template-columns: 1fr;
    }
    
    .hourly-item {
        flex: 0 0 100px;
    }
    
    .sun-times {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Theme Modal Integration */
.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme-modal.open {
    opacity: 1;
    visibility: visible;
}

.theme-modal-content {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--weather-shadow);
}

.theme-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.theme-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--weather-transition);
}

.theme-modal-close:hover {
    color: var(--text-color);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.theme-option {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--weather-transition);
    text-align: center;
}

.theme-option:hover,
.theme-option.active {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 0 auto 0.5rem;
}

.theme-preview-default { background: linear-gradient(45deg, #2563eb, #3b82f6); }
.theme-preview-dark { background: linear-gradient(45deg, #1e293b, #334155); }
.theme-preview-blue { background: linear-gradient(45deg, #0ea5e9, #0284c7); }
.theme-preview-green { background: linear-gradient(45deg, #10b981, #059669); }
.theme-preview-purple { background: linear-gradient(45deg, #8b5cf6, #7c3aed); }
.theme-preview-orange { background: linear-gradient(45deg, #f97316, #ea580c); }
.theme-preview-rose { background: linear-gradient(45deg, #f43f5e, #e11d48); }
.theme-preview-emerald { background: linear-gradient(45deg, #059669, #047857); }
.theme-preview-indigo { background: linear-gradient(45deg, #6366f1, #4f46e5); }
.theme-preview-amber { background: linear-gradient(45deg, #f59e0b, #d97706); }
.theme-preview-teal { background: linear-gradient(45deg, #14b8a6, #0f766e); }
.theme-preview-crimson { background: linear-gradient(45deg, #dc2626, #b91c1c); }
.theme-preview-midnight-neon { background: linear-gradient(45deg, #0D0D0D, #00FFC6); }
.theme-preview-sunset-horizon { background: linear-gradient(45deg, #2D132C, #FF6B6B); }
.theme-preview-arctic-light { background: linear-gradient(45deg, #F4F9F9, #00B4D8); }
.theme-preview-cyber-purple { background: linear-gradient(45deg, #1A1B41, #6C63FF); }
.theme-preview-forest-glow { background: linear-gradient(45deg, #0B3D2E, #06D6A0); }

/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--weather-transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--weather-transition);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Touch and Mobile Enhancements */
@media (hover: none) {
    .detail-card:hover,
    .hourly-item:hover,
    .daily-item:hover {
        transform: none;
    }
    
    .detail-card:active,
    .hourly-item:active,
    .daily-item:active {
        transform: scale(0.98);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        background: var(--surface-color);
        border: 2px solid var(--text-color);
    }
    
    .weather-details-grid .detail-card {
        border: 2px solid var(--text-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .background-particles {
        animation: none;
    }
    
    .weather-icon {
        animation: none;
    }
}