/* Hava durumu (2026-11-02) — header göstergesi + /hava-durumu sayfası (weather.php). header.php bölüm açıkken yükler.
   Sitenin genel "* { color: #000 }" kuralı yüzünden her metnin rengi burada açıkça verilir. Simgelerde bulut rengi --wx-cloud. */

.wx-ico { display: block; flex: none; width: 32px; height: 32px; }

/* ---------- Header göstergesi: arama kutusuyla aynı yarı saydam hap; zil ve aramanın solunda ---------- */
header .wx-widget { position: relative; flex: 0 0 auto; margin-left: auto; margin-right: 10px; }
header .wx-widget ~ .push-bell { margin-left: 0; }
header .wx-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  --wx-cloud: #fff;
}
header .wx-btn:hover,
header .wx-btn[aria-expanded="true"] { background-color: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.8); }
header .wx-btn:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }
header .wx-btn span { color: #fff; font-size: 0.85rem; line-height: 1; white-space: nowrap; }
header .wx-btn .wx-btn-ico { display: flex; }
header .wx-btn .wx-ico { width: 24px; height: 24px; }
header .wx-btn .wx-btn-temp { font-weight: 700; }

/* Açılır kutu */
.wx-pop {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 24px);
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  text-align: left;
}
.wx-pop[hidden] { display: none; }
.wx-pop-now { display: flex; align-items: center; gap: 12px; }
.wx-pop .wx-ico-lg { width: 60px; height: 60px; }
.wx-pop-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx-pop-city { font-size: 0.95rem; font-weight: 700; color: #111; }
.wx-pop-temp { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: #111; }
.wx-pop-desc { font-size: 0.85rem; color: #555; }
.wx-pop-range { font-size: 0.8rem; color: #888; }
.wx-pop-label { display: block; margin: 14px 0 6px; font-size: 0.8rem; font-weight: 600; color: #555; }
.wx-sel {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 0.9rem;
  cursor: pointer;
}
.wx-sel:focus { border-color: var(--main-color); }
.wx-pop-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 0.85rem; }
.wx-pop-links a { font-weight: 600; }

/* ---------- /hava-durumu sayfası ---------- */
.wx-page { width: var(--main-width); margin: 0 auto 1.5vh; }
.wx-page .seperate { width: 100%; max-width: 100%; }
.wx-empty { padding: 30px 0; color: #777; }
.wx-sub { margin: 0 0 10px; font-size: 1rem; font-weight: 800; color: #111; }

.wx-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; margin-bottom: 34px; }

/* Anlık durum kartı (tema renginde) */
.wx-now {
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--main-color), color-mix(in srgb, var(--main-color) 65%, #000));
  --wx-cloud: #fff;
}
.wx-now * { color: #fff; }
.wx-now-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wx-now-city { font-size: 1.4rem; font-weight: 800; }
.wx-now-time { font-size: 0.8rem; opacity: 0.85; white-space: nowrap; }
.wx-now-main { display: flex; align-items: center; gap: 16px; margin: 14px 0 18px; }
.wx-now .wx-ico-xl { width: 96px; height: 96px; }
.wx-now-temp { font-size: 3.4rem; font-weight: 800; line-height: 1; }
.wx-now-desc { margin-top: 6px; font-size: 1.05rem; font-weight: 600; }
.wx-now-range { margin-top: 4px; font-size: 0.85rem; opacity: 0.9; }
.wx-now-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wx-now-facts div { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); }
.wx-now-facts dt { font-size: 0.7rem; letter-spacing: 0.03em; text-transform: uppercase; opacity: 0.85; }
.wx-now-facts dd { margin-top: 2px; font-size: 0.95rem; font-weight: 700; white-space: nowrap; }
.wx-stale { margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); font-size: 0.8rem; }
.wx-pin {
  margin-top: 14px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.wx-pin:hover { background: rgba(255, 255, 255, 0.15); }
.wx-pin:disabled { cursor: default; opacity: 0.8; }

/* Saatlik + 5 günlük */
.wx-hours { display: flex; gap: 8px; margin-bottom: 22px; padding-bottom: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wx-hours li { display: flex; flex: 1 0 68px; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid #eee; border-radius: 10px; }
.wx-h-time { font-size: 0.8rem; color: #777; }
.wx-hours .wx-ico { width: 34px; height: 34px; }
.wx-h-temp { font-weight: 700; color: #111; }
.wx-days li { display: grid; grid-template-columns: 92px 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #eee; }
.wx-days li:last-child { border-bottom: 0; }
.wx-d-name { font-weight: 700; color: #111; }
.wx-days .wx-ico { width: 36px; height: 36px; }
.wx-d-desc { font-size: 0.9rem; color: #555; }
.wx-d-desc .wx-d-pop { font-size: 0.8rem; font-weight: 700; color: #2a7fc1; }
.wx-d-temp { color: #888; white-space: nowrap; }
.wx-d-temp strong { color: #111; font-size: 1.02rem; }

/* 81 il */
.wx-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.wx-list-head .wx-sub { margin: 0; }
.wx-filter { width: 220px; max-width: 55%; height: 36px; padding: 0 14px; border: 1px solid #ddd; border-radius: 999px; color: #111; font-size: 0.9rem; }
.wx-filter:focus { border-color: var(--main-color); }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.wx-grid li[hidden] { display: none; }
:root .wx-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
:root .wx-card:hover { border-color: var(--main-color); text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06); }
.wx-card.on { border-color: var(--main-color); box-shadow: inset 0 0 0 1px var(--main-color); }
.wx-card-name { width: 100%; font-weight: 700; color: #111; }
.wx-card:hover .wx-card-name { color: var(--main-color); }
.wx-card .wx-ico { width: 36px; height: 36px; }
.wx-card-temp { font-size: 1.35rem; font-weight: 800; color: #111; }
.wx-card-range { margin-left: auto; font-size: 0.8rem; color: #888; white-space: nowrap; }
.wx-card-na { font-size: 0.8rem; color: #999; }
.wx-none { padding: 16px 0; color: #777; }
.wx-credit { margin-top: 24px; font-size: 0.8rem; color: #888; }

@media (max-width: 900px) {
  .wx-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  /* Göstergede yalnızca simge + derece; arama kutusu kalan genişliği alır (zil varsa onunla birlikte) */
  header .wx-widget { margin: 0 10px 0 0; }
  header .wx-btn { padding: 0 11px 0 6px; }
  header .wx-btn .wx-btn-city { display: none; }
  header .wx-widget ~ .search,
  header .wx-widget ~ .push-bell:not([hidden]) + .search { flex: 1 1 0; width: auto; min-width: 0; }
  .wx-pop { right: auto; left: 0; }
  .wx-now { padding: 18px; }
  .wx-now-temp { font-size: 2.8rem; }
  .wx-now .wx-ico-xl { width: 80px; height: 80px; }
  .wx-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .wx-days li { grid-template-columns: 74px 32px minmax(0, 1fr) auto; gap: 8px; }
  .wx-days .wx-ico { width: 32px; height: 32px; }
  .wx-d-desc { font-size: 0.82rem; }
}
@media (max-width: 420px) {
  .wx-now-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-list-head { flex-wrap: wrap; }
  .wx-filter { width: 100%; max-width: none; }
}
