/* کارت هواشناسی شهرستان (partials/weather-card.blade.php) */
.wx {
    --wx-ink: #0f172a;
    --wx-muted: #475569;
    --wx-line: rgba(148, 163, 184, .4);
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(20, 184, 166, .1)), #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
    color: var(--wx-ink);
    line-height: 1.8;
}
.wx[hidden] { display: none; }
.wx__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.wx__title { margin: 0; font-size: 1.1rem; font-weight: 900; }
.wx__time { font-size: .78rem; color: var(--wx-muted); }
.wx__time em { font-style: normal; color: #b45309; }
.wx__status { margin: 0; color: var(--wx-muted); font-size: .92rem; }

.wx__now {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 16px;
    padding: 14px;
    border: 1px solid rgba(14, 165, 233, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
}
.wx__icon { font-size: 2.6rem; line-height: 1; }
.wx__temp { font-size: 2.6rem; font-weight: 900; line-height: 1; color: #0f766e; }
.wx__temp small { font-size: 1rem; font-weight: 800; margin-inline-start: 2px; }
.wx__cond { display: grid; gap: 2px; min-width: 0; font-size: .9rem; color: var(--wx-muted); }
.wx__cond strong { color: var(--wx-ink); font-size: 1.02rem; }

.wx__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin: 0;
}
.wx__grid > div { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(148, 163, 184, .25); }
.wx__grid dt { font-size: .76rem; color: var(--wx-muted); font-weight: 700; }
.wx__grid dd { margin: 0; font-size: .92rem; font-weight: 800; }

small.wx__sub-val { display: block; font-size: .76rem; font-weight: 600; color: var(--wx-muted); }
.wx__sub { margin: 4px 0 0; font-size: .98rem; font-weight: 900; }

.wx__hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wx__hours li {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(148, 163, 184, .25);
    font-size: .82rem;
}
.wx__h-time { color: var(--wx-muted); font-weight: 700; }
.wx__h-icon { font-size: 1.4rem; line-height: 1.3; }
.wx__h-temp { font-weight: 900; }
.wx__h-rain { font-size: .72rem; color: #0369a1; }

.wx__days { margin: 0; padding: 0; list-style: none; display: grid; }
.wx__days li {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) 2rem minmax(0, 1.5fr) minmax(130px, 1.2fr);
    align-items: center;
    gap: 8px;
    padding: 8px 2px;
    border-bottom: 1px dashed var(--wx-line);
    font-size: .88rem;
}
.wx__days li:last-child { border-bottom: 0; }
.wx__d-name { font-weight: 800; }
.wx__d-name small { display: block; font-size: .72rem; font-weight: 600; color: var(--wx-muted); }
.wx__d-icon { font-size: 1.3rem; text-align: center; }
.wx__d-label { color: var(--wx-muted); font-size: .82rem; }
.wx__d-range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; }
.wx__d-range b { font-weight: 800; font-size: .82rem; white-space: nowrap; }
.wx__bar { display: block; position: relative; height: 6px; border-radius: 6px; background: #dbeafe; }
.wx__bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #38bdf8, #f59e0b); }

.wx__advice { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: .92rem; }
.wx__links { margin: 0; font-size: .9rem; }
.wx__links a { font-weight: 800; }
.wx__source { margin: 0; font-size: .72rem; color: var(--wx-muted); }

/* کارت فشرده‌ی بالای صفحهٔ شهر */
.wx--hero { padding: 14px; gap: 10px; }
.wx--hero .wx__now { grid-template-columns: auto auto 1fr; padding: 10px; }
.wx--hero .wx__icon, .wx--hero .wx__temp { font-size: 2rem; }
.wx--hero .wx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wx--hero .wx__days li { grid-template-columns: minmax(60px, 1fr) 1.6rem minmax(120px, 1.4fr); }
.wx--hero .wx__d-label { display: none; }

@media (max-width: 560px) {
    .wx__now { grid-template-columns: auto 1fr; }
    .wx__cond { grid-column: 1 / -1; }
    .wx__days li { grid-template-columns: minmax(64px, 1fr) 1.8rem minmax(120px, 1.6fr); }
    .wx__d-label { display: none; }
    .wx__hours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
