/* VN Weather Professional Styles */
.vn-weather-professional {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    color: white;
}

/* Loading State */
.weather-loading {
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Header */
.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    gap: 20px;
}

.location-info {
    flex: 1;
}

.city-name {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 5px 0 !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3) !important;
}

.update-time {
    font-size: 13px !important;
    opacity: 0.8 !important;
    margin: 0 !important;
    color: #ffffff !important;
    text-align: left !important;
}

.city-selector {
    flex-shrink: 0;
}

.city-dropdown {
    padding: 5px 50px 5px 20px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    min-width: 260px !important;
    max-width: 100% !important;
    line-height: 1.5 !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
}

.city-dropdown:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.city-dropdown option {
    background: #667eea;
    color: white;
    padding: 10px;
}

/* Current Weather */
.weather-current {
    padding: 30px;
}

.current-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.weather-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.weather-right {
    flex-shrink: 0;
    text-align: right;
}

.weather-icon-container {
    flex-shrink: 0;
}

.weather-icon-large {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)) brightness(1.15) saturate(1.2);
    /* Brighter and more vibrant colors, especially for sun icons */
}

.temp-container {
    flex: 1;
}

.temp-value {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.weather-desc {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 5px 0;
    text-transform: capitalize;
}

.date-display {
    margin: 0;
    text-align: right;
}

.solar-date {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    margin-bottom: 8px;
    line-height: 1.4;
}

.lunar-date {
    font-size: 15px;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    font-style: italic;
    line-height: 1.4;
}

.feels-like {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.feels-like span {
    font-weight: 600;
}

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

.detail-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s, background 0.3s;
}

.detail-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.detail-icon {
    font-size: 32px;
    line-height: 1;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
}

/* AQI Colors - text only, no border/background */
.aqi-value {
    font-size: 20px;
    font-weight: 700;
    transition: color 0.3s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5), 0 0 5px rgba(0,0,0,0.3);
}

.aqi-value[data-aqi="1"] {
    color: #4caf50;
}

.aqi-value[data-aqi="2"] {
    color: #8bc34a;
}

.aqi-value[data-aqi="3"] {
    color: #ffc107;
}

.aqi-value[data-aqi="4"] {
    color: #ff9800;
}

.aqi-value[data-aqi="5"] {
    color: #f44336;
}

/* Temp Range */
.temp-range {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.15);
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
}

.temp-separator {
    opacity: 0.5;
}

/* Hourly Forecast Section */
.weather-hourly {
    padding: 30px;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hourly-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hourly-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

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

.hourly-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.hourly-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.hourly-grid {
    display: flex;
    gap: 10px;
    min-width: min-content;
    padding-bottom: 10px;
}

.hourly-item {
    flex: 0 0 auto;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    min-width: 80px;
    transition: transform 0.3s, background 0.3s;
}

.hourly-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0px 0px 6px #ffffffa6;
    border: 1px solid #b6aee4;
}

.hourly-item.hourly-current {
    background: rgba(255,215,0,0.25);
    border: 2px solid rgba(255,215,0,0.6);
    box-shadow: 0 0 15px rgba(255,215,0,0.4);
}

.hourly-item.hourly-past {
    opacity: 0.6;
    background: rgba(255,255,255,0.08);
}

.hourly-time {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hourly-icon {
    width: 45px;
    height: 45px;
    margin: 8px auto;
    filter: brightness(1.15) saturate(1.2);
}

.hourly-temp {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 5px;
}

.hourly-desc {
    font-size: 10px;
    opacity: 0.8;
    text-transform: capitalize;
}

.hourly-rain {
    font-size: 11px;
    margin-top: 5px;
    color: #4fc3f7;
}

/* Forecast Section */
.weather-forecast {
    padding: 30px;
    background: rgba(0,0,0,0.1);
}

.forecast-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.forecast-day {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.3s, background 0.3s, border 0.3s;
    cursor: pointer;
}

.forecast-day.today {
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.forecast-day.active {
    background: rgba(255,255,255,0.35);
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.forecast-day:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.forecast-date {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.forecast-icon {
    width: 50px;
    height: 50px;
    margin: 10px auto;
    filter: brightness(1.15) saturate(1.2);
}

.forecast-temp {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 5px;
}

.forecast-desc {
    font-size: 12px;
    opacity: 0.8;
    text-transform: capitalize;
}

/* Footer */
.weather-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0,0,0,0.2);
    font-size: 12px;
    opacity: 0.8;
}

.tier-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    font-weight: 600;
    margin-right: 10px;
}

/* Error State */
.vn-weather-error {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    color: white;
    margin: 20px auto;
    max-width: 800px;
}

.vn-weather-error h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
}

.vn-weather-error p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .vn-weather-professional {
        border-radius: 15px;
        margin: 10px;
    }
    
    .weather-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .city-selector {
        width: 100%;
    }
    
    .city-dropdown {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .city-name {
        font-size: 24px;
    }
    
    .current-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .weather-left {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .weather-right {
        width: 100%;
        text-align: center;
    }
    
    .date-display {
        text-align: center;
    }
    
    .temp-value {
        font-size: 56px;
    }
    
    .weather-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .forecast-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .forecast-day {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .weather-header {
        padding: 20px 15px;
    }
    
    .weather-current {
        padding: 20px 15px;
    }
    
    .temp-value {
        font-size: 48px;
    }
    
    .weather-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Compact Widget Style */
.vn-weather-compact {
    display: inline-block;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 250px;
}

.vn-weather-compact .compact-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vn-weather-compact .compact-temp {
    font-size: 42px;
    font-weight: 700;
    flex: 1;
}

.vn-weather-compact .compact-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    filter: brightness(1.15) saturate(1.2);
}

.vn-weather-compact .compact-desc {
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 5px;
}

.vn-weather-compact .compact-city {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    opacity: 0.95;
}
