/* =========================================================
   Theme variables
========================================================= */
:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --faint: rgba(255,255,255,0.55);
  --line: rgba(255,255,255,0.12);
  --accent: #9dd7ff;
  --accent2: #c9b6ff;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius2: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* =========================================================
   Global reset
========================================================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(157,215,255,0.25), transparent 55%),
    radial-gradient(1000px 650px at 90% 10%, rgba(201,182,255,0.18), transparent 60%),
    var(--bg);

  background-attachment: fixed;
}

/* =========================================================
   Top bar
========================================================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(10,14,30,0.72);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand-mark{
  width: 38px;
  height: 38px;
  display:grid;
  place-items:center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(157,215,255,0.35), rgba(201,182,255,0.22));
  border: 1px solid var(--line);
  font-weight: 700;
}

.brand-title{
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-subtitle{
  color: var(--muted);
  font-size: 13px;
}

.status{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(157,215,255,0.65);
}

/* =========================================================
   Hero
========================================================= */
.hero{
  position: relative;
  height: 150px;
  border-bottom: 1px solid var(--line);
  overflow:hidden;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay{
  position:absolute;
  inset:0;
  padding: 18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background: linear-gradient(to top, rgba(10,14,30,0.75), rgba(10,14,30,0.05));
}

.hero-title{
  font-size: 18px;
  font-weight: 700;
}
.hero-meta{
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Layout
========================================================= */
.layout{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

/* =========================================================
   Sidebar
========================================================= */
.sidebar{
  position: sticky;
  top: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.sidebar-header{
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.sidebar h2{
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--muted);
}

.search{
  width:100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
  color: var(--text);
}

.week-list{
  list-style:none;
  margin:0;
  padding: 8px;
  max-height: calc(100vh - 300px);
  overflow:auto;
}

.week-link{
  display:block;
  padding: 10px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--text);
  border: 1px solid transparent;
}

.week-link:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.week-link.active{
  background: rgba(157,215,255,0.12);
  border-color: rgba(157,215,255,0.25);
}

.week-top{
  display:flex;
  justify-content:space-between;
}

.week-title{
  font-weight: 600;
  font-size: 14px;
}

.week-date{
  font-size: 12px;
  color: var(--muted);
}

.week-snippet{
  font-size: 12px;
  color: var(--faint);
}

.sidebar-footer{
  padding: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

/* =========================================================
   Main content
========================================================= */
.content{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

/* =========================================================
   Generic card (used by footer, legacy blocks)
========================================================= */
.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-header{
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.card-body{
  padding: 16px;
}

/* =========================================================
   Minimal weekly forecast format
========================================================= */
.zw-forecast{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.zw-forecast > h1{
  margin: 0;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
}

.zw-forecast > .kicker{
  margin: 14px 16px 12px;
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  font-size: 12px;
}

.zw-forecast > p{
  margin: 0 16px 12px;
  line-height: 1.55;
}

.zw-forecast > h2{
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.zw-forecast > ul{
  list-style:none;
  padding: 16px;
  margin: 0;
  display:grid;
  gap: 10px;
}

.zw-forecast > ul > li{
  padding: 10px 12px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.14);
}

.zw-forecast > ul > li > strong{
  display:block;
  margin-bottom: 4px;
}

/* =========================================================
   Footer
========================================================= */
.footer{
  padding: 12px;
  text-align:center;
}

.fineprint{
  font-size: 12px;
  color: var(--faint);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px){
  .layout{
    grid-template-columns: 1fr;
  }
  .sidebar{
    position: static;
  }
}
