/* ═══════════════════════════════════════════
   ART Status Page — Light Theme
   ═══════════════════════════════════════════ */

:root {
  --bg-page: #f5f6fa;
  --bg-surface: #ffffff;
  --accent-primary: #1e86b9;
  --accent-primary-light: #e6f3f9;
  --accent-success: #059669;
  --accent-success-light: #d1fae5;
  --accent-warning: #d97706;
  --accent-warning-light: #fef3c7;
  --accent-danger: #dc2626;
  --accent-danger-light: #fee2e2;
  --text-primary: #272346;
  --text-secondary: #4a4760;
  --text-muted: #8d8b9d;
  --text-dim: #cbd5e1;
  --border-subtle: rgba(148, 163, 184, 0.18);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.status-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.status-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.status-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(30, 134, 185, 0.4));
}

.status-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.status-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.status-back {
  font-size: 0.8rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.status-back:hover {
  background: var(--accent-primary-light);
  border-color: rgba(30, 134, 185, 0.2);
}

/* Banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
  transition: 0.3s ease;
}

.banner-dot.dot-ok { background: var(--accent-success); box-shadow: 0 0 8px rgba(5,150,105,0.2); }
.banner-dot.dot-degraded { background: var(--accent-warning); box-shadow: 0 0 8px rgba(217,119,6,0.2); }
.banner-dot.dot-outage { background: var(--accent-danger); box-shadow: 0 0 8px rgba(220,38,38,0.2); animation: pulseDot 1.5s ease-in-out infinite; }

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.banner-text {
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
}

.banner-time {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Service List */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: 0.2s ease;
}

.status-item:hover {
  box-shadow: 0 2px 8px rgba(30, 134, 185, 0.08);
}

.si-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-dim);
  transition: 0.3s ease;
}

.si-dot.si-ok { background: var(--accent-success); box-shadow: 0 0 6px rgba(5,150,105,0.15); }
.si-dot.si-error { background: var(--accent-danger); box-shadow: 0 0 6px rgba(220,38,38,0.15); }
.si-dot.si-unknown { background: var(--text-dim); opacity: 0.5; }

.si-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.si-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.si-host {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.si-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.si-response {
  font-size: 0.675rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 500;
}

.si-checked {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Uptime bar */
.si-uptime-bar {
  display: flex;
  gap: 1px;
  margin-top: 0.25rem;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
}

.si-bar-segment {
  flex: 1;
  min-width: 3px;
  border-radius: 2px;
  transition: 0.2s ease;
}

.bar-ok { background: var(--accent-success-light); }
.bar-error { background: var(--accent-danger-light); }
.bar-unknown { background: rgba(148, 163, 184, 0.1); }

.bar-ok:hover { background: var(--accent-success); }
.bar-error:hover { background: var(--accent-danger); }

/* Footer */
.status-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .status-header { flex-direction: column; gap: 0.75rem; }
  .status-footer { flex-direction: column; gap: 0.375rem; text-align: center; }
  .status-item { flex-wrap: wrap; }
  .si-info { flex: 1; min-width: 150px; }
  .si-meta {
    align-items: flex-start;
    flex-basis: 100%;
    margin-top: 0.25rem;
    margin-left: 1.5rem;
  }
}
