/*
 * Coin Moebius status page styling.
 *
 * Mirrors the dark "Void Beyond the Veil" palette from the marketing site
 * (--cm-color-* values copied here as literals, since this page is outside
 * the site's SCSS build and must stay self-contained). System font stack:
 * no external font fetch, so the page renders instantly and survives a CDN
 * outage. Status semantics use the same success/warning/danger hues the
 * dashboard uses.
 */

:root {
  --bg: #050818;
  --surface: #0a1428;
  --surface-alt: #16305c;
  --text: #f1eedb;
  --muted: #b6c6dc;
  --outline: #355b87;
  --teal: #16b9a9;
  --cyan: #22e1d1;
  --gilt: #f9ff73;
  --ok: #4fc91e;
  --warn: #ff7200;
  --down: #ef3500;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

/* --- Masthead ------------------------------------------------------- */

.masthead {
  margin-bottom: 2rem;
}

.masthead__brand {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.masthead__title {
  margin: 0.35rem 0 0;
  font-size: 1.7rem;
  font-weight: 600;
}

/* --- Overall verdict ----------------------------------------------- */

.overall {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-left-width: 4px;
  border-radius: var(--radius);
}

.overall__text {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

/* The overall card's left edge takes the verdict color. */
.overall[data-state='ok'] {
  border-left-color: var(--ok);
}
.overall[data-state='degraded'] {
  border-left-color: var(--warn);
}
.overall[data-state='down'] {
  border-left-color: var(--down);
}

/* --- Subsystems ----------------------------------------------------- */

.systems {
  margin-top: 1.25rem;
}

.systems__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.system {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
}

.system__name {
  font-weight: 600;
}

.system__detail {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* --- Status dot ----------------------------------------------------- */

.dot {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--muted);
}

.dot--ok {
  background: var(--ok);
  box-shadow: 0 0 8px rgb(79 201 30 / 65%);
}
.dot--degraded {
  background: var(--warn);
  box-shadow: 0 0 8px rgb(255 114 0 / 65%);
}
.dot--down {
  background: var(--down);
  box-shadow: 0 0 8px rgb(239 53 0 / 65%);
}
.dot--pending {
  background: var(--muted);
  opacity: 0.5;
}

/* --- Meta row (refresh + timestamp) -------------------------------- */

.meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.check-btn {
  font: inherit;
  font-size: 0.9rem;
  color: var(--bg);
  background: var(--cyan);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.check-btn:hover {
  background: var(--teal);
}

.check-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.meta__checked {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Footer --------------------------------------------------------- */

.page-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline);
  font-size: 0.85rem;
  color: var(--muted);
}

.page-footer p {
  margin: 0 0 0.75rem;
}

.page-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

.page-footer__brand a {
  color: var(--gilt);
}
