/* status.wanshow.bingo — same look as the admin panel's Home and Services pages. */
@font-face {
  font-family: 'Dosis';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/dosis-latin.woff2') format('woff2');
}

:root {
  --bg: #0E0F11;
  --surface: #16181B;
  --surface2: #1E2125;
  --border: #2B3036;
  --text: #ECECEE;
  --muted: #9AA0A8;
  --accent: #C13E05;
  --accent-hot: #F24405;
  --accent-300: #FF7A45;
  --danger: #DC3741;
  --success: #3FB950;
  --warn: #E8A33D;
  --off: #4A5058;
  --nodata: #24282D;
  --radius: 8px;
  --font: 'Dosis', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5; font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 800; margin: 0; letter-spacing: .2px; }
a { color: var(--accent-300); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.btn {
  display: inline-block; text-decoration: none;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.15); color: #fff;
  border-radius: var(--radius); padding: 7px 12px; font-weight: 700; font-size: 14px;
}
.btn:hover { background: rgba(0,0,0,.3); }

/* ---- top bar (the panel's orange bar) ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, calc((100vw - 980px) / 2));
  background: linear-gradient(45deg, #C13E05, #912700); color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.wordmark-logo { height: 30px; width: auto; display: block; }
.wordmark .sub {
  font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(0,0,0,.22); padding: 3px 8px; border-radius: 5px;
}

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

/* ---- notice ---- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(232,163,61,.10); border: 1px solid rgba(232,163,61,.35);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
}
.notice.info { background: rgba(255,122,69,.08); border-color: rgba(255,122,69,.3); }
.notice.down { background: rgba(220,55,65,.10); border-color: rgba(220,55,65,.4); }
.notice-icon { font-size: 22px; line-height: 1.2; }
.notice-label { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.notice p { margin: 2px 0 4px; font-size: 17px; overflow-wrap: anywhere; }

/* ---- hero (as on the panel's Home page) ---- */
.hero {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.hero.ok { background: linear-gradient(135deg, rgba(63,185,107,.16), rgba(63,185,107,.05)); border-color: rgba(63,185,107,.4); }
.hero.degraded { background: linear-gradient(135deg, rgba(232,163,61,.18), rgba(232,163,61,.05)); border-color: rgba(232,163,61,.5); }
.hero.down { background: linear-gradient(135deg, rgba(220,55,65,.18), rgba(220,55,65,.05)); border-color: rgba(220,55,65,.5); }
.hero .big-dot { font-size: 34px; line-height: 1; }
.hero h1 { font-size: 24px; }
.hero p { margin: 4px 0 0; }

.showline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  font-weight: 600;
}
.live-pill {
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; letter-spacing: .5px;
}

/* ---- services ---- */
.section-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 28px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.legend { display: flex; gap: 14px; flex-wrap: wrap; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--nodata); }
.sq.up { background: var(--success); }
.sq.partial { background: var(--warn); }
.sq.down { background: var(--danger); }
.sq.off { background: var(--off); }

.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc h3 { font-size: 18px; }
.svc .desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; font-size: 15px; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(154,160,168,.15); }
.status.up .dot { background: var(--success); box-shadow: 0 0 0 3px rgba(63,185,80,.18); }
.status.down .dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(220,55,65,.2); }
.status.off .dot { background: var(--off); box-shadow: none; }
.status.up { color: #7ee08a; }
.status.down { color: #ff8a92; }
.status.off { color: var(--muted); }

.bars {
  display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px;
  margin-top: 14px; height: 30px;
}
.bars i { display: block; border-radius: 2px; background: var(--nodata); min-width: 0; }
.bars i.up { background: var(--success); }
.bars i.partial { background: var(--warn); }
.bars i.down { background: var(--danger); }
.bars i.off { background: var(--off); }
.bars i:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.bars-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }

.foot { margin-top: 28px; font-size: 14px; text-align: center; }

@media (max-width: 560px) {
  .hero { padding: 16px; gap: 14px; }
  .hero h1 { font-size: 20px; }
  .svc-head { flex-direction: column; gap: 6px; }
  .bars { gap: 2px; height: 26px; }
  .wordmark-logo { height: 24px; }
}
