:root{
  --bg1:#0b1020;
  --bg2:#0f1a38;
  --card: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, #1f3a7a 0%, transparent 60%),
              radial-gradient(900px 600px at 90% 20%, #7a2d7a 0%, transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(800px 500px at 10% 80%, rgba(37,170,255,.22), transparent 60%),
    radial-gradient(900px 700px at 80% 90%, rgba(255,155,55,.18), transparent 60%);
  filter: blur(30px);
  z-index:-1;
}

.app{
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px 40px;
}

.top{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom: 18px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.logo{
  width:48px; height:48px;
  display:grid; place-items:center;
  border:1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  font-size: 22px;
}
h1{ margin:0; font-size: 20px; letter-spacing:.2px;}
.sub{ margin:4px 0 0; color:var(--muted); font-size: 13px; }

.actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.search{
  display:flex;
  gap:10px;
  padding: 10px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.search input{
  width: 280px;
  max-width: 60vw;
  background: transparent;
  border: 0;
  outline:none;
  color: var(--text);
  font-size: 14px;
}
.search input::placeholder{ color: rgba(255,255,255,.55); }
.row{ display:flex; gap:10px; }

.btn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 16px;
  cursor:pointer;
  font-weight: 650;
  letter-spacing:.1px;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: rgba(255,255,255,.14);
}

.card{
  border:1px solid var(--stroke);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.status{ min-height: 22px; }
.toast{
  font-size: 13px;
  color: var(--muted);
}

.current{
  display:flex;
  gap: 16px;
  justify-content:space-between;
  align-items:stretch;
  flex-wrap:wrap;
}

.left{ flex: 1 1 520px; }
.right{ flex: 0 1 280px; display:flex; flex-direction:column; gap: 12px; }

h2{ margin:0; font-size: 26px; }
.meta{ margin: 6px 0 12px; color: var(--muted); }

.tempRow{
  display:flex;
  gap: 14px;
  align-items:center;
  flex-wrap:wrap;
}
.temp{
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
}
.temp span{ display:inline-block; }
#tempUnit{ font-size: 26px; margin-left: 6px; color: rgba(255,255,255,.82); font-weight:700; }

.iconWrap{
  width: 72px;
  height: 72px;
  display:grid; place-items:center;
  border-radius: 20px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
}
.iconWrap img{
  width: 56px; height: 56px;
}

.chips{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.chip{
  flex: 1 1 140px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 10px 12px;
  display:flex; justify-content:space-between; gap:10px;
}
.chip span{ color: var(--muted); font-size: 13px; }
.chip b{ font-size: 14px; }

.mini{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 12px;
}
.mini h3{ margin: 0 0 8px; font-size: 14px; color: rgba(255,255,255,.88); }
.miniLine{
  margin: 8px 0 0;
  display:flex; justify-content:space-between;
  color: var(--muted);
}
.miniLine b{ color: var(--text); }

.hint{
  border:1px dashed rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.sep{
  margin: 16px 0;
  border:0;
  border-top:1px solid rgba(255,255,255,.14);
}

.forecastHead{
  display:flex; justify-content:space-between; align-items:baseline;
  gap:10px;
}
.forecastHead h3{ margin:0; font-size: 15px; }
.muted{ margin:0; color: var(--muted); font-size: 12px; }

.forecastGrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  overflow-x:auto;
  padding-bottom: 6px;
}
.forecastItem{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 10px;
  min-width: 130px;
}
.forecastItem .t{ color: var(--muted); font-size: 12px; }
.forecastItem .v{ font-size: 16px; font-weight: 800; margin: 8px 0 4px; }
.forecastItem .d{ color: var(--muted); font-size: 12px; display:flex; gap:6px; align-items:center; }
.forecastItem img{ width: 34px; height: 34px; }

.foot{
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align:center;
}
.foot a{ color: rgba(255,255,255,.82); text-decoration: none; }
.foot a:hover{ text-decoration: underline; }
.pill{
  padding: 2px 8px;
  border:1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
