﻿:root {
  --v3-text: #eef4ff;
  --v3-muted: #b8c7e8;
  --v3-line: rgba(255, 255, 255, 0.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  color: var(--v3-text);
  font-family: "Outfit", "Segoe UI", sans-serif;
  background: #0b1328;
  overflow-x: hidden;
}

.v3-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("/images/out-bg-nature/800/noon.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: opacity 280ms ease;
}

.v3-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 550px at 70% 10%, rgba(120, 165, 255, 0.22), transparent 65%),
    linear-gradient(170deg, rgba(6, 12, 24, 0.22), rgba(7, 10, 18, 0.75));
  pointer-events: none;
}

.v3-nav { border-bottom: 1px solid var(--v3-line); }

.v3-nav-inner {
  width: min(1240px, 95vw);
  margin: 0 auto;
  padding: 0.6rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.v3-brand {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
}

.v3-nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.v3-nav-links a {
  color: var(--v3-muted);
  text-decoration: none;
  font-size: 0.77rem;
  letter-spacing: 0.03em;
}

.v3-account-slot {
  min-width: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v3-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--v3-text);
  text-decoration: none;
}

.v3-shell {
  width: min(1240px, 95vw);
  margin: 0 auto;
  padding: 0.9rem 0 0.95rem;
  display: grid;
  gap: 0.58rem;
}

.v3-header h1 {
  margin: 0.15rem 0 0.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.02;
}

.v3-kicker {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--v3-muted);
}

.v3-location, .v3-updated {
  margin: 0.05rem 0;
  color: var(--v3-muted);
  font-size: 0.86rem;
}

.v3-hero-actions { margin-top: 0.42rem; display: flex; gap: 0.5rem; }

.v3-cta {
  text-decoration: none;
  color: #e8f0ff;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  padding: 0.36rem 0.82rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.16);
}

.v3-cta-line { background: rgba(10, 15, 28, 0.42); }

.v3-now {
  border-top: 1px solid var(--v3-line);
  border-bottom: 1px solid var(--v3-line);
  padding: 0.62rem 0;
}

.v3-now h2, .v3-pane h3, .v3-favorites h3 {
  margin: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v3-muted);
}

.v3-now-line { display: flex; align-items: baseline; gap: 0.9rem; }
.v3-now-main { display: grid; gap: 0.14rem; }
.v3-now-datetime { margin: 0; font-size: 0.8rem; color: var(--v3-muted); }

.v3-now-temp {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.95;
}

.v3-now-label { margin: 0; font-size: clamp(1.05rem, 2.7vw, 1.55rem); }
.v3-now-meta { margin: 0.18rem 0 0.06rem; color: var(--v3-muted); font-size: 0.95rem; }
.v3-now-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.16rem; }
.v3-now-aqi, .v3-now-precip { margin: 0; color: var(--v3-muted); font-size: 0.85rem; }
.v3-now-summary { margin: 0.12rem 0 0; color: #dce8ff; font-size: 0.9rem; }

.v3-grid, .v3-lower { display: grid; gap: 0.65rem; }
.v3-grid { grid-template-columns: 1fr 1fr; }
.v3-lower { grid-template-columns: 1fr 1fr; }

.v3-pane {
  padding: 0.26rem 0 0.42rem;
  border-bottom: 1px solid var(--v3-line);
}

.v3-grid .v3-pane {
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  padding: 0.44rem 0.55rem 0.52rem;
  background: rgba(8, 13, 24, 0.16);
}

.v3-grid .v3-pane:last-child {
  background: rgba(18, 22, 33, 0.2);
}

.v3-context {
  margin: 0.16rem 0 0.4rem;
  font-size: 0.84rem;
  color: var(--v3-muted);
}

.v3-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.v3-inline-link {
  color: #d5e5ff;
  font-size: 0.78rem;
  text-decoration: none;
}

.v3-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.12rem 0 0.45rem;
}

.v3-tools label {
  font-size: 0.75rem;
  color: var(--v3-muted);
}

.v3-tools select {
  border: 1px solid var(--v3-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--v3-text);
  padding: 0.34rem 0.45rem;
}

.v3-hourly { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.38rem; }
.v3-daily { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.34rem; }
#v3-favorites { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.38rem; }
.v3-iq { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.38rem; }

.v3-hour, .v3-day, .v3-fav, .v3-iq-item {
  min-width: 0;
  padding: 0.31rem 0.4rem;
  border: 1px solid var(--v3-line);
  border-radius: 10px;
  background: rgba(7, 12, 22, 0.22);
  backdrop-filter: blur(4px);
}

.v3-fav {
  cursor: pointer;
  text-align: left;
  color: var(--v3-text);
  border: 1px solid var(--v3-line);
  font: inherit;
}

.v3-iq-item {
  text-decoration: none;
  color: var(--v3-text);
}

.v3-time, .v3-dayname, .v3-fav-name, .v3-iq-name {
  font-size: 0.73rem;
  color: var(--v3-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-temp, .v3-fav-temp, .v3-iq-score { font-size: 0.93rem; margin-top: 0.1rem; }
.v3-pop, .v3-iq-risk { font-size: 0.7rem; color: var(--v3-muted); }
.v3-cond {
  font-size: 0.7rem;
  color: #dbe7ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-alert { margin: 0.16rem 0; font-size: 0.9rem; }
.v3-alert strong { color: #ffd0b3; }

.v3-almanac { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: end; }
.v3-almanac label { display: grid; gap: 0.2rem; font-size: 0.75rem; color: var(--v3-muted); }
.v3-almanac input {
  width: 138px;
  border: 1px solid var(--v3-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--v3-text);
  padding: 0.4rem 0.48rem;
}
.v3-almanac button {
  border: 1px solid var(--v3-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #f5f9ff;
  padding: 0.4rem 0.72rem;
  cursor: pointer;
}

.v3-almanac-out {
  margin: 0.46rem 0 0;
  white-space: pre-wrap;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #d4e0f9;
  border-top: 1px solid var(--v3-line);
  padding-top: 0.5rem;
}

.v3-muted { margin: 0; color: var(--v3-muted); }

.v3-footer { border-top: 1px solid var(--v3-line); margin-top: 0.3rem; }
.v3-footer p {
  width: min(1240px, 95vw);
  margin: 0 auto;
  padding: 0.62rem 0 0.75rem;
  color: var(--v3-muted);
  font-size: 0.77rem;
}

@media (max-width: 1100px) {
  .v3-nav-inner { grid-template-columns: 1fr; }
  .v3-account-slot { justify-content: flex-start; }
  .v3-daily { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #v3-favorites, .v3-iq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .v3-shell { width: min(760px, 95vw); padding-top: 0.82rem; }
  .v3-grid, .v3-lower { grid-template-columns: 1fr; gap: 0.5rem; }
  .v3-now-stats { grid-template-columns: 1fr; }
  .v3-hourly { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .v3-daily { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  #v3-favorites, .v3-iq { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .v3-hourly { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v3-daily { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #v3-favorites, .v3-iq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-hero-actions { flex-wrap: wrap; }
}
