/* ─────────────── Weather Home — vejretkobenhavn.com ─────────────── */
/* Warm Amber/Brown Dark Theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-deep: #1a120e;
  --bg-mid: #241a14;
  --glass-bg: rgba(255,235,220,0.04);
  --glass-border: rgba(255,200,160,0.1);
  --glass-hover: rgba(255,200,160,0.07);
  --accent-cyan: #e07a3a;
  --accent-violet: #c4592a;
  --accent-rose: #d4956a;
  --accent-amber: #e8a44a;
  --accent-green: #d4956a;
  --text-primary: #faeade;
  --text-secondary: rgba(250,234,222,0.55);
  --text-muted: rgba(250,234,222,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(20,10,5,0.4);
  --shadow-lg: 0 12px 48px rgba(20,10,5,0.5);

  /* Legacy aliases */
  --greek-blue: #e07a3a;
  --greek-blue-dark: #c4592a;
  --greek-blue-deep: #1a120e;
  --greek-blue-light: #d4956a;
  --greek-white: #faeade;
  --greek-sky: rgba(255,235,220,0.06);
  --greek-foam: rgba(255,235,220,0.08);
  --gold: #e07a3a;
  --text: #faeade;
  --subtle: rgba(250,234,222,0.55);
  --muted-bg: #1a120e;
  --aegean: #e07a3a;
  --sky: #d4956a;
  --foam: rgba(255,235,220,0.08);
  --mist: #1a120e;
  --terracotta: #c4592a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif !important;
  background: var(--bg-deep) !important;
  color: var(--text-primary);
  min-height: 100vh;
}

/* Hide WP admin bar spacing */
html { margin-top: 0 !important; }
#wpadminbar { display: none; }

/* ══════════════════════════════════════════════
   AURORA BACKGROUND
══════════════════════════════════════════════ */
.aurora {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0; overflow: hidden; pointer-events: none;
}
.aurora::before {
  content: ''; position: absolute; top: -40%; left: -20%;
  width: 80vw; height: 80vw;
  background: radial-gradient(ellipse, rgba(224,122,58,0.1) 0%, transparent 60%);
  animation: aurora1 18s ease-in-out infinite alternate;
}
.aurora::after {
  content: ''; position: absolute; top: -20%; right: -20%;
  width: 70vw; height: 70vw;
  background: radial-gradient(ellipse, rgba(196,89,42,0.08) 0%, transparent 60%);
  animation: aurora2 22s ease-in-out infinite alternate;
}
@keyframes aurora1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(10%,15%) scale(1.1); } }
@keyframes aurora2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-15%,10%) scale(1.15); } }

/* ══════════════════════════════════════════════
   GLASS CARD — shared section wrapper
══════════════════════════════════════════════ */
.glass-card,
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.section-head .section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0;
}
.section-link {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
}
.section-link:hover { text-decoration: underline; }
.section-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════
   SITE HEADER — warm dark bar
══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: linear-gradient(90deg, #1a120e 0%, #241a14 55%, #2e1e16 100%);
  border-bottom: 3px solid var(--accent-cyan);
  box-shadow: 0 2px 24px rgba(20,10,5,0.45);
}

.sh-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* ── Logo ── */
.sh-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding-right: 20px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,200,160,0.1);
}
.sh-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.sh-logo-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}
.sh-logo-city {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.18em;
  margin-top: 3px;
}

/* ── Centre nav ── */
.sh-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
  justify-content: center;
}

.sh-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  box-sizing: border-box;
}
.sh-nav-link:hover {
  color: var(--text-primary);
  border-bottom-color: rgba(255,200,160,0.25);
}
.sh-nav-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-cyan);
}

/* ── Dropdown ── */
.sh-dropdown {
  display: flex;
  align-items: stretch;
  position: relative;
}
.sh-dropdown .sh-nav-link { }
.sh-chevron {
  width: 8px;
  height: 5px;
  opacity: 0.6;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.sh-dropdown:hover .sh-chevron,
.sh-dropdown:focus-within .sh-chevron { transform: rotate(180deg); }

.sh-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-mid);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(20,10,5,0.5);
  min-width: 210px;
  padding: 6px 0;
  z-index: 600;
  margin-top: 0;
}
.sh-dropdown:hover .sh-dropdown-menu,
.sh-dropdown:focus-within .sh-dropdown-menu { display: block; }
.sh-dd-item {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.sh-dd-item:hover { background: var(--glass-hover); color: var(--text-primary); }
.sh-dd-sep { height: 1px; background: var(--glass-border); margin: 5px 0; }

/* ── Right: live pill ── */
.sh-live {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 0 0 20px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,200,160,0.1);
}
.sh-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d4956a;
  animation: sh-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes sh-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.sh-live-label {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.sh-live-temp {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.sh-live-icon { font-size: 20px; line-height: 1; }
.sh-live-icon svg { width: 22px; height: 22px; vertical-align: middle; }

/* Unit toggle */
.unit-toggle {
  display: flex;
  background: rgba(255,235,220,0.06);
  border-radius: 14px;
  padding: 2px;
  gap: 1px;
  margin-left: 2px;
}
.unit-btn {
  background: transparent; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 10px; font-weight: 800;
  color: var(--text-muted);
  padding: 3px 7px; border-radius: 11px;
  transition: all 0.18s; line-height: 1;
}
.unit-btn.on { background: rgba(255,200,160,0.15); color: var(--text-primary); }
.unit-btn:hover:not(.on) { color: var(--text-secondary); }

/* ── Mobile ── */
@media (max-width: 960px) {
  .sh-nav { display: none; }
  .sh-live { margin-left: auto; }
}

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.fp-hero {
  background: linear-gradient(160deg, #1a120e 0%, #241a14 50%, #2e1e16 100%);
  position: relative;
  overflow: hidden;
}
.fp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(224,122,58,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(196,89,42,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.fp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 0;
  position: relative;
  z-index: 1;
}
.fp-h1 {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

/* Location bar */
.fp-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.fp-location-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.fp-location-name { color: var(--text-primary); }
.fp-update {
  font-size: 11px;
  color: var(--text-muted);
}

/* Big now block */
.fp-now { padding-bottom: 32px; }
.fp-now-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.fp-now-icon { font-size: 80px; line-height: 1; flex-shrink: 0; }
.fp-now-icon svg { width: 80px; height: 80px; }

.fp-now-temp-wrap {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  flex-shrink: 0;
}
.fp-now-temp {
  font-size: 100px;
  font-weight: 200;
  color: var(--text-primary);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.fp-now-deg {
  font-size: 30px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 10px;
}

.fp-now-meta { padding-left: 4px; }
.fp-now-desc {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.fp-now-feels {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}
.fp-now-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fp-pill {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Loading / error */
.fp-loading {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-secondary); font-size: 14px; padding: 40px 0;
}
.fp-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,200,160,0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: fp-spin 0.8s linear infinite;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }
.fp-error {
  background: rgba(196,89,42,0.15);
  border: 1px solid rgba(196,89,42,0.35);
  border-radius: 8px;
  padding: 10px 16px;
  color: #e8a44a;
  font-size: 13px;
}

/* ══════════════════════════════════════════════
   7-DAY STRIP (week-grid / day-card)
══════════════════════════════════════════════ */
.fp-7day {
  border-top: 1px solid var(--glass-border);
}
.fp-7day-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.fp-day-card {
  padding: 16px 8px 14px;
  text-align: center;
  border-right: 1px solid rgba(255,200,160,0.06);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.fp-day-card:last-child { border-right: none; }
.fp-day-card:hover { background: var(--glass-hover); }
.fp-day-card.active {
  background: var(--glass-bg);
  border-bottom-color: var(--accent-cyan);
}
.fp-day-name {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.fp-day-card.active .fp-day-name { color: var(--text-primary); }
.fp-day-icon { font-size: 24px; margin-bottom: 8px; line-height: 1; }
.fp-day-icon svg { width: 28px; height: 28px; }
.fp-day-hi {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
}
.fp-day-lo {
  font-size: 13px; color: var(--text-muted); margin-left: 3px;
}
.fp-day-rain {
  font-size: 10px; color: var(--text-muted);
  margin-top: 4px;
}

/* Week grid (new layout) */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.day-card {
  background: var(--glass-bg);
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.day-card:hover { background: var(--glass-hover); }
.day-card.active,
.day-card.today { background: rgba(224,122,58,0.08); border-color: var(--accent-cyan); }
.day-card-name {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px;
}
.day-card.active .day-card-name,
.day-card.today .day-card-name { color: var(--accent-cyan); }
.day-card-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.day-card-temps { margin-top: 4px; }
.day-card-rain {
  font-size: 0.65rem;
  color: var(--accent-cyan);
  margin-top: 4px;
  opacity: 0.8;
}
.day-card-icon { font-size: 24px; margin-bottom: 8px; }
.day-card-icon svg { width: 28px; height: 28px; }
.day-card-hi { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.day-card-lo { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════════════
   CONTENT AREA (dark)
══════════════════════════════════════════════ */
.fp-content {
  background: var(--bg-deep);
  padding-bottom: 60px;
}
.fp-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 0;
}

/* ══════════════════════════════════════════════
   SECTION (glass card)
══════════════════════════════════════════════ */
.fp-section {
  background: var(--glass-bg);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.fp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.fp-section-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0;
}
.fp-section-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-decoration: none;
}
.fp-section-link:hover { text-decoration: underline; }

/* Detail grid */
.fp-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fp-detail-card {
  background: var(--bg-mid);
  padding: 16px 18px;
  text-align: center;
}
.fp-dc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.fp-dc-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

/* Details grid (new) */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.detail-item {
  background: var(--glass-bg);
  padding: 18px;
  text-align: center;
}
.detail-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 6px;
}
.detail-value {
  font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1;
}
.detail-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Two col */
.fp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.fp-two-col .fp-section { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   HOURLY STRIP
══════════════════════════════════════════════ */
.hourly-scroll-wrap {
  overflow-x: auto; margin: 0 -2px;
  scrollbar-width: none;
}
.hourly-scroll-wrap::-webkit-scrollbar { display: none; }
.hourly-scroll {
  display: flex; gap: 8px; padding: 4px 2px 8px;
  min-width: max-content;
}
.hour-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center; min-width: 64px;
  transition: background 0.15s;
}
.hour-card:hover { background: var(--glass-hover); }
.hour-card.active {
  background: rgba(224,122,58,0.12);
  border-color: var(--accent-cyan);
}
.hour-time { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.hour-card.active .hour-time { color: var(--accent-cyan); }
.hour-icon { font-size: 20px; margin-bottom: 6px; line-height: 1; }
.hour-icon svg { width: 22px; height: 22px; }
.hour-temp { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.hour-card.active .hour-temp { color: var(--text-primary); }
.hour-rain { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.hour-card.active .hour-rain { color: var(--text-secondary); }

/* hour-item alias (used by front-page JS) */
.hour-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center; min-width: 64px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.hour-item:hover { background: var(--glass-hover); }
.hour-item.now {
  background: rgba(224,122,58,0.12);
  border-color: var(--accent-cyan);
}
.hour-item.now .hour-time { color: var(--accent-cyan); }

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.two-col .glass { margin-bottom: 0; }

/* ── AQI row layout ── */
.aqi-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.aqi-icon-wrap { font-size: 36px; flex-shrink: 0; }

/* ── Radar toggle ── */
.radar-toggle {
  display: flex;
  gap: 6px;
}
.radar-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
}
.radar-toggle-btn:hover { background: var(--glass-hover); color: var(--text-primary); }
.radar-toggle-btn.active {
  background: rgba(224,122,58,0.12);
  border-color: rgba(224,122,58,0.3);
  color: var(--accent-cyan);
}

/* Hourly (new layout) */
.hourly { margin-bottom: 24px; }
.hourly-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 12px;
}
.hourly-list {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 4px;
}
.hourly-list::-webkit-scrollbar { display: none; }
.hourly-item {
  flex-shrink: 0; min-width: 68px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 12px 10px;
  text-align: center; transition: background 0.15s;
}
.hourly-item:hover { background: var(--glass-hover); }
.hourly-item.now {
  background: rgba(224,122,58,0.1); border-color: var(--accent-cyan);
}
.hourly-item-time { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.hourly-item.now .hourly-item-time { color: var(--accent-cyan); }
.hourly-item-icon { font-size: 20px; margin-bottom: 4px; }
.hourly-item-icon svg { width: 22px; height: 22px; }
.hourly-item-temp { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.hourly-item-rain { font-size: 9px; color: var(--text-muted); margin-top: 3px; }

/* ══════════════════════════════════════════════
   DAILY LIST
══════════════════════════════════════════════ */
.daily-list { display: flex; flex-direction: column; gap: 1px; }
.daily-row {
  display: grid;
  grid-template-columns: 80px 40px 28px 1fr 60px 70px;
  align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  transition: background 0.14s;
}
.daily-row:hover { background: var(--glass-hover); }
.daily-row.today { background: var(--glass-bg); font-weight: 700; }
.daily-day { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.daily-date { font-size: 12px; color: var(--text-muted); }
.daily-emoji { font-size: 22px; }
.daily-desc { font-size: 12px; color: var(--text-secondary); }
.daily-rain { font-size: 12px; color: var(--text-secondary); text-align: right; }
.daily-temps { text-align: right; }
.daily-hi { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.daily-lo { font-size: 13px; color: var(--text-muted); margin-left: 4px; }

/* Forecast list (new) */
.forecast-list { margin-bottom: 24px; }
.forecast-list-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 12px;
}
.forecast-row {
  display: grid;
  grid-template-columns: 80px 32px 1fr 80px;
  align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.15s; cursor: pointer;
}
.forecast-row:last-child { border-bottom: none; }
.forecast-row:hover { background: var(--glass-hover); }
.forecast-row.today { background: rgba(224,122,58,0.06); }
.forecast-day { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.forecast-date { font-size: 10px; color: var(--text-muted); }
.forecast-icon svg { width: 28px; height: 28px; }
.forecast-desc { font-size: 12px; color: var(--text-secondary); }
.forecast-hi { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.forecast-lo { font-size: 13px; color: var(--text-muted); margin-left: 4px; }
.forecast-temps { text-align: right; }
.forecast-rain {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-top: 2px;
}
.forecast-rain svg { width: 12px; height: 12px; }
.forecast-day small {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ══════════════════════════════════════════════
   FORECAST TABS
══════════════════════════════════════════════ */
.forecast-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
}
.forecast-tab {
  padding: 8px 18px; border-radius: 20px;
  font-size: 12px; font-weight: 700; border: 1px solid var(--glass-border);
  background: transparent; cursor: pointer; transition: all 0.18s;
  font-family: 'Outfit', sans-serif; color: var(--text-secondary);
}
.forecast-tab.active {
  background: var(--accent-cyan); color: var(--bg-deep); border-color: var(--accent-cyan);
}
.forecast-tab:not(.active):hover {
  border-color: var(--accent-cyan); color: var(--text-primary);
}

/* ══════════════════════════════════════════════
   SUN / MOON CARD
══════════════════════════════════════════════ */
.sun-moon-card {
  display: flex; gap: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.sun-section, .moon-section {
  flex: 1; padding: 18px 20px; text-align: center;
}
.sun-section { background: rgba(232,164,74,0.06); }
.moon-section { background: var(--glass-bg); }
.sun-section h4, .moon-section h4 {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin: 0 0 10px;
}
.sun-icon { font-size: 32px; margin-bottom: 12px; }
.sun-time-row { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; }
.sun-time-item { text-align: center; }
.sun-time-item span { display: block; font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.sun-time-item strong { font-size: 15px; color: var(--text-primary); }
.daylight { font-size: 11px; color: var(--text-secondary); }
.divider-v { width: 1px; background: var(--glass-border); }
.sun-half { flex: 1; padding: 18px 20px; text-align: center; }
.sun-half.sun-side { background: rgba(232,164,74,0.06); }
.sun-half.moon-side { background: var(--glass-bg); }
.sun-half h4 {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin: 0 0 10px;
}
.sun-icon-wrap { font-size: 30px; margin-bottom: 12px; line-height: 1; }
.sun-icon-wrap svg { width: 30px; height: 30px; display: inline-block; }
.sun-times { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; }
.sun-times div { text-align: center; }
.sun-times span { display: block; font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.sun-times strong { font-size: 15px; color: var(--text-primary); font-family: 'Space Mono', monospace; }
.sun-duration { font-size: 11px; color: var(--text-secondary); }

/* Sun/moon (new) */
.sun-moon {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--glass-border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 24px;
}
.sun-moon-half {
  background: var(--glass-bg); padding: 20px; text-align: center;
}
.sun-moon-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 10px;
}
.sun-moon-icon { font-size: 28px; margin-bottom: 8px; }
.sun-moon-times {
  display: flex; justify-content: center; gap: 16px;
}
.sun-moon-time-label { font-size: 9px; color: var(--text-muted); margin-bottom: 2px; }
.sun-moon-time-val { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.sun-moon-duration { font-size: 11px; color: var(--text-secondary); margin-top: 6px; }

/* ══════════════════════════════════════════════
   AQI CARD
══════════════════════════════════════════════ */
.aqi-card {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
}
.aqi-icon { font-size: 36px; }
.aqi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.aqi-value { font-size: 36px; font-weight: 700; color: var(--accent-cyan); line-height: 1; }
.aqi-desc { font-size: 14px; color: var(--text-secondary); margin: 4px 0 10px; }
.aqi-bar {
  height: 6px; background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 25%, #FFC107 50%, #FF5722 75%, #D32F2F 100%);
  border-radius: 3px; position: relative;
}
.aqi-needle {
  position: absolute; top: -4px;
  width: 14px; height: 14px;
  background: var(--bg-mid); border: 2px solid var(--accent-cyan);
  border-radius: 50%; transform: translateX(-50%);
  transition: left 0.5s ease;
}

/* AQI (new) */
.aqi-section { margin-bottom: 24px; }
.aqi-section-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 12px;
}
.aqi-display {
  display: flex; align-items: center; gap: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 18px;
}
.aqi-badge {
  font-size: 32px; font-weight: 800; color: var(--accent-amber);
  min-width: 60px; text-align: center;
}
.aqi-info { flex: 1; }
.aqi-status { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.aqi-bar-new {
  height: 6px; border-radius: 3px; position: relative;
  background: linear-gradient(90deg, #4CAF50, #8BC34A, #FFC107, #FF5722, #D32F2F);
  margin-top: 8px;
}
.aqi-marker {
  position: absolute; top: -4px;
  width: 14px; height: 14px;
  background: var(--bg-deep); border: 2px solid var(--accent-cyan);
  border-radius: 50%; transform: translateX(-50%);
}

/* ══════════════════════════════════════════════
   RADAR CARD
══════════════════════════════════════════════ */
.radar-placeholder {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(224,122,58,0.02);
}
.radar-placeholder #radar-map {
  background: var(--bg-mid) !important;
}
.radar-card {
  position: relative; height: 200px; border-radius: var(--radius-sm);
  overflow: hidden; background: #1a120e;
  display: flex; align-items: center; justify-content: center;
}
.radar-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.radar-map { font-size: 120px; opacity: 0.08; }
.radar-overlay {
  position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 30px, rgba(224,122,58,0.05) 31px);
}
.radar-label {
  position: absolute; top: 12px; left: 14px;
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
  background: rgba(26,18,14,0.6); padding: 3px 8px; border-radius: 4px;
}
.radar-city {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 11px; color: var(--text-muted);
}

/* Radar (new) */
.radar-section {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.radar-section-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted);
  padding: 14px 18px; border-bottom: 1px solid var(--glass-border);
}
.radar-map-container {
  height: 240px; background: #1a120e;
  position: relative; display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════
   CLIMATE SECTION
══════════════════════════════════════════════ */
.climate-text p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.climate-text p:last-child { margin-bottom: 0; }
.climate-text strong { color: var(--text-primary); }
.climate-text a { color: var(--accent-cyan); text-decoration: none; }
.climate-text a:hover { text-decoration: underline; }
.climate {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
}
.climate-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 14px;
}
.climate-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--glass-border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.climate-item {
  background: var(--bg-mid); padding: 14px; text-align: center;
}
.climate-label { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.climate-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.climate-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════════════
   COMPARE BANNER
══════════════════════════════════════════════ */
.compare-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(196,89,42,0.1), rgba(224,122,58,0.06));
  border: 1px solid rgba(196,89,42,0.18);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.compare-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}
.compare-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-violet);
  font-weight: 600;
  margin-bottom: 6px;
}
.compare-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.compare-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.compare-btn {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(196,89,42,0.15);
  border: 1px solid rgba(196,89,42,0.25);
  border-radius: 100px;
  color: var(--accent-violet);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.compare-btn:hover { background: rgba(196,89,42,0.25); }
@media (max-width: 768px) {
  .compare-banner, .compare-inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* ══════════════════════════════════════════════
   PAGE CONTAINER
══════════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 40px;
  align-items: start;
  padding: 40px 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224,122,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-left {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}
.hero-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.hero-location svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  flex-shrink: 0;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.hero-region {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-temp-wrap {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}
.hero-temp {
  font-size: 5.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.hero-deg {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 8px;
  margin-left: 2px;
}
.hero-desc {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.hero-feels {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.hero-feels strong {
  color: var(--text-primary);
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,235,220,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.hero-badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  flex-shrink: 0;
}
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.hero-icon {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.hero-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-update {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}
/* Hero loading/error states */
.hero-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px 0;
  grid-column: 1 / -1;
  grid-row: 2;
}
.hero-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: fp-spin 0.8s linear infinite;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }
.hero-error {
  background: rgba(210,43,43,0.15);
  border: 1px solid rgba(210,43,43,0.35);
  border-radius: 8px;
  padding: 10px 16px;
  color: #fca5a5;
  font-size: 13px;
  grid-column: 1 / -1;
  grid-row: 2;
}

/* ══════════════════════════════════════════════
   FOOTER (standalone front-page)
══════════════════════════════════════════════ */
.weather-footer {
  background: var(--bg-deep);
  padding: 48px 32px 28px;
  border-top: 1px solid var(--glass-border);
}
.footer-cols {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  max-width: 1200px; margin: 0 auto 32px;
}
.footer-col h5 {
  font-size: 9px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--text-muted);
  margin: 0 0 14px;
}
.footer-col a {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  margin-bottom: 9px; transition: color 0.14s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: 12px; color: var(--text-muted); text-align: center;
}
.footer-bottom a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-primary); }
@media (max-width: 900px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .footer-cols { grid-template-columns: 1fr; } .weather-footer { padding: 32px 16px 20px; } }

/* ══════════════════════════════════════════════
   SECTION HEADER (shared)
══════════════════════════════════════════════ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 11px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted);
}
.update-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-muted);
}
.update-dot {
  width: 6px; height: 6px; background: var(--accent-rose);
  border-radius: 50%; animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
/* Intersection Observer animation classes */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,122,58,0.2); }
  50% { box-shadow: 0 0 12px 4px rgba(224,122,58,0.15); }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }
.slide-up { animation: slideUp 0.6s ease forwards; }
.pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

/* Staggered entry */
.stagger > * { opacity: 0; animation: fadeIn 0.4s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .page { padding: 0 16px 60px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
  }
  .hero-right {
    order: -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .hero-icon { width: 80px; height: 80px; }
  .hero-temp { font-size: 4rem; }
  .hero-title { font-size: 1.6rem; }
  .hero-badges { gap: 6px; }
  .hero-badge { padding: 5px 10px; font-size: 0.72rem; }
  .fp-hero-inner, .fp-content-inner { padding-left: 16px; padding-right: 16px; }
  .fp-now-temp { font-size: 72px; }
  .fp-now-icon { font-size: 56px; }
  .fp-7day-list { grid-template-columns: repeat(4, 1fr); }
  .fp-detail-grid, .details-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-two-col { grid-template-columns: 1fr; gap: 0; }
  .fp-two-col .fp-section { margin-bottom: 18px; }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .climate-grid { grid-template-columns: repeat(2, 1fr); }
  .sun-moon { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-temp { font-size: 3.2rem; }
  .fp-now-temp { font-size: 56px; }
  .fp-now-icon { font-size: 44px; }
  .week-grid { grid-template-columns: repeat(3, 1fr); }
  .details-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   NIGHT MODE (already dark — minimal overrides)
══════════════════════════════════════════════ */
body.is-night .fp-hero {
  background: linear-gradient(160deg, #130d0a 0%, #1a120e 50%, #241a14 100%);
}
body.is-night .hour-card.active {
  background: rgba(224,122,58,0.15);
}
