/* 🌤️ PULSAR WEATHER WIDGET STYLES v2.0 */

.weather-widget {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: fadeInScale 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.weather-widget-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-temp {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.weather-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: capitalize;
    line-height: 1;
}

/* Animação de entrada */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover effect */
.weather-widget:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(142, 45, 226, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 45, 226, 0.3);
    transition: all 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .weather-widget {
        top: 8px;
        right: 8px;
        padding: 6px 10px;
        border-radius: 10px;
    }
    
    .weather-icon {
        width: 30px;
        height: 30px;
    }
    
    .weather-temp {
        font-size: 1rem;
    }
    
    .weather-desc {
        font-size: 0.7rem;
    }
}

/* Loading state */
.weather-widget.loading {
    opacity: 0.6;
}

.weather-widget.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Fallback indicator */
.weather-widget.fallback {
    border-color: rgba(255, 165, 0, 0.3);
}

.weather-widget.fallback::before {
    content: '⚠️';
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 12px;
    background: rgba(255, 165, 0, 0.9);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Variações de clima */
.weather-widget.clear-day { border-color: rgba(255, 193, 7, 0.5); }
.weather-widget.clear-night { border-color: rgba(63, 81, 181, 0.5); }
.weather-widget.rain { border-color: rgba(33, 150, 243, 0.5); }
.weather-widget.clouds { border-color: rgba(158, 158, 158, 0.5); }
.weather-widget.snow { border-color: rgba(229, 229, 229, 0.5); }
.weather-widget.storm { border-color: rgba(156, 39, 176, 0.5); }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .weather-widget {
        animation: none;
    }
    
    .weather-widget:hover {
        transform: none;
    }
}
