/* live-health.css — styling for the public Live Health / leaderboard page */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

.status-card {
  padding: var(--space-6);
}

.status-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-text-faint, #635d7d);
  box-shadow: 0 0 0 0 transparent;
}

.dot-checking { background: #e3a758; }
.dot-up {
  background: #4ad393;
  box-shadow: 0 0 0 3px oklch(from #4ad393 l c h / 0.25);
}
.dot-down {
  background: #f07aa4;
  box-shadow: 0 0 0 3px oklch(from #f07aa4 l c h / 0.25);
}

.status-name {
  font-weight: 600;
  font-size: var(--text-base);
}

.status-host {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.status-detail {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted, var(--color-text-faint));
}

.pulse-warn { background: #e3a758 !important; }
.pulse-down { background: #f07aa4 !important; }

.stat-tile {
  padding: var(--space-6);
}
.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}
.stat-value {
  margin-top: var(--space-2);
  font-size: var(--text-2xl);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.leaderboard-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  border-bottom: 1px solid var(--color-border);
}
.leaderboard-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.leaderboard-table tbody tr:last-child td { border-bottom: none; }

.lb-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
}
.lb-status-up {
  background: oklch(from #4ad393 l c h / 0.15);
  color: #4ad393;
}
.lb-status-down {
  background: oklch(from #f07aa4 l c h / 0.15);
  color: #f07aa4;
}

.lb-bar-track {
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}
.lb-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #35e0cf, #9a84ff);
}

@media (max-width: 640px) {
  .lb-bar-track { width: 70px; }
}
