/* status.zafronix.com — purpose-built static page. No framework.
   Matches the dark-purple Zafronix brand palette used on
   api.zafronix.com so the cross-site experience feels coherent. */

:root {
  --bg:        #0c0a16;
  --surface:   #16132a;
  --surface-2: #1a1730;
  --border:    #2a2547;
  --text:      #e4e4e7;
  --muted:     #8b87a3;
  --dim:       #5e5b80;
  --brand:     #6C3CE0;
  --brand-2:   #a384ff;

  --green:  #10b981;
  --yellow: #f59e0b;
  --orange: #f97316;
  --red:    #ef4444;
  --blue:   #3b82f6;
  --gray:   #6b7280;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
code, .mono {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.85em;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #fff; }

/* ─── Header — brand + status pill inline ─────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(12,10,22,0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-name { color: var(--brand-2); text-transform: uppercase; letter-spacing: 0.05em; }
.brand-divider { color: var(--dim); font-weight: 400; }
.brand-tag { color: var(--text); font-weight: 500; }

.overall-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s;
}

/* ─── Status dot ──────────────────────────────────────────────── */
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray);
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}
.dot-operational, .operational .dot { background: var(--green); }
.dot-degraded,    .degraded    .dot { background: var(--yellow); }
.dot-partial,     .partial     .dot { background: var(--orange); }
.dot-outage,      .outage      .dot { background: var(--red); }
.dot-maintenance, .maintenance .dot { background: var(--blue); }
.checking .dot                      { background: var(--gray); }

/* Subtle pulse on operational + checking states. Less is more. */
.operational .dot::after,
.checking    .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.35;
  animation: pulse 2.5s infinite ease-out;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.35; }
  100% { transform: scale(1.6); opacity: 0; }
}

.overall-pill.operational { color: #d1fae5; border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.10); }
.overall-pill.degraded    { color: #fef3c7; border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.10); }
.overall-pill.partial     { color: #ffedd5; border-color: rgba(249,115,22,0.4); background: rgba(249,115,22,0.10); }
.overall-pill.outage      { color: #fee2e2; border-color: rgba(239,68,68,0.4);  background: rgba(239,68,68,0.10);  }
.overall-pill.maintenance { color: #dbeafe; border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.10); }

/* ─── Main content ────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px;
}

.headline h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.subheadline {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}

/* ─── Service rows ────────────────────────────────────────────── */
.services {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
}
.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.service:hover { border-color: rgba(108,60,224,0.4); }

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.service-name {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 2px;
  color: #fff;
}
.service-blurb {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  white-space: nowrap;
}
.service-status.operational { color: #10b981; border-color: rgba(16,185,129,0.4); }
.service-status.degraded    { color: #f59e0b; border-color: rgba(245,158,11,0.4); }
.service-status.partial     { color: #f97316; border-color: rgba(249,115,22,0.4); }
.service-status.outage      { color: #ef4444; border-color: rgba(239,68,68,0.4);  }
.service-status.maintenance { color: #3b82f6; border-color: rgba(59,130,246,0.4); }
.service-status.checking    { color: var(--muted); }

.service-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
}
.service-meta > div { margin: 0; }
.service-meta dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 2px;
}
.service-meta dd {
  font-size: 13px;
  color: var(--text);
  margin: 0;
}
.service-meta code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--brand-2);
}

/* ─── Legend ──────────────────────────────────────────────────── */
.legend {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.legend-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin: 0 0 12px;
}
.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.legend-list strong { color: var(--text); margin-right: 4px; font-weight: 600; }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--brand-2); }
.copyright { font-size: 12px; color: var(--dim); }

@media (max-width: 600px) {
  .site-header { padding: 16px 20px; flex-wrap: wrap; }
  main { padding: 32px 20px; }
  .service { padding: 16px 18px; }
  .headline h1 { font-size: 22px; }
}
