﻿/* ==========================================================
   DASHBOARD — WEATHER (separate file)
   File: wwwroot/css/dashboard-weather.css
   Scope: Weather pill + Set Location button only
   Depends on tokens in .dashboard-wrapper
   ========================================================== */

/* Weather container (right side of header) */
.dashboard-wrapper .dashboard-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    margin-left: auto;
    
}

/* Cluster wrapper (future-proof if you add forecast chips) */
.dashboard-wrapper .wx-cluster {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* Main pill */
.dashboard-wrapper .wx-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    height: 40px;
    padding: 0 .7rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    user-select: none;
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}



/* Icon bubble */
.dashboard-wrapper .wx-ico {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.05);
    color: #475569;
}

    .dashboard-wrapper .wx-ico i {
        font-size: 1.2rem;
    }

/* Temp + location */
.dashboard-wrapper .wx-temp {
    font-weight: 600;
    color: #999;
    font-variant-numeric: tabular-nums;
    font-size: 1.5rem;
}

.wx-weather-wrap {
    display: flex;
    flex-direction: column;
}

.wx-location {
    font-size: .82rem;
    font-weight: 450;
    color: var(--text-muted);
    white-space: nowrap;
    max-width: 220px;
}

/* Small icon button inside the pill */
.dashboard-wrapper .wx-refresh-ico {
    border: 0;
    background: transparent;
    color: #64748b;
    padding: .2rem .25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

    .dashboard-wrapper .wx-refresh-ico:hover {
        background: rgba(37,99,235,.10);
        color: var(--accent-strong);
        transform: translateY(-1px);
    }

/* “Set Location” fallback button */
.dashboard-wrapper .btn-set-location {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 40px;
    padding: 0 .8rem;
    border-radius: var(--r-pill);
    border: 1px dashed rgba(148,163,184,.55);
    background: rgba(255,255,255,.70);
    backdrop-filter: blur(10px);
    color: #475569;
    font-size: .85rem;
    font-weight: 650;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

    .dashboard-wrapper .btn-set-location:hover {
        background: rgba(219,234,254,.70);
        border-color: rgba(37,99,235,.55);
        color: var(--accent-strong);
        transform: translateY(-1px);
    }

/* ==========================================================
   Weather tones (used by your iconTone: wx-sun, wx-moon, etc.)
   ========================================================== */

.dashboard-wrapper .wx-ico.wx-sun {
    background: rgba(250,204,21,.18);
    color: #92400e;
}

.dashboard-wrapper .wx-ico.wx-moon {
    background: rgba(99,102,241,.14);
    color: #3730a3;
}

.dashboard-wrapper .wx-ico.wx-rain {
    background: rgba(59,130,246,.14);
    color: #1d4ed8;
}

.dashboard-wrapper .wx-ico.wx-snow {
    background: rgba(226,232,240,.70);
    color: #334155;
}

.dashboard-wrapper .wx-ico.wx-cloud {
    background: rgba(148,163,184,.18);
    color: #334155;
}

.dashboard-wrapper .wx-ico.wx-fog {
    background: rgba(203,213,225,.50);
    color: #475569;
}

.dashboard-wrapper .wx-ico.wx-storm {
    background: rgba(239,68,68,.12);
    color: #991b1b;
}

/* Optional: tiny mobile fit */
@media (max-width: 900px) {
    .dashboard-wrapper .dashboard-header-right {
        justify-content: flex-start;
    }

    .dashboard-wrapper .wx-location {
        max-width: 160px;
    }
}



