/* Styles pour le Widget Météo */

.weather-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.weather-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.weather-card {
    text-align: center;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.weather-city {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.weather-icon img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.weather-icon:hover img {
    transform: scale(1.1);
}

.weather-body {
    margin-bottom: 15px;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.weather-desc {
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: capitalize;
    opacity: 0.9;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    opacity: 0.8;
}

.weather-humidity,
.weather-wind {
    display: flex;
    align-items: center;
    gap: 5px;
}

.weather-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.weather-update {
    opacity: 0.7;
    font-size: 0.75rem;
}

/* Animation de rotation des villes */
.weather-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Version fallback */
.weather-fallback {
    opacity: 0.8;
}

.weather-fallback .weather-temp {
    font-size: 1.5rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .weather-widget {
        padding: 15px;
        margin: 10px 0;
    }
    
    .weather-temp {
        font-size: 2rem;
    }
    
    .weather-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .weather-details {
        flex-direction: column;
        gap: 5px;
    }
}

/* Thème sombre */
@media (prefers-color-scheme: dark) {
    .weather-widget {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
}

/* Animation de chargement */
.weather-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.weather-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 