/* Weather Widget Styles */
#weatherWidget {
    position: fixed;
    top: 5rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    /* Initially allow clicks through if invisible/loading */
}

#weatherWidget.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#weatherWidget:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.weather-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.weather-emoji {
    font-size: 3rem;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: weather-pulse 4s ease-in-out infinite;
}

/* Pulsing glow animation for weather emoji */
@keyframes weather-pulse {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 4px 12px var(--accent-glow));
        transform: scale(1.05);
    }
}

.weather-info {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.weather-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: capitalize;
    margin-top: 0.25rem;
}

.weather-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    #weatherWidget {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
    }

    .weather-temp {
        font-size: 1.25rem;
    }

    .weather-emoji {
        font-size: 2rem;
    }
}