/* ====================================================================
   Weather widget — minimal, unobtrusive
   Just the corner badge. Background floating icons use the existing
   sparkles system (.sparkle), only the symbols are swapped by weather.js.
   ==================================================================== */

.weather-badge {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: #4a4a6a;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    box-shadow:
        0 4px 16px rgba(100, 100, 150, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    user-select: none;
}

.weather-badge.weather-show {
    opacity: 1;
    transform: translateY(0);
}

.weather-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.weather-temp {
    font-weight: 600;
    font-size: 1.05rem;
    color: #3a3a5a;
}

.weather-city {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-left: 0.1rem;
}

.weather-desc {
    font-size: 0.9rem;
    opacity: 0.65;
    font-style: italic;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .weather-badge {
        transition: opacity 0.01ms;
    }
}

/* Mobile: smaller, less prominent */
@media (max-width: 640px) {
    .weather-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
    }
    .weather-icon,
    .weather-temp { font-size: 0.95rem; }
    .weather-city { font-size: 0.85rem; }
    .weather-desc { display: none; }
}
