/* ═══════════════════════════════════════════════
   AURORA DEPTHS — 2026 Weather UI
   Font: Syne (display) + DM Sans (body)
   Themes: dark (default) / light
═══════════════════════════════════════════════ */

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

/* ─── LIGHT THEME (default) ─────────────────── */
:root {
  color-scheme: light;
  /* Semantic colours */
  --bg:           #e4f0fb;
  --surface:      rgba(255,255,255,0.70);
  --surface-hov:  rgba(255,255,255,0.92);
  --border:       rgba(15,23,42,0.09);
  --border-hov:   rgba(15,23,42,0.22);
  --accent:       #0284c7;
  --accent-dim:   rgba(2,132,199,0.10);
  --accent2:      #7c3aed;
  --text:         #0f172a;
  --text-sub:     rgba(15,23,42,0.52);
  --text-dim:     rgba(15,23,42,0.30);

  /* Theme-sensitive values consumed directly by rules */
  --body-bg-color: #e4f0fb;
  --body-bg-img:
    radial-gradient(ellipse 72% 52% at 12%  2%,  rgba(125,211,252,0.48) 0%, transparent 55%),
    radial-gradient(ellipse 55% 38% at 88% 14%,  rgba(196,181,253,0.28) 0%, transparent 50%),
    radial-gradient(ellipse 60% 55% at 48% 108%, rgba(186,230,255,0.22) 0%, transparent 52%);
  --temp-grad:
    linear-gradient(148deg, #0c4a6e 0%, #0369a1 40%, #6d28d9 100%);
  --hero-blob1: rgba(186,230,255,0.30);
  --hero-blob2: rgba(196,181,253,0.20);
  --icon-filter:    brightness(0) opacity(0.78);
  --icon-filter-lg: brightness(0) opacity(0.80) drop-shadow(0 0 16px rgba(2,132,199,0.22));
  --logo-bg:        rgba(2,132,199,0.12);
  --logo-border:    rgba(2,132,199,0.28);
  --card-shadow:    0 16px 40px rgba(0,0,0,0.10);
  --hero-scan:      rgba(0,0,0,0.018);

  /* Layout */
  --radius:      20px;
  --radius-sm:   12px;
  --radius-pill: 100px;
  --blur:        blur(24px) saturate(160%);
  --blur-sm:     blur(14px);
  --f-display:   'Syne', system-ui, sans-serif;
  --f-body:      'DM Sans', system-ui, sans-serif;
}

/* ─── DARK THEME ────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:           #04090f;
  --surface:      rgba(255,255,255,0.042);
  --surface-hov:  rgba(255,255,255,0.078);
  --border:       rgba(255,255,255,0.09);
  --border-hov:   rgba(255,255,255,0.22);
  --accent:       #5eead4;
  --accent-dim:   rgba(94,234,212,0.12);
  --accent2:      #a78bfa;
  --text:         #f0f9ff;
  --text-sub:     rgba(240,249,255,0.48);
  --text-dim:     rgba(240,249,255,0.26);

  --body-bg-color: #04090f;
  --body-bg-img:
    radial-gradient(ellipse 72% 52% at 12%  2%,  rgba(42,110,140,0.52) 0%, transparent 55%),
    radial-gradient(ellipse 55% 38% at 88% 14%,  rgba(90,60,160,0.40)  0%, transparent 50%),
    radial-gradient(ellipse 60% 55% at 48% 108%, rgba(30,80,120,0.32)  0%, transparent 52%);
  --temp-grad:
    linear-gradient(148deg, #f0f9ff 0%, #bae6fd 35%, #7dd3fc 60%, #a5b4fc 100%);
  --hero-blob1: rgba(94,234,212,0.07);
  --hero-blob2: rgba(167,139,250,0.06);
  --icon-filter:    brightness(0) invert(1) opacity(0.82);
  --icon-filter-lg: brightness(0) invert(1) drop-shadow(0 0 22px rgba(94,234,212,0.38));
  --logo-bg:        rgba(94,234,212,0.15);
  --logo-border:    rgba(94,234,212,0.30);
  --card-shadow:    0 18px 44px rgba(0,0,0,0.28);
  --hero-scan:      rgba(255,255,255,0.012);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:           #04090f;
    --surface:      rgba(255,255,255,0.042);
    --surface-hov:  rgba(255,255,255,0.078);
    --border:       rgba(255,255,255,0.09);
    --border-hov:   rgba(255,255,255,0.22);
    --accent:       #5eead4;
    --accent-dim:   rgba(94,234,212,0.12);
    --accent2:      #a78bfa;
    --text:         #f0f9ff;
    --text-sub:     rgba(240,249,255,0.48);
    --text-dim:     rgba(240,249,255,0.26);
    --body-bg-color: #04090f;
    --body-bg-img:
      radial-gradient(ellipse 72% 52% at 12%  2%,  rgba(42,110,140,0.52) 0%, transparent 55%),
      radial-gradient(ellipse 55% 38% at 88% 14%,  rgba(90,60,160,0.40)  0%, transparent 50%),
      radial-gradient(ellipse 60% 55% at 48% 108%, rgba(30,80,120,0.32)  0%, transparent 52%);
    --temp-grad:     linear-gradient(148deg, #f0f9ff 0%, #bae6fd 35%, #7dd3fc 60%, #a5b4fc 100%);
    --hero-blob1:    rgba(94,234,212,0.07);
    --hero-blob2:    rgba(167,139,250,0.06);
    --icon-filter:    brightness(0) invert(1) opacity(0.82);
    --icon-filter-lg: brightness(0) invert(1) drop-shadow(0 0 22px rgba(94,234,212,0.38));
    --logo-bg:        rgba(94,234,212,0.15);
    --logo-border:    rgba(94,234,212,0.30);
    --card-shadow:    0 18px 44px rgba(0,0,0,0.28);
    --hero-scan:      rgba(255,255,255,0.012);
  }
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--f-body);
  font-weight: 400;
  background-color: var(--body-bg-color);
  background-image: var(--body-bg-img);
  min-height: 100dvh;
  color: var(--text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 90px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.30s, color 0.20s;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hov); border-radius: 2px; }


/* ════════════════════════════════
   HEADER
════════════════════════════════ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.site-logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  flex-shrink: 0;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--logo-bg);
  border: 1px solid var(--logo-border);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.25s, border-color 0.25s;
}

.site-logo span { color: var(--accent); }

/* right‑side group: nav + toggle */
.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.period-nav {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.period-link {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: var(--blur-sm);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
  white-space: nowrap;
}

.period-link:hover { color: var(--text); border-color: var(--border-hov); }

.period-link.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ─── Header map link ────────────────────── */
.header-map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s;
}
.header-map-link:hover,
.header-map-link.active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.header-map-link svg { flex-shrink: 0; }

/* ─── Theme toggle button ─────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  cursor: pointer;
  backdrop-filter: var(--blur-sm);
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.30s;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hov);
  color: var(--text);
  background: var(--surface-hov);
  transform: rotate(22deg);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
  stroke: currentColor;
}

/* Light mode (default): show moon icon (click → go dark) */
.t-sun  { display: none;  }
.t-moon { display: block; }

/* Dark mode: show sun icon (click → go light) */
[data-theme="dark"] .t-sun  { display: block; }
[data-theme="dark"] .t-moon { display: none;  }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-sun  { display: block; }
  :root:not([data-theme="light"]) .t-moon { display: none;  }
}


/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative;
  padding: 48px 40px 44px;
  margin-bottom: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  overflow: hidden;
  animation: fade-up 0.55s ease both;
  transition: background 0.30s, border-color 0.30s;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 90% 10%, var(--hero-blob1) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at  5% 90%, var(--hero-blob2) 0%, transparent 55%);
  pointer-events: none;
  transition: background 0.30s;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--hero-scan) 2px,
    var(--hero-scan) 4px
  );
  pointer-events: none;
  border-radius: var(--radius);
}

.hero-eyebrow {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 1;
}

.hero-temp-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 4px;
}

.hero-icon {
  width: clamp(84px, 13vw, 118px);
  height: clamp(84px, 13vw, 118px);
  filter: var(--icon-filter-lg);
  animation: icon-float 7s ease-in-out infinite;
  flex-shrink: 0;
  transition: filter 0.30s;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.hero-temp {
  font-family: var(--f-display);
  font-size: clamp(5.5rem, 17vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  padding: 0.06em 0.08em;
  background: var(--temp-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: temp-pulse 6s ease-in-out infinite;
  transition: background 0.30s;
}

@keyframes temp-pulse {
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(1.07); }
}

.hero-desc {
  font-size: 1.0rem;
  color: var(--text-sub);
  font-style: italic;
  font-weight: 300;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

.hero-current-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}
.hero-meta-sep { opacity: 0.4; }
.hero-sun-wind {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.83rem;
  color: var(--text-sub);
  font-weight: 400;
}


/* ════════════════════════════════
   ANM OBSERVATIONS
════════════════════════════════ */
.anm-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px 16px;
  margin-bottom: 24px;
}
.anm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.anm-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}
.anm-station {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.anm-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: auto;
}
.anm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px 14px;
}
.stat--wide { grid-column: span 2; }


/* ════════════════════════════════
   SECTION LABELS
════════════════════════════════ */
.section-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 13px;
  padding-left: 2px;
}


/* ════════════════════════════════
   HOURLY
════════════════════════════════ */
.hourly-wrap { margin-bottom: 34px; }

.hourly-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hour-card {
  flex: 1 0 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--blur-sm);
  padding: 18px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  scroll-snap-align: start;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  animation: slide-up 0.45s ease both;
}

.hour-card:nth-child(1)  { animation-delay: 0.06s; }
.hour-card:nth-child(2)  { animation-delay: 0.10s; }
.hour-card:nth-child(3)  { animation-delay: 0.14s; }
.hour-card:nth-child(4)  { animation-delay: 0.18s; }
.hour-card:nth-child(5)  { animation-delay: 0.22s; }
.hour-card:nth-child(6)  { animation-delay: 0.26s; }
.hour-card:nth-child(7)  { animation-delay: 0.30s; }
.hour-card:nth-child(8)  { animation-delay: 0.34s; }

.hour-card:hover {
  background: var(--surface-hov);
  border-color: var(--border-hov);
  transform: translateY(-2px);
}

.hour-time {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: -0.01em;
}

.hour-time::after {
  content: "ᵒᵒ";
  font-size: 0.58rem;
  vertical-align: super;
  margin-left: 1px;
  opacity: 0.5;
}

.hour-icon {
  width: 48px;
  height: 48px;
  filter: var(--icon-filter);
  transition: filter 0.30s;
}

.hour-temp {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--temp-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0.04em 0.06em;
}

.hour-cond {
  font-size: 0.70rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
  line-height: 1.3;
  max-width: 86px;
  margin-top: auto;
}
.hour-wind {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
}
.hour-pop {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
}


/* ════════════════════════════════
   DAILY
════════════════════════════════ */
.daily-wrap { margin-bottom: 34px; }

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 11px;
}

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  padding: 20px 18px;
  transition: background 0.20s, border-color 0.20s, transform 0.20s, box-shadow 0.20s;
  animation: slide-up 0.50s ease both;
}

.day-card:nth-child(1)  { animation-delay: 0.12s; }
.day-card:nth-child(2)  { animation-delay: 0.18s; }
.day-card:nth-child(3)  { animation-delay: 0.24s; }
.day-card:nth-child(4)  { animation-delay: 0.30s; }
.day-card:nth-child(5)  { animation-delay: 0.36s; }
.day-card:nth-child(6)  { animation-delay: 0.42s; }
.day-card:nth-child(7)  { animation-delay: 0.48s; }

.day-card:hover {
  background: var(--surface-hov);
  border-color: var(--border-hov);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.day-card--est {
  opacity: 0.72;
  border-style: dashed;
}
.day-card--est:hover { opacity: 0.9; }
.est-mark {
  font-size: 0.65em;
  opacity: 0.55;
  margin-left: 2px;
  vertical-align: super;
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.day-name {
  font-family: var(--f-display);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.day-date {
  font-size: 0.70rem;
  color: var(--text-dim);
  font-style: italic;
}

.day-mid {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.day-icon {
  width: 50px;
  height: 50px;
  filter: var(--icon-filter);
  flex-shrink: 0;
  transition: filter 0.30s;
}

.day-temp {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--temp-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0.04em 0.06em;
}

.day-cond {
  font-size: 0.72rem;
  color: var(--text-sub);
  font-style: italic;
  margin-top: 5px;
  line-height: 1.3;
}

.day-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-label {
  font-size: 0.58rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-val {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.stat-unit {
  font-size: 0.60rem;
  color: var(--text-dim);
  margin-left: 1px;
}


/* ════════════════════════════════
   MY CITIES
════════════════════════════════ */
.my-cities-wrap { margin-bottom: 28px; }

#myCity {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

#myCity > div { display: flex; align-items: center; }

#myCity > div:first-child {
  font-size: 0.67rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 500;
  margin-right: 4px;
}

.city-periods { margin-bottom: 34px; }
.nearby-cities { margin-top: 8px; }
.nearby-dist { font-size: 0.72em; opacity: 0.5; margin-left: 4px; }


/* ════════════════════════════════
   PILL LINKS (shared)
════════════════════════════════ */
.cityLink,
.myCityLink {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-sub);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: var(--blur-sm);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
  margin: 2px;
}

.cityLink:hover {
  color: var(--text);
  border-color: var(--border-hov);
  background: var(--surface-hov);
}

.cityLinkTemp {
  opacity: 0.7;
  font-size: 0.9em;
  margin-left: 1rem;
  font-weight: bold;
  color: var(--accent);  
}

.myCityLink {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  border-right: 0;
  color: var(--accent);
  padding-right: 10px;
}

.myCityLink:hover {
  color: var(--text);
  background: var(--accent-dim);
  border-color: var(--accent);
}

.del,
.delAll {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px 5px 7px;
  border: 1px solid rgba(239,68,68,0.35);
  border-left: 0;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  color: rgba(239,68,68,0.65);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  transition: background 0.14s, color 0.14s;
  margin-right: 6px;
}

.del:hover { background: rgba(239,68,68,0.10); color: rgba(239,68,68,0.90); }

.delAll {
  border-radius: var(--radius-pill);
  border-left: 1px solid rgba(239,68,68,0.35);
  font-size: 0.70rem;
  padding: 5px 12px;
  margin-right: 0;
}

.delAll:hover { background: rgba(239,68,68,0.10); color: rgba(239,68,68,0.85); }


/* ════════════════════════════════
   LINKS SECTION
════════════════════════════════ */
.error-404 {
  text-align: center;
  padding: 64px 24px 48px;
}
.error-404 .error-code {
  font-family: 'Syne', sans-serif;
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--border);
  margin-bottom: 16px;
}
.error-404 h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.error-404 p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.btn-home {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-home:hover { opacity: 0.85; }

.homepage-h1 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.links-section { margin-bottom: 32px; }
.links-section br { display: block; height: 18px; }
.links-section .section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
  /*border-top: 1px solid var(--border);*/
  padding-top: 14px;
  margin-top: 6px;
  margin-bottom: 10px;
}
.links-section .section-label:first-child {
  border-top: none;
  padding-top: 0;
}


/* ════════════════════════════════
   DIVIDER + FOOTER
════════════════════════════════ */
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0 22px; }

.site-footer { font-size: 0.73rem; color: var(--text-dim); line-height: 2; }
.site-footer a { color: var(--text-sub); transition: color 0.14s; }
.site-footer a:hover { color: var(--text); }


/* ════════════════════════════════
   TEMPERATURE COLOUR CLASSES
   --temp-grad  → overrides the gradient used by .hero-temp / .hour-temp / .day-temp
   color        → fallback for plain-text elements (e.g. stat-val min)
════════════════════════════════ */
/* Light theme (default) — saturated, high-contrast */
.tc-freeze { --temp-grad: linear-gradient(135deg, #1d4ed8, #60a5fa); color: #1d4ed8; }
.tc-cold   { --temp-grad: linear-gradient(135deg, #0369a1, #38bdf8); color: #0369a1; }
.tc-cool   { --temp-grad: linear-gradient(135deg, #0e7490, #22d3ee); color: #0e7490; }
.tc-mild   { --temp-grad: linear-gradient(135deg, #15803d, #4ade80); color: #15803d; }
.tc-warm   { --temp-grad: linear-gradient(135deg, #c2410c, #fb923c); color: #c2410c; }
.tc-hot    { --temp-grad: linear-gradient(135deg, #991b1b, #f87171); color: #991b1b; }

/* Dark theme — lighter, more vivid */
[data-theme="dark"] .tc-freeze { --temp-grad: linear-gradient(135deg, #93c5fd, #bfdbfe); color: #93c5fd; }
[data-theme="dark"] .tc-cold   { --temp-grad: linear-gradient(135deg, #38bdf8, #7dd3fc); color: #38bdf8; }
[data-theme="dark"] .tc-cool   { --temp-grad: linear-gradient(135deg, #5eead4, #99f6e4); color: #5eead4; }
[data-theme="dark"] .tc-mild   { --temp-grad: linear-gradient(135deg, #6ee7b7, #a7f3d0); color: #6ee7b7; }
[data-theme="dark"] .tc-warm   { --temp-grad: linear-gradient(135deg, #fdba74, #fde68a); color: #fdba74; }
[data-theme="dark"] .tc-hot    { --temp-grad: linear-gradient(135deg, #fb923c, #fca5a5); color: #fb923c; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tc-freeze { --temp-grad: linear-gradient(135deg, #93c5fd, #bfdbfe); color: #93c5fd; }
  :root:not([data-theme="light"]) .tc-cold   { --temp-grad: linear-gradient(135deg, #38bdf8, #7dd3fc); color: #38bdf8; }
  :root:not([data-theme="light"]) .tc-cool   { --temp-grad: linear-gradient(135deg, #5eead4, #99f6e4); color: #5eead4; }
  :root:not([data-theme="light"]) .tc-mild   { --temp-grad: linear-gradient(135deg, #6ee7b7, #a7f3d0); color: #6ee7b7; }
  :root:not([data-theme="light"]) .tc-warm   { --temp-grad: linear-gradient(135deg, #fdba74, #fde68a); color: #fdba74; }
  :root:not([data-theme="light"]) .tc-hot    { --temp-grad: linear-gradient(135deg, #fb923c, #fca5a5); color: #fb923c; }
}


/* ════════════════════════════════
   KEYFRAMES
════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════
   RESPONSIVE — Tablet
════════════════════════════════ */
@media (max-width: 768px) {
  body { padding: 0 14px 80px; }

  .days-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .day-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 6px;
    padding: 10px 14px;
    align-items: center;
  }
  .day-card:hover { transform: none; }

  .day-head {
    grid-column: 1; grid-row: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 0;
  }

  .day-mid {
    grid-column: 1; grid-row: 2;
    margin-bottom: 0;
    gap: 8px;
  }

  .day-icon  { width: 40px; height: 40px; }
  .day-temp  { font-size: 1.8rem; }
  .day-cond  { display: none; }

  .day-stats {
    grid-column: 2; grid-row: 1 / -1;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 4px;
    align-self: stretch;
    align-content: center;
  }

  .site-header { position: relative; }
  .theme-toggle { position: absolute; top: 24px; right: 0; }
  .header-end   { padding-right: 44px; }

  .hourly-scroll {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 4px 0 6px;
    gap: 5px;
  }
  .hour-card {
    flex: none;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    gap: 0;
    scroll-snap-align: none;
  }
  .hour-card:hover { transform: none; }
  .hour-time { min-width: 40px; }
  .hour-icon { width: 36px; height: 36px; margin: 0 10px; }
  .hour-temp { min-width: 46px; font-size: 1.15rem; margin-right: 10px; }
  .hour-cond { flex: 1; text-align: left; max-width: none; margin-top: 0; }
  .hour-wind { text-align: right; }
  .hour-pop { order: 10; margin-left: 8px; }
}


/* ════════════════════════════════
   RESPONSIVE — Mobile
════════════════════════════════ */
@media (max-width: 540px) {
  body { padding: 0 12px 70px; }
  .hero { padding: 20px 16px 18px; margin-bottom: 20px; }
  .hero h1 { font-size: 2.1rem; margin-bottom: 18px; }
  .hero-temp { font-size: 5rem; }
  .hero-icon { width: 76px; height: 76px; }
  .period-link { padding: 5px 11px; font-size: 0.73rem; }

}

@media (max-width: 400px) {
  .hero { padding: 16px 14px 14px; }
  .hero-temp { font-size: 4.4rem; }
  .hero-icon { width: 66px; height: 66px; }
  .site-header { padding: 18px 0 16px; margin-bottom: 24px; }
  .theme-toggle { top: 16px; }
}


/* ════════════════════════════════
   RESPONSIVE — Large screens
════════════════════════════════ */
@media (min-width: 1024px) {
  html { font-size: 1.0625rem; }
}

@media (min-width: 1400px) {
  html { font-size: 1.1875rem; }
}


/* ════════════════════════════════
   WEATHER CHARTS
════════════════════════════════ */

.chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  padding: 4px 0 0;
}

.chart-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 8px 14px 0;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.weather-chart {
  display: block;
  width: 100%;
  cursor: crosshair;
}

/* ANM Warning Banner */
.anm-warning {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 0.83rem;
  flex-wrap: wrap;
  text-decoration: none;
  cursor: pointer;
}
.anm-warning--galben     { background: #ffc107; border-left: 3px solid #c8960c; color: #1a1000; }
.anm-warning--portocaliu { background: #ff9800; border-left: 3px solid #e65100; color: #1a0800; }
.anm-warning--rosu       { background: #f44336; border-left: 3px solid #c62828; color: #fff; }
.anm-warning:hover { filter: brightness(1.08); }
.anm-warning-badge { font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.anm-warning-text  { flex: 1; min-width: 0; }
.anm-warning-meta  { opacity: .6; white-space: nowrap; font-size: 0.76rem; }

/* ANM Official Prognoza */
.anm-prognoza-grid {
  display: flex;
  gap: 4px;
  padding: 10px 14px 14px;
  overflow-x: auto;
}
.anm-prognoza-day {
  flex: 1;
  min-width: 60px;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: var(--card-bg, rgba(255,255,255,.04));
}
.anm-prognoza-lbl  { font-size: .72rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.anm-prognoza-temp { display: flex; justify-content: center; gap: 6px; font-weight: 600; margin-bottom: 4px; }
.anm-p-max { color: #f97316; }
.anm-p-min { color: var(--text-sub); font-weight: 400; }
.anm-prognoza-desc { font-size: .68rem; color: var(--text-sub); line-height: 1.3; }
@media (max-width: 540px) {
  .anm-prognoza-grid { flex-direction: column; overflow-x: unset; }
  .anm-prognoza-day  { min-width: unset; text-align: left; display: flex; align-items: center; gap: 10px; }
  .anm-prognoza-lbl  { margin-bottom: 0; }
  .anm-prognoza-temp { margin-bottom: 0; }
}

/* Air Quality Widget */
.aq-body   { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.aq-aqi    { display: flex; align-items: baseline; gap: 8px; }
.aq-val    { font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.aq-unit   { font-size: .72rem; color: var(--text-sub); }
.aq-stats  { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--text-sub); }
.aq-stats strong { color: var(--text); }
.aq-pollen { font-size: .8rem; color: var(--text-sub); }
.aq-badge  { margin-left: auto; font-size: .72rem; font-weight: 600; padding: 2px 10px; border-radius: 100px; }
.aq-good     { color: #16a34a; }
.aq-moderate { color: #ca8a04; }
.aq-poor     { color: #dc2626; }
.aq-bad      { color: #7c3aed; }
.aq-badge.aq-good     { background: rgba(22,163,74,.12);  }
.aq-badge.aq-moderate { background: rgba(202,138,4,.12);  }
.aq-badge.aq-poor     { background: rgba(220,38,38,.12);  }
.aq-badge.aq-bad      { background: rgba(124,58,237,.12); }

/* Meteoblue predictability bar */
.day-predictability {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0px 0px 0px;
  font-size: .7rem;
  color: var(--text-sub);
}
.day-predictability::before { content: 'Predictibilitate'; flex-shrink: 0; }
.day-pred-bar {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f97316, #22c55e);
  flex-shrink: 0;
  max-width: 60%;
}

/* Windy webcams */
.webcam-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px 14px;
}
.webcam-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text-sub);
  font-size: .7rem;
  line-height: 1.2;
  max-width: 200px;
}
.webcam-card img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}
.webcam-card:hover img { opacity: .85; }

@media (max-width: 540px) {
  .webcam-card { flex: 0 0 calc(50% - 5px); max-width: unset; }
}

/* Windy map section */
.windy-section { margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding: 0.5rem}
.windy-section iframe { display: block; }
.windy-overlays { display: flex; gap: 4px; }
.ov-btn {
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  font-size: .72rem;
  cursor: pointer;
  white-space: nowrap;
}
.ov-btn.active { background: #174e75; color: #fff; border-color: #174e75; }

/* ════════════════════════════════
   FAQ + HUB PAGES
════════════════════════════════ */
.section-label a { color: inherit; text-decoration: none; }
.section-label a:hover { color: var(--text); text-decoration: underline; }

.faq-wrap { margin: 0 0 32px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--card, transparent);
}
.faq-item > summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  list-style-position: inside;
}
.faq-item > p { margin: 10px 0 2px; font-size: 0.88rem; color: var(--text-sub); }

.hub-page { max-width: 900px; margin: 1.5rem auto; padding: 0 1rem; }
.hub-page > h1 { margin-bottom: .6rem; }
.hub-page > p { color: var(--text-sub); line-height: 1.6; margin-bottom: 1.4rem; }
.hub-page .anm-warning { display: block; margin-bottom: 18px; }
.hub-page .anm-warning p { margin: 8px 0; }
.hub-page .anm-warning .links-section { margin: 12px 0 0; }
.anm-warning-body { margin-top: 10px; font-size: 0.85rem; line-height: 1.55; }
.anm-warning-body p { margin: 8px 0; }

/* ════════════════════════════════
   MOON
════════════════════════════════ */
.moon-section { margin: 0 0 26px; }
.moon-section .moon-more { margin: 10px 0 0; font-size: .85rem; }
.moon-today { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.moon-today-icon { font-size: 2.6rem; line-height: 1; }
.moon-today-name { font-size: 1.15rem; font-weight: 600; }
.moon-today-sub  { font-size: .85rem; color: var(--text-sub); margin-top: 3px; }
.moon-highlights { margin-bottom: 26px; }

.moon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.moon-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
}
.moon-card--today { border-color: var(--accent, #174e75); }
.moon-card-date  { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.moon-card-icon  { font-size: 1.9rem; line-height: 1.3; }
.moon-card-name  { font-size: .82rem; font-weight: 500; }
.moon-card-illum { font-size: .76rem; color: var(--text-sub); margin-top: 2px; }
.moon-card-times { font-size: .72rem; color: var(--text-dim); margin-top: 5px; white-space: nowrap; }
