/* ============================================================
   Weather dashboard — /weather
   ============================================================ */

.kt-weather-page {
  max-width: 1200px;
  padding: 24px 16px 60px;
}

/* ─── HERO ──────────────────────────────────────────────── */
.kt-wx-hero {
  margin: 16px 0 28px;
  padding: 28px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.kt-wx-hero h1 {
  margin: 6px 0 8px;
  font-size: 36px;
  letter-spacing: -.5px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.1;
}
.kt-wx-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,.18);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.kt-wx-sub {
  font-size: 15px;
  opacity: .9;
  margin: 0;
  max-width: 640px;
}
.kt-wx-updated {
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}
.kt-wx-updated__label {
  display: block;
  opacity: .8;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.kt-wx-updated__time { font-weight: 600; font-size: 15px; }

/* ─── EMPTY STATE ──────────────────────────────────────── */
.kt-wx-empty {
  background: #f9fafb;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  border: 1px dashed #e5e7eb;
}
.kt-wx-empty code {
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'SF Mono', monospace;
  font-size: 13px;
  border: 1px solid #e5e7eb;
}

/* ─── CITY TABS ─────────────────────────────────────────── */
.kt-wx-cities {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.kt-wx-city {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition: all .12s ease;
  color: inherit;
}
.kt-wx-city:hover { border-color: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,99,235,.1); }
.kt-wx-city.is-active {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.kt-wx-city__name { font-size: 14px; font-weight: 600; }
.kt-wx-city__temp { font-size: 18px; font-weight: 700; line-height: 1; }

/* ─── PER-CITY PANEL ─────────────────────────────────────── */
.kt-wx-panel { display: block; }
.kt-wx-panel[hidden] { display: none; }

.kt-wx-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* ─── CURRENT CONDITIONS CARD ────────────────────────────── */
.kt-wx-current {
  background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.kt-wx-current__top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}
.kt-wx-current__icon {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}
.kt-wx-current__temp {
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  font-family: Georgia, serif;
  color: #111;
  letter-spacing: -2px;
}
.kt-wx-current__label {
  font-size: 18px;
  color: #374151;
  margin-bottom: 22px;
  font-weight: 500;
}
.kt-wx-current__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}
.kt-wx-current__stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kt-wx-current__stats span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6b7280;
  font-weight: 500;
}
.kt-wx-current__stats strong { font-size: 16px; font-weight: 600; color: #111; }

/* ─── AIR QUALITY CARD ──────────────────────────────────── */
.kt-wx-aqi {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
}
.kt-wx-aqi h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6b7280;
  margin: 0 0 14px;
  font-weight: 600;
}
.kt-wx-aqi__big {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--aqi-colour, #ccc) 0%, var(--aqi-colour, #ccc) 100%);
  color: #111;
  text-align: center;
  margin-bottom: 14px;
  filter: brightness(1.05);
}
.kt-wx-aqi__value { font-size: 56px; font-weight: 700; line-height: 1; font-family: Georgia, serif; }
.kt-wx-aqi__label { font-size: 14px; font-weight: 600; margin-top: 4px; }
.kt-wx-aqi__bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.kt-wx-aqi__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .3s;
}
.kt-wx-aqi__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin: 0;
}
.kt-wx-aqi__details > div { display: flex; justify-content: space-between; font-size: 13px; }
.kt-wx-aqi__details dt { color: #6b7280; }
.kt-wx-aqi__details dd { margin: 0; font-weight: 600; color: #111; }
.kt-wx-aqi__details small { color: #9ca3af; font-weight: 400; }

/* ─── HOURLY FORECAST (24h) ────────────────────────────── */
.kt-wx-hourly {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}
.kt-wx-hourly h3,
.kt-wx-daily h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6b7280;
  margin: 0 0 16px;
  font-weight: 600;
}
.kt-wx-hourly__scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.kt-wx-hour {
  flex: 0 0 auto;
  min-width: 70px;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.kt-wx-hour__time { font-size: 12px; color: #6b7280; font-weight: 500; }
.kt-wx-hour__icon { font-size: 24px; line-height: 1; }
.kt-wx-hour__temp { font-size: 17px; font-weight: 700; color: #111; }
.kt-wx-hour__pop { font-size: 11px; color: #2563eb; font-weight: 500; }

/* ─── 7-DAY FORECAST ────────────────────────────────────── */
.kt-wx-daily {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}
.kt-wx-daily__list {
  display: flex;
  flex-direction: column;
}
.kt-wx-day {
  display: grid;
  grid-template-columns: 100px 40px 1fr 80px 100px;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.kt-wx-day:last-child { border-bottom: 0; }
.kt-wx-day__name { font-weight: 600; color: #111; font-size: 14px; }
.kt-wx-day__icon { font-size: 24px; text-align: center; line-height: 1; }
.kt-wx-day__label { color: #6b7280; font-size: 13px; }
.kt-wx-day__pop { color: #2563eb; font-size: 13px; font-weight: 500; }
.kt-wx-day__temp { text-align: right; font-size: 15px; }
.kt-wx-day__temp strong { color: #111; margin-right: 8px; }
.kt-wx-day__temp span { color: #9ca3af; }

/* ─── FOOTER ───────────────────────────────────────────── */
.kt-wx-foot {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  margin-top: 24px;
}
.kt-wx-foot a { color: #2563eb; text-decoration: none; }

/* ─── HEADER MINI WIDGET ───────────────────────────────── */
.kt-topbar-weather {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity .12s;
}
.kt-topbar-weather:hover { opacity: .7; }
.kt-topbar-weather__arrow { font-size: 10px; opacity: .7; }

/* ─── MOBILE TWEAKS ────────────────────────────────────── */
@media (max-width: 760px) {
  .kt-wx-hero { padding: 22px; flex-direction: column; align-items: flex-start; }
  .kt-wx-hero h1 { font-size: 28px; }
  .kt-wx-updated { text-align: left; }

  .kt-wx-row { grid-template-columns: 1fr; }
  .kt-wx-current { padding: 22px; }
  .kt-wx-current__temp { font-size: 60px; }
  .kt-wx-current__icon { font-size: 56px; }
  .kt-wx-current__stats { grid-template-columns: repeat(2, 1fr); }

  .kt-wx-day {
    grid-template-columns: 80px 32px 1fr 90px;
    gap: 10px;
    font-size: 13px;
  }
  .kt-wx-day__label { display: none; } /* save room on phones */
}
