:root{
  /* Backgrounds */
  --bg:#F8FAFC;
  --card:rgba(255,255,255,0.92);

  /* Brand */
  --primary:#2563EB;
  --accent:#F59E0B;
  --success:#16A34A;

  /* Text */
  --text:#0F172A;
  --muted:#64748B;

  /* UI */
  --radius:18px;
  --shadow:0 14px 34px rgba(2,6,23,0.10);
  --shadow-soft:0 10px 25px rgba(2,6,23,0.06);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:'Inter', sans-serif;
  color:var(--text);

  background:
    radial-gradient(1200px 650px at 15% 10%, rgba(37, 99, 235, 0.20) 0%, transparent 60%),
    radial-gradient(900px 520px at 85% 25%, rgba(245, 158, 11, 0.18) 0%, transparent 55%),
    radial-gradient(900px 520px at 55% 90%, rgba(22, 163, 74, 0.14) 0%, transparent 60%),
    var(--bg);
}

.container{
  width:min(420px,92vw);
  margin:18px auto;
  padding:14px;
}

/* Header */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}

.header h1{
  margin:0;
  font-size:18px;
  font-weight:900;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.back-btn{
  text-decoration:none;
  color:var(--primary);
  font-weight:900;
  font-size:13px;
  white-space:nowrap;

  background: rgba(37, 99, 235, 0.10);
  padding:8px 10px;
  border-radius:999px;
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.back-btn:active{ transform: scale(0.98); }

.header-space{ width:55px; }

/* Card */
.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow-soft);
  margin-bottom:12px;
  border: 1px solid rgba(2,6,23,0.06);
}

.top-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

/* Pill */
.pill{
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.14);
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
}

.muted{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.small-muted{
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

/* City selector + days toggle */
.city-selector,
.days-toggle{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 12px;
}

.city-btn,
.days-btn{
  border:none;
  background: rgba(2,6,23,0.04);
  border: 1px solid rgba(2,6,23,0.06);
  padding:8px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  color:var(--text);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}

.city-btn:hover,
.days-btn:hover{
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
  color: var(--primary);
}

.city-btn.active,
.days-btn.active{
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.18);
  color: var(--primary);
}

.city-btn:active,
.days-btn:active{ transform: scale(0.96); }

/* Today summary box */
.today-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;

  background: rgba(245, 158, 11, 0.10);           /* Accent subtle */
  border-radius:16px;
  padding:12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.today-title{
  font-weight:900;
  font-size:14px;
  margin-bottom:4px;
}

.today-temp{
  font-size:28px;
  font-weight:900;
}

/* Refresh button */
.refresh-btn{
  margin-top:12px;
  width:100%;
  border:none;
  border-radius:14px;
  padding:12px 14px;

  background: var(--primary);
  color:#fff;

  font-weight:900;
  font-size:14px;
  cursor:pointer;

  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.refresh-btn:hover{
  filter: brightness(1.03);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.26);
}

.refresh-btn:active{ transform: scale(0.99); }

/* Section title */
.section-h2{
  margin:0 0 10px;
  font-size:14px;
  font-weight:900;
  color: var(--text);
}

/* Forecast list */
.forecast-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.day-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border-radius:16px;

  background: rgba(2,6,23,0.04);
  border:1px solid rgba(2,6,23,0.06);
}

.day-name{
  font-weight:900;
  font-size:13px;
}

.day-meta{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin-top:3px;
}

.day-right{
  text-align:left;
}

.day-temp{
  font-weight:900;
  font-size:13px;
  color: var(--text);
}
