/* ═══════════════════════════════════════════
   WEATHER WIDGET – Redesigned v2
   ═══════════════════════════════════════════ */

/* ── Key / search bar ── */
.weather-api-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.weather-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

/* ── Quick city chips ── */
.weather-chips-wrap {
  margin-bottom: 12px;
}

.weather-chips-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.weather-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.weather-city-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Inter', sans-serif;
}

.weather-city-chip:hover {
  background: rgba(96,165,250,0.12);
  border-color: rgba(96,165,250,0.3);
  color: var(--accent-blue);
}

/* ── Hero display ── */
.weather-hero {
  position: relative;
  overflow: hidden;
}

.weather-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.weather-big-icon {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.weather-temp-big {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.weather-deg {
  font-size: 22px;
  font-weight: 400;
  vertical-align: super;
}

.weather-minmax {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.weather-heat {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  background: rgba(248,113,113,0.15);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 20px;
  padding: 2px 8px;
  display: inline-block;
  color: var(--accent-red);
}

.weather-location {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.weather-desc-badge {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: capitalize;
}

/* ── 8-stat grid ── */
.weather-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

@media (max-width: 900px) {
  .weather-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.wstat2 {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  transition: background 0.2s;
}

.wstat2:hover { background: rgba(255,255,255,0.055); }
.wstat2-icon  { font-size: 18px; margin-bottom: 4px; }
.wstat2-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.wstat2-val   { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.wstat2-sub   { font-size: 10px; color: var(--accent-cyan); margin-top: 2px; }

/* ══════════════════════════════════════════
   FORECAST STRIP – 5-day
   ══════════════════════════════════════════ */

.wf-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wf-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.wf-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 900px) {
  .wf-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .wf-strip {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .wf-card { min-width: 110px; flex-shrink: 0; }
}

.wf-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  transition: background 0.2s, transform 0.18s, border-color 0.2s;
  cursor: default;
}

.wf-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(96,165,250,0.25);
  transform: translateY(-2px);
}

.wf-day {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wf-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.wf-icon {
  font-size: 28px;
  margin-bottom: 4px;
  line-height: 1.2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.wf-desc {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: capitalize;
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf-temps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.wf-max {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-yellow);
}

.wf-min {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  align-self: flex-end;
}

/* Precipitation bar */
.wf-pop-bar {
  height: 3px;
  background: rgba(56,189,248,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 4px 4px;
}

.wf-pop-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.wf-pop-label {
  font-size: 10px;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 6px;
}

.wf-wind {
  font-size: 10px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   HOURLY FORECAST STRIP
   ══════════════════════════════════════════ */
.wh-strip {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  margin-bottom: 14px;
}

.wh-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.18s, border-color 0.2s;
  cursor: default;
}

.wh-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.25);
  transform: translateY(-2px);
}

.wh-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.wh-temp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-yellow);
  margin: 4px 0;
}

.wh-icon {
  font-size: 22px;
  margin: 4px 0;
}

.wh-pop {
  font-size: 9px;
  color: #38bdf8;
  font-weight: 600;
}


