/* ========================================
   The Local Guy - Weather widget
   ======================================== */

/* Weather Widget - Thermometer Style */
.weather-widget {
    width: 20vw;
    min-width: 220px;
    max-width: 280px;
    min-height: 400px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--color-accent), transparent 30%);
    animation: rotate 8s linear infinite;
    opacity: 0.1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.weather-content {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.weather-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weather-icon {
    font-size: 1.8rem;
}

.weather-location {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* Snow Toggle Button */
.snow-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.snow-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.snow-toggle.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--color-aurora-blue);
    color: var(--color-aurora-blue);
}

.snow-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.snow-toggle.active .snow-icon {
    animation: snowSpin 2s linear infinite;
}

@keyframes snowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
