/* Scouq Status Page */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f0;
  --text-muted: #888;
  --status-ok: var(--text-primary);
  --status-degraded: #d99a3a;
  --status-down: #c46b6b;
  --status-skipped: #666;
  --dot-ok: #8aab8a;
  --dot-degraded: #d99a3a;
  --dot-down: #c46b6b;
  --dot-skipped: #555;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

/* Header */
.header {
  margin-bottom: 48px;
}

.header__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.header__wordmark svg {
  width: 20px;
  height: 20px;
}

.status-headline {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.status-headline--ok   { color: var(--text-primary); }
.status-headline--degraded { color: var(--status-degraded); }
.status-headline--down { color: var(--status-down); }
.status-headline--loading { color: var(--text-muted); }

.last-updated {
  font-size: 13px;
  color: var(--text-muted);
}

/* Checks table */
.checks {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 32px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  padding: 14px 18px;
}

.check-row:first-child { border-radius: 9px 9px 0 0; }
.check-row:last-child  { border-radius: 0 0 9px 9px; }
.check-row:only-child  { border-radius: 9px; }

.check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.check-dot--ok       { background: var(--dot-ok); }
.check-dot--degraded { background: var(--dot-degraded); }
.check-dot--down     { background: var(--dot-down); }
.check-dot--skipped  { background: var(--dot-skipped); }
.check-dot--loading  { background: var(--dot-skipped); }

.check-name {
  flex: 1;
  font-weight: 500;
  text-transform: capitalize;
}

.check-msg {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.check-latency {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  padding-left: 12px;
}

.check-status-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 8px;
}

.check-status-label--ok       { color: var(--dot-ok); }
.check-status-label--degraded { color: var(--dot-degraded); }
.check-status-label--down     { color: var(--dot-down); }
.check-status-label--skipped  { color: var(--dot-skipped); }
.check-status-label--loading  { color: var(--dot-skipped); }

/* Footer */
.footer {
  font-size: 13px;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Skeleton shimmer for loading state */
.skeleton {
  height: 46px;
  background: var(--surface);
  border-radius: 4px;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { opacity: 0.5; }
  50%  { opacity: 1; }
  100% { opacity: 0.5; }
}
