/* ════════════════════════════════════════════════════════
   Cumberland Weather Network — 2026 Edition
   index.css
   Same structure as 1994Severe.css — new visual skin only
════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ══════════════════════════════════════
   DAY PALETTE — 2026
   Clean sky blues, crisp whites, slate accents
══════════════════════════════════════ */
:root {
  --page:         #d8eaf8;
  --frame:        #edf5fd;
  --panel:        rgba(255,255,255,0.80);
  --panel-deep:   #c4d9f0;
  --border:       #a2c0de;
  --border-hi:    #4a8fd0;
  --text:         #0d1e30;
  --muted:        #456280;
  --accent:       #1468c0;
  --accent2:      #0a4a96;
  --red:          #bf1c1c;
  --red-hi:       #e83030;
  --shadow:       rgba(14,44,84,.12);
  --glass:        rgba(255,255,255,.60);
  --glass-border: rgba(255,255,255,.80);
}

/* ══════════════════════════════════════
   NIGHT PALETTE — 2026
   Deep navy, electric cyan, cool slate
══════════════════════════════════════ */
html[data-theme="night"] {
  --page:         #060d1a;
  --frame:        #0a1428;
  --panel:        rgba(12,22,44,0.85);
  --panel-deep:   #040a14;
  --border:       #162c52;
  --border-hi:    #284880;
  --text:         #c8dcf0;
  --muted:        #527898;
  --accent:       #30a0f8;
  --accent2:      #1670cc;
  --red:          #b01818;
  --red-hi:       #ee2828;
  --shadow:       rgba(0,6,22,.70);
  --glass:        rgba(8,16,36,.78);
  --glass-border: rgba(40,80,140,.30);
}

/* ══ RESET ══ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth }
button,select { font:inherit }

/* ══ BODY ══ */
body {
  min-height: 100vh;
  padding: clamp(12px,3vw,28px);
  background-color: var(--page);
  background-image:
    radial-gradient(ellipse at 18% 8%,  rgba(100,180,255,.22) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 92%, rgba(20, 90,220,.14)  0%, transparent 48%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background-color 650ms ease, color 650ms ease;
}

/* ══ OUTER FRAME ══ */
.cwn-frame {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(16px,3vw,28px);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--glass-border);
  border-radius: 24px;
  box-shadow:
    0 8px 40px var(--shadow),
    inset 0 1px 0 var(--glass-border);
  transition: background 650ms ease, border-color 650ms ease, box-shadow 650ms ease;
}

/* ══ HEADER ══ */
.cwn-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border-hi);
  text-align: center;
  transition: border-color 650ms ease;
}
.cwn-logo-wrap  { width: min(100%, 820px) }
.cwn26-svg      { display:block; width:100%; height:auto; overflow:visible }

.cwn-title-line {
  font-size: clamp(1rem,3vw,1.45rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  transition: color 650ms ease;
}
.cwn-station-line {
  font-size: clamp(.7rem,2vw,.88rem);
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color 650ms ease;
}

/* ══ HEADER CONTROLS ══ */
.cwn-header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  width: 100%;
}
.cwn-time {
  padding: 7px 20px;
  background: var(--panel-deep);
  border: 1.5px solid var(--border-hi);
  border-radius: 999px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 650ms ease, color 650ms ease;
}
.cwn-btn {
  min-height: 40px;
  padding: 7px 18px;
  border: 1.5px solid var(--border-hi);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  touch-action: manipulation;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 650ms ease, border-color 650ms ease,
              box-shadow 200ms ease, filter 150ms ease, transform 100ms ease;
}
.cwn-btn:hover  { filter:brightness(1.1); box-shadow:0 4px 16px var(--shadow) }
.cwn-btn:active { transform:translateY(1px) }
.cwn-btn:focus-visible { outline:2px solid var(--accent); outline-offset:3px }

/* ══ DIRECTORY DROPDOWN ══ */
.directory-nav { position:relative; display:inline-block }
.directory-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: none;
  min-width: 264px;
  padding: 6px;
  list-style: none;
  background: var(--frame);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--border-hi);
  border-radius: 16px;
  box-shadow: 0 16px 48px var(--shadow);
  transition: background 650ms ease;
}
.directory-nav.open .directory-menu { display:block }
.directory-link {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  border-radius: 10px;
  transition: background 150ms ease, color 150ms ease;
}
.directory-link:hover                  { background:var(--panel-deep); color:var(--accent) }
.directory-link[aria-current="page"]   { color:var(--accent); background:var(--panel-deep); font-weight:700 }
.directory-link:focus-visible          { outline:2px solid var(--accent); outline-offset:2px }

/* ══ ALERT TICKER ══ */
.alert-ticker-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 14px;
  overflow: hidden;
  background: var(--red);
  border: 1.5px solid var(--red-hi);
  border-radius: 12px;
  height: 40px;
  animation: ticker-pulse 2.4s ease-in-out infinite;
  transition: background 650ms ease;
}
.alert-ticker-wrap[hidden] { display:none }
@keyframes ticker-pulse {
  0%,100% { box-shadow:0 0 10px rgba(200,0,0,.35) }
  50%      { box-shadow:0 0 22px rgba(255,30,30,.65) }
}
.alert-ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 100%;
  background: var(--red-hi);
  border-radius: 10px 0 0 10px;
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}
.alert-ticker-icon { display:inline-block; font-size:1rem; animation:icon-flash 1s step-end infinite }
@keyframes icon-flash { 0%,100%{opacity:1} 50%{opacity:0} }
.alert-ticker-outer  { flex:1; overflow:hidden; height:100%; display:flex; align-items:center }
.alert-ticker-track  {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll linear infinite;
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
}
@keyframes ticker-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ══ FIELD LABEL ══ */
.field-label {
  display: block;
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color 650ms ease;
}

/* ══ CITY SELECT ══ */
.cwn-city-select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1.5px solid var(--border-hi);
  border-radius: 12px;
  color: var(--text);
  font-size: .96rem;
  font-weight: 500;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 650ms ease, border-color 650ms ease;
}
.cwn-city-select:focus-visible { outline:2px solid var(--accent); outline-offset:3px }

/* ══ FORECAST STRIP ══ */
.weather-icons {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}
.icon-card {
  min-width: 0;
  padding: 12px 6px 10px;
  text-align: center;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 650ms ease, border-color 650ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.icon-card:hover { transform:translateY(-2px); box-shadow:0 6px 20px var(--shadow) }
.period-name {
  min-height: 2em;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: color 650ms ease;
}
.wx-icon {
  display: block;
  margin: 6px auto 4px;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(20,100,200,.22));
}
.period-temp {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 4px 0;
  transition: color 650ms ease;
}
.period-desc { min-height:2.4em; font-size:.62rem; line-height:1.3; color:var(--text) }
.period-rain { color:var(--muted); font-size:.62rem; margin-top:4px; transition:color 650ms ease }

/* ══ CONTENT GRID ══ */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
  gap: 16px;
  margin-top: 16px;
}
.panel {
  min-width: 0;
  padding: clamp(14px,2.5vw,20px);
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 650ms ease, border-color 650ms ease;
}
.panel-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border-hi);
  font-size: clamp(.95rem,2.5vw,1.15rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
  transition: color 650ms ease, border-color 650ms ease;
}

/* ══ CURRENT CONDITIONS ══ */
.current-layout {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: start;
  gap: 14px;
}
.current-icon-box {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  background: var(--panel-deep);
  border: 1.5px solid var(--border-hi);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background 650ms ease;
}
.current-live-symbol {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(48,160,248,.30));
}
.current-data   { display:flex; flex-direction:column; gap:6px }
.temperature {
  font-size: clamp(2rem,6vw,2.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.02em;
  transition: color 650ms ease;
}
.forecast-item { font-size:.88rem; font-weight:500; line-height:1.5; color:var(--text) }
.status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.5;
  transition: color 650ms ease;
}

/* ══ ALERTS INLINE ══ */
.alerts-inline { margin-top:12px }
.alert-inline-row {
  padding: 9px 13px;
  margin-bottom: 7px;
  background: var(--panel-deep);
  border-left: 4px solid var(--red-hi);
  border-radius: 0 10px 10px 0;
  font-size: .8rem;
  line-height: 1.45;
  transition: background 650ms ease;
}
.alert-event {
  color: var(--red-hi);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 3px;
  transition: color 650ms ease;
}

/* ══ RADAR ══ */
.radar-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 190px;
  object-fit: contain;
  background: #000c18;
  border: 1.5px solid var(--border-hi);
  border-radius: 14px;
  box-shadow: 0 2px 14px var(--shadow);
  transition: border-color 650ms ease;
}

/* ══ FOOTER ══ */
.cwn-footer {
  margin-top: 20px;
  padding-top: 16px;
  text-align: center;
  border-top: 1.5px solid var(--border);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color 650ms ease, border-color 650ms ease;
}

/* ══ A11Y ══ */
.visually-hidden {
  position:absolute; width:1px; height:1px; padding:0;
  margin:-1px; overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* ══ RESPONSIVE ══ */
@media(max-width:760px){
  .weather-icons   { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .content-grid    { grid-template-columns:1fr }
}
@media(max-width:480px){
  body                  { padding:8px 0 }
  .cwn-frame            { border-radius:16px }
  .weather-icons        { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .cwn-header-controls  { flex-direction:column; align-items:stretch }
  .cwn-time,.cwn-btn    { width:100% }
  .current-layout       { grid-template-columns:72px 1fr }
  .current-icon-box     { width:72px; height:72px }
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after { transition:none!important; animation:none!important }
}
