/* ================================================================
   STORMCAST — live hero add-ons
   • city search (typeahead over 29k city pages)
   • the real app's HeroWeatherCard + StatusCard tiles (React bundle)
   • live radar / 7-day strip / 24h sparkline — landing-only extras below
   ================================================================ */

/* ── REACT WIDGET MOUNT (real app HeroWeatherCard + StatusCard tiles) ── */
.hero-viz {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 480px;
  margin-left: auto;
  gap: 10px;
}
.stormcast-hero-root { width: 100%; }
.stormcast-hero-fallback {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.9), rgba(8, 12, 24, 0.9));
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ── ACTIONS ROW (download CTA + precise location, under the widget) ── */
.hero-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.hero-download-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 14px rgba(250, 204, 21, 0.28);
  transition: transform 0.15s, box-shadow 0.2s;
}
.hero-download-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(250, 204, 21, 0.4); }

.hero-coord-precise {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(148, 178, 224, 0.06);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hero-coord-precise:hover { background: rgba(250, 204, 21, 0.08); border-color: rgba(250, 204, 21, 0.3); color: var(--accent); }
.hero-coord-precise.locating svg { animation: precise-spin 1s linear infinite; }
@keyframes precise-spin { to { transform: rotate(360deg); } }

/* ── CITY SEARCH ─────────────────────────────────────────────────── */
.wx-search {
  position: relative;
  margin: 26px 0 4px;
  max-width: 520px;
}
.wx-search-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.wx-search-label .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
.wx-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 54px;
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.9), rgba(8, 12, 24, 0.9));
  border: 1px solid var(--line-2);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.wx-search-box:focus-within {
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.2), 0 0 32px rgba(250, 204, 21, 0.08), 0 12px 40px rgba(0, 0, 0, 0.4);
}
.wx-search-box svg { flex-shrink: 0; color: var(--mute); }
.wx-search-box:focus-within svg { color: var(--accent); }
.wx-search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
}
.wx-search-box input::placeholder { color: var(--mute-2); }
.wx-search-kbd {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 7px;
  background: rgba(148, 178, 224, 0.05);
}
.wx-search-box:focus-within .wx-search-kbd { display: none; }

.wx-search-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 60;
  background: rgba(10, 15, 28, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.wx-search-drop[hidden] { display: none; }
.wx-search-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.wx-search-item:last-of-type { border-bottom: none; }
.wx-search-item strong { color: var(--ink); font-weight: 600; }
.wx-search-item strong mark {
  background: none;
  color: var(--accent);
}
.wx-search-item .st {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.wx-search-item .go {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute-2);
  opacity: 0;
  transition: opacity 0.15s;
}
.wx-search-item:hover, .wx-search-item.sel {
  background: rgba(250, 204, 21, 0.06);
}
.wx-search-item:hover .go, .wx-search-item.sel .go { opacity: 1; }
.wx-search-empty, .wx-search-loading {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.wx-search-foot {
  display: block;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  background: rgba(148, 178, 224, 0.04);
  border-top: 1px solid var(--line);
}
.wx-search-foot:hover { color: var(--accent); }

/* ── 24H SPARKLINE (landing-only, top of the extras card) ────────── */
.lc-spark { padding: 14px 16px 4px; position: relative; }
.lc-spark[hidden] { display: none; }
.lc-spark-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-bottom: 4px;
}
.lc-spark-head span:last-child { color: var(--ink-2); }
.lc-spark canvas {
  width: 100%;
  height: 34px;
  display: block;
}

/* ── LIVE RADAR PANEL ───────────────────────────────────────────── */
.lc-radar {
  position: relative;
  height: 188px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #080c16;
}
.lc-radar[hidden] { display: none; }
.lc-radar-tiles {
  position: absolute;
  inset: 0;
}
.lc-radar-tiles img {
  position: absolute;
  width: 256px; height: 256px;
  user-select: none;
  pointer-events: none;
}
.lc-radar-tiles img.base { filter: brightness(0.75) saturate(0.7); }
.lc-radar-tiles img.rad {
  opacity: 0.78;
  mix-blend-mode: screen;
  transition: opacity 0.18s linear;
}
.lc-radar-marker {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25), 0 0 14px rgba(250, 204, 21, 0.8);
  z-index: 3;
}
.lc-radar-marker::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 50%;
  animation: radar-ping 2.2s ease-out infinite;
}
@keyframes radar-ping {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
.lc-radar-top {
  position: absolute;
  top: 10px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}
.lc-radar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fecaca;
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  padding: 4px 8px;
  backdrop-filter: blur(4px);
}
.lc-radar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse 1.4s ease-in-out infinite;
}
.lc-radar-time {
  font-size: 10px;
  color: var(--ink-2);
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 8px;
  backdrop-filter: blur(4px);
}
.lc-radar-attr {
  position: absolute;
  bottom: 6px; right: 10px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: rgba(126, 138, 166, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
/* radar sweep sheen */
.lc-radar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, transparent 40%, rgba(148, 178, 224, 0.05) 50%, transparent 60%);
  background-size: 300% 100%;
  animation: radar-sheen 7s linear infinite;
  pointer-events: none;
}
@keyframes radar-sheen {
  0%   { background-position: 120% 0; }
  100% { background-position: -60% 0; }
}

/* ── 7-DAY STRIP ────────────────────────────────────────────────── */
.lc-week {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-bottom: 1px solid var(--line);
}
.lc-week[hidden] { display: none; }
.lc-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 2px 11px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.lc-day:last-child { border-right: none; }
.lc-day-name {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.lc-day svg { width: 17px; height: 17px; }
.lc-day-hi {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.lc-day-lo {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute);
}

/* ── GO-LIVE FLOURISH ───────────────────────────────────────────── */
.livecard.is-live {
  animation: card-golive 1.6s ease-out 1;
}
@keyframes card-golive {
  0%   { box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 80px rgba(0,0,0,0.6), 0 0 0 rgba(34,197,94,0); }
  35%  { box-shadow: 0 0 0 1px rgba(34,197,94,0.55), 0 30px 80px rgba(0,0,0,0.6), 0 0 70px rgba(34,197,94,0.28); }
  100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(79,141,244,0.05); }
}
.lc-disclaimer.live {
  color: var(--green) !important;
  opacity: 0.85;
}
.hero-coord.live-loc .ping::before,
.hero-coord.live-loc .ping::after { background: var(--green); }
.hero-coord.live-loc #hero-coord-name { color: var(--green); }

@media (max-width: 720px) {
  .wx-search { max-width: none; }
  .hero-viz { max-width: none; align-items: stretch; }
  .lc-radar { height: 165px; }
}
