/* VERV Weather Widget Styles - Fixed Version */
.verv-weather-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    position: relative;
    min-height: 280px;
    transition: all 0.3s ease;
}

.verv-weather-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Weather Header */
.weather-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-location {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.weather-time {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.weather-source {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

/* Main Weather Content */
.weather-content {
    padding: 20px 24px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

/* Temperature Section */
.weather-temperature {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.temperature-value {
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2px;
}

.temperature-unit {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.8;
    margin-left: 4px;
}

/* Weather Icon */
.weather-icon {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* Weather Description */
.weather-description {
    text-align: center;
    margin: 16px 0;
}

.weather-condition {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.weather-feels-like {
    font-size: 14px;
    opacity: 0.8;
}

/* Weather Details Grid */
.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.detail-value {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

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

.detail-unit {
    font-size: 14px;
    opacity: 0.7;
    margin-left: 2px;
}

/* Loading State */
.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 40px 24px;
    text-align: center;
}

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

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

.loading-text {
    font-size: 16px;
    opacity: 0.9;
}

/* Error State */
.weather-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.error-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.error-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-message {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 300px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .verv-weather-widget {
        margin: 0 16px;
        max-width: none;
    }
    
    .weather-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    
    .weather-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .temperature-value {
        font-size: 48px;
    }
    
    .weather-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .weather-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .weather-detail {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .weather-detail:last-child {
        border-bottom: none;
    }
    
    .detail-value {
        font-size: 18px;
    }
}