/* 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)) 
            drop-shadow(0 0 20px rgba(255,255,255,0.4))
            brightness(1.15) saturate(1.2);
    animation: float 6s ease-in-out infinite, rotate 20s linear infinite;
    /* Brighter, more vibrant with white glow for dark 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) 
            drop-shadow(0 0 8px rgba(255,255,255,0.3));
    animation: shimmer 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hourly-icon:hover {
    animation: bounce 0.6s ease;
    transform: scale(1.1);
}

.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) 
            drop-shadow(0 0 10px rgba(255,255,255,0.3));
    animation: pulse 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.forecast-icon:hover {
    transform: scale(1.15) rotate(5deg);
}

.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) 
            drop-shadow(0 0 10px rgba(255,255,255,0.3));
    animation: pulse 4s ease-in-out infinite;
}

.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;
}

/* ========================================
   ICON ANIMATIONS & EFFECTS
======================================== */

/* Floating animation for main weather icon */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

/* Pulse animation for smaller icons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Shimmer effect for hourly icons */
@keyframes shimmer {
    0% {
        filter: brightness(1.15) saturate(1.2) 
                drop-shadow(0 0 8px rgba(255,255,255,0.3));
    }
    50% {
        filter: brightness(1.25) saturate(1.3) 
                drop-shadow(0 0 15px rgba(255,255,255,0.6));
    }
    100% {
        filter: brightness(1.15) saturate(1.2) 
                drop-shadow(0 0 8px rgba(255,255,255,0.3));
    }
}

/* Bounce effect on hover */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* UV Index color coding */
.uv-value[data-uv="0"],
.uv-value[data-uv="1"],
.uv-value[data-uv="2"] {
    color: #4ade80; /* Low - Green */
    font-weight: 600;
}

.uv-value[data-uv="3"],
.uv-value[data-uv="4"],
.uv-value[data-uv="5"] {
    color: #fbbf24; /* Moderate - Yellow */
    font-weight: 600;
}

.uv-value[data-uv="6"],
.uv-value[data-uv="7"] {
    color: #fb923c; /* High - Orange */
    font-weight: 700;
}

.uv-value[data-uv="8"],
.uv-value[data-uv="9"],
.uv-value[data-uv="10"] {
    color: #ef4444; /* Very High - Red */
    font-weight: 700;
}

.uv-value[data-uv="11"],
.uv-value[data-uv="12"],
.uv-value[data-uv="13"],
.uv-value[data-uv="14"],
.uv-value[data-uv="15"] {
    color: #dc2626; /* Extreme - Dark Red */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}


/* ===================================
   ANIMATED WEATHER ICONS & EFFECTS
   =================================== */

/* Base animation for all weather icons */
.weather-icon-large,
.hourly-icon,
.forecast-icon,
.compact-icon {
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.5)) 
            drop-shadow(0 0 8px rgba(255,255,255,0.3))
            brightness(1.15);
    animation: iconPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

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

/* Sun animation - bright glow and rotation */
img[src*="01d"].weather-icon-large,
img[src*="01d"].hourly-icon,
img[src*="01d"].forecast-icon {
    filter: drop-shadow(0 0 10px rgba(255,200,0,0.8))
            drop-shadow(0 0 20px rgba(255,200,0,0.4))
            brightness(1.25);
    animation: sunPulse 3s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 10px rgba(255,200,0,0.8))
                drop-shadow(0 0 20px rgba(255,200,0,0.4))
                brightness(1.25);
    }
    50% { 
        transform: scale(1.08) rotate(5deg); 
        filter: drop-shadow(0 0 15px rgba(255,200,0,1))
                drop-shadow(0 0 30px rgba(255,200,0,0.6))
                brightness(1.35);
    }
}

/* Moon animation - soft blue glow */
img[src*="01n"].weather-icon-large,
img[src*="01n"].hourly-icon,
img[src*="01n"].forecast-icon,
img[src*="02n"].weather-icon-large,
img[src*="02n"].hourly-icon,
img[src*="02n"].forecast-icon {
    filter: drop-shadow(0 0 10px rgba(200,200,255,0.8))
            drop-shadow(0 0 20px rgba(150,150,255,0.4))
            brightness(1.3);
    animation: moonGlow 4s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(200,200,255,0.8))
                drop-shadow(0 0 20px rgba(150,150,255,0.4))
                brightness(1.3);
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(200,200,255,1))
                drop-shadow(0 0 30px rgba(150,150,255,0.6))
                brightness(1.4);
    }
}

/* Rain animation - bounce effect */
img[src*="09"].weather-icon-large,
img[src*="09"].hourly-icon,
img[src*="09"].forecast-icon,
img[src*="10"].weather-icon-large,
img[src*="10"].hourly-icon,
img[src*="10"].forecast-icon {
    filter: drop-shadow(0 0 5px rgba(100,150,255,0.7))
            drop-shadow(0 0 10px rgba(100,150,255,0.4))
            brightness(1.15);
    animation: rainBounce 1.5s ease-in-out infinite;
}

@keyframes rainBounce {
    0%, 100% { 
        transform: translateY(0);
        filter: drop-shadow(0 0 5px rgba(100,150,255,0.7))
                drop-shadow(0 0 10px rgba(100,150,255,0.4))
                brightness(1.15);
    }
    50% { 
        transform: translateY(-4px);
        filter: drop-shadow(0 0 8px rgba(100,150,255,0.9))
                drop-shadow(0 0 15px rgba(100,150,255,0.5))
                brightness(1.2);
    }
}

/* Cloud float animation */
img[src*="02d"].weather-icon-large,
img[src*="02d"].hourly-icon,
img[src*="02d"].forecast-icon,
img[src*="03"].weather-icon-large,
img[src*="03"].hourly-icon,
img[src*="03"].forecast-icon,
img[src*="04"].weather-icon-large,
img[src*="04"].hourly-icon,
img[src*="04"].forecast-icon {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.6))
            brightness(1.15);
    animation: cloudFloat 4s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%, 100% { 
        transform: translateX(0);
    }
    50% { 
        transform: translateX(5px);
    }
}

/* Thunder/Storm animation - lightning flash */
img[src*="11"].weather-icon-large,
img[src*="11"].hourly-icon,
img[src*="11"].forecast-icon {
    filter: drop-shadow(0 0 8px rgba(255,255,0,0.8))
            drop-shadow(0 0 15px rgba(255,255,0,0.5))
            brightness(1.2);
    animation: thunder 2s ease-in-out infinite;
}

@keyframes thunder {
    0%, 85%, 100% { 
        opacity: 1; 
        filter: drop-shadow(0 0 8px rgba(255,255,0,0.8))
                drop-shadow(0 0 15px rgba(255,255,0,0.5))
                brightness(1.2);
    }
    88%, 92% { 
        opacity: 0.7; 
        filter: drop-shadow(0 0 25px rgba(255,255,0,1))
                drop-shadow(0 0 40px rgba(255,255,0,0.8))
                brightness(1.6);
    }
}

/* Snow animation - gentle fall */
img[src*="13"].weather-icon-large,
img[src*="13"].hourly-icon,
img[src*="13"].forecast-icon {
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.9))
            drop-shadow(0 0 15px rgba(255,255,255,0.6))
            brightness(1.2);
    animation: snowFall 3s ease-in-out infinite;
}

@keyframes snowFall {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    50% { 
        transform: translateY(4px) rotate(5deg);
    }
}

/* Mist/Fog animation - fade in/out */
img[src*="50"].weather-icon-large,
img[src*="50"].hourly-icon,
img[src*="50"].forecast-icon {
    filter: drop-shadow(0 0 10px rgba(200,200,200,0.8))
            brightness(1.1);
    animation: mistFade 3s ease-in-out infinite;
}

@keyframes mistFade {
    0%, 100% { 
        opacity: 0.9;
        filter: drop-shadow(0 0 10px rgba(200,200,200,0.8))
                brightness(1.1);
    }
    50% { 
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(200,200,200,1))
                brightness(1.15);
    }
}

/* Hover effect - enlarge on hover */
.weather-icon-large:hover,
.hourly-icon:hover,
.forecast-icon:hover,
.compact-icon:hover {
    transform: scale(1.15) !important;
    cursor: pointer;
}

/* Extra border glow for dark icons on gradient background */
.weather-icon-container img,
.hourly-item img,
.forecast-item img,
.compact-icon {
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255,255,255,0.1) 0%,
        rgba(255,255,255,0) 70%
    );
}

/* ===================================
   UV INDEX STYLING
   =================================== */

.uv-value {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5), 
                 0 0 5px rgba(0,0,0,0.3);
}

/* UV Index color coding */
.uv-value[data-uv="0"],
.uv-value[data-uv="1"],
.uv-value[data-uv="2"] {
    color: #4ade80; /* Green - Low */
}

.uv-value[data-uv="3"],
.uv-value[data-uv="4"],
.uv-value[data-uv="5"] {
    color: #fbbf24; /* Yellow - Moderate */
}

.uv-value[data-uv="6"],
.uv-value[data-uv="7"] {
    color: #fb923c; /* Orange - High */
}

.uv-value[data-uv="8"],
.uv-value[data-uv="9"],
.uv-value[data-uv="10"] {
    color: #ef4444; /* Red - Very High */
}

.uv-value[data-uv="11"],
.uv-value[data-uv="12"],
.uv-value[data-uv="13"],
.uv-value[data-uv="14"],
.uv-value[data-uv="15"] {
    color: #c026d3; /* Purple - Extreme */
}

/* ==========================================
   HORIZONTAL WEATHER WIDGET (thoitiet.io style)
   ========================================== */

.vn-weather-horizontal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.horizontal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 16px;
    color: white;
}

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

.horizontal-content {
    background: transparent;
}

.horizontal-container {
    display: grid;
    grid-template-columns: 1fr 580px;
    gap: 20px;
}

/* ==========================================
   TODAY CARD (Large Left Card)
   ========================================== */

.today-card {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.today-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.today-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.city-name-today {
    font-weight: 700;
}

.live-badge {
    background: rgba(76, 175, 80, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.today-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.today-icon-temp {
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-weather-icon {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)) brightness(1.2);
}

.today-temp-large {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.today-description {
    flex: 1;
}

.weather-desc-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: capitalize;
}

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

/* Today Details Grid */
.today-details-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.detail-col {
    text-align: center;
}

.detail-icon-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.detail-emoji {
    font-size: 24px;
}

.detail-name {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 500;
}

.detail-data {
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================
   MINI FORECAST CARDS (Right 3 Cards)
   ========================================== */

.forecast-mini-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mini-card {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 80px 70px 80px 1fr 100px;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mini-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.mini-date {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.mini-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.1)) brightness(1.1);
}

.mini-rain {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.rain-icon {
    font-size: 16px;
}

.rain-amount {
    font-weight: 500;
}

.mini-desc {
    font-size: 14px;
    color: #555;
    text-transform: capitalize;
    font-weight: 500;
}

.mini-temp {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: right;
}

.temp-low {
    color: #2196F3;
}

.temp-high {
    color: #F44336;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .horizontal-container {
        grid-template-columns: 1fr;
    }
    
    .forecast-mini-cards {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .mini-card {
        min-width: 300px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
        gap: 10px;
    }
    
    .mini-date {
        font-size: 15px;
    }
    
    .mini-icon {
        margin: 0 auto;
    }
    
    .mini-temp {
        text-align: center;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .today-details-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .today-main {
        flex-direction: column;
        text-align: center;
    }
    
    .today-icon-temp {
        flex-direction: column;
    }
    
    .today-temp-large {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    .today-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .today-card {
        padding: 20px 15px;
    }
    
    .mini-card {
        min-width: 250px;
        padding: 12px 15px;
    }
}
