/* Weather card — dark, compact, readable */

:root{
  --card-bg: #0f172a;        /* slate-900 */
  --card-bg-2: #0b1220;      /* darker header grad */
  --text: #e5e7eb;           /* gray-200 */
  --text-dim: #cbd5e1;       /* slate-300 */
  --muted: rgba(255,255,255,.06);
  --badge: rgba(255,255,255,.12);
  --radius: 16px;
}

#wx-card {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  background: var(--card-bg);
  color: var(--text);
}

/* Header */
#wx-head {
  background: linear-gradient(90deg, var(--card-bg-2), #111827, var(--card-bg-2));
  padding: 16px 20px;
}
#wx-head .title { font-weight: 700; font-size: 16px; letter-spacing: .2px; }
#wx-head .meta  { font-size: 12px; opacity: .75; margin-top: 4px; }

/* Current block */
#wx-now {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  grid-template-columns: 1fr 1fr;
  line-height: 1.25;
}
#wx-now .big { font-size: 32px; font-weight: 800; line-height: 1.0; }
#wx-now .small { opacity: .85; font-size: 12px; }

/* Hourly scroller */
#wx-hours {
  padding: 10px 8px 6px;
  overflow-x: auto;
  white-space: nowrap;
}
.wx-hour {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 70px;
  padding: 8px 6px;
  margin: 0 4px;
  background: var(--muted);
  border-radius: 12px;
  text-align: center;
  line-height: 1.25;
}

.wx-hour .time { font-size: 12px; opacity: .85; margin-bottom: 2px; }
.wx-hour .temp { font-weight: 700; margin-top: 2px; font-size: 14px; }
.wx-hour .meta { font-size: 11px; opacity: .9; line-height: 1.2; margin-top: 2px; }
.wx-hour .badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--badge);
  margin-top: 4px;
  display: inline-block;
}

.wx-hour .time   { font-size: 12px; opacity: .85; }
.wx-hour .temp   { font-weight: 700; margin-top: 2px; }
.wx-hour .meta   { font-size: 11px; opacity: .9; }
.wx-hour .badge  {
  font-size: 11px; padding: 2px 6px; border-radius: 999px; background: var(--badge);
  margin-top: 4px; display: inline-block;
}

/* Daily tiles */
#wx-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
  padding: 12px 12px 16px;
}

.wx-day {
  background: var(--muted);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.wx-day .day {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.wx-day .wx-ic {
  width: 48px;
  height: 48px;
  margin: 2px 0;
}

.wx-day .temps {
  font-size: 14px;
  margin: 4px 0;
}

.wx-day .temps strong {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.wx-day .meta {
  font-size: 11px;
  opacity: .85;
  line-height: 1.2;
}


/* General small text */
.small { opacity: .85; font-size: 12px; }

/* Reduce scrollbar visual weight on WebKit */
#wx-hours::-webkit-scrollbar { height: 8px; }
#wx-hours::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 10px; }
