/* Weather Widget CSS */

.weather-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.weather-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.weather-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weather-card:hover::before {
    opacity: 1;
}

.weather-city {
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
}

.weather-desc {
    font-size: 0.75rem;
    color: #D1D5DB;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9CA3AF;
}

.weather-humidity,
.weather-wind {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.weather-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.weather-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: #FFD700;
}

.weather-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #FFD700;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.weather-error {
    color: #EF4444;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .weather-card {
        padding: 0.75rem;
    }
    
    .weather-temp {
        font-size: 1.25rem;
    }
    
    .weather-city {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .weather-details {
        flex-direction: column;
        gap: 0.25rem;
    }
}
