/* status.iridex.me — page-specific rules only; everything else (tokens,
   resets, .container, .btn) comes from base.css, copied straight from
   homepage/ so this page matches the rest of the site without pulling in
   site.css's much larger, mostly-irrelevant rule set. */

body { background: var(--bg); }

/* Same fixed engineering-grid backdrop as the other sites (homepage/
   dashboard/wiki's .bg-grid in site.css) — reproduced here directly since
   this page intentionally doesn't pull in site.css's much larger rule set. */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grid-lines);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
}
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% -8%, rgba(139, 92, 246, 0.08), transparent 70%);
}
.container { position: relative; z-index: 1; }

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
}
.status-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-bright);
  text-decoration: none;
}
.status-brand img { width: 28px; height: 28px; }

.status-hero {
  text-align: center;
  padding: var(--space-8) 0 var(--space-7);
}
.status-hero h1 { margin: 0 0 var(--space-3); font-size: var(--text-3xl); }

/* Shaped and sized like the site's own .btn (base.css) — same radius,
   border, mono font and hover lift — instead of the fully-rounded pill it
   used to be, colored per state rather than acting as a real button. */
.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hi);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 600;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.status-banner:hover { transform: translateY(-2px); }
.status-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-dim); flex: none; }
.status-banner.is-up {
  border-color: rgba(125, 211, 160, 0.4);
  background: rgba(125, 211, 160, 0.08);
  color: var(--success);
  box-shadow: 0 0 0 1px rgba(125, 211, 160, 0.12), 0 8px 24px -12px rgba(125, 211, 160, 0.35);
}
.status-banner.is-up .dot { background: var(--success); animation: status-pulse-up 2.4s infinite; }
.status-banner.is-down {
  border-color: rgba(229, 72, 77, 0.4);
  background: rgba(229, 72, 77, 0.08);
  color: var(--danger);
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.12), 0 8px 24px -12px rgba(229, 72, 77, 0.35);
}
.status-banner.is-down .dot { background: var(--danger); animation: status-pulse-down 2.4s infinite; }
@keyframes status-pulse-up {
  0% { box-shadow: 0 0 0 0 rgba(125, 211, 160, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(125, 211, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 211, 160, 0); }
}
@keyframes status-pulse-down {
  0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

.status-list {
  max-width: 640px;
  margin: 0 auto var(--space-8);
  display: grid;
  gap: 10px;
}
.status-row {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.status-row:hover { border-color: var(--border-hi); background: var(--surface-alt); }
.status-row-top { display: flex; align-items: center; gap: 12px; }
.status-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--text-dim); }
.status-row .dot.is-up { background: var(--success); box-shadow: 0 0 0 3px rgba(125, 211, 160, 0.18); }
.status-row .dot.is-down { background: var(--danger); box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.18); }
.status-row-name { flex: 1; font-size: var(--text-md); font-weight: 500; }
.status-row-state { font-size: var(--text-sm); font-weight: 600; color: var(--text-dim); }
.status-row-state.is-up { color: var(--success); }
.status-row-state.is-down { color: var(--danger); }

/* Uptime history bar — one tick per day, oldest to newest. Colors mirror
   the site's existing status vocabulary (--success/--danger) rather than
   Discord's own palette; "no-data" days (before the cron started logging,
   or a system added since) stay a neutral gray instead of implying either
   state. */
.status-bar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  margin-top: 12px;
}
.status-bar-tick {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: var(--surface-hi);
  transition: transform 0.12s var(--ease-out), opacity 0.12s var(--ease-out);
  cursor: default;
}
.status-bar-tick:hover { transform: scaleY(1.15); opacity: 0.85; }
.status-bar-tick.up { background: var(--success); }
.status-bar-tick.partial { background: var(--warning); }
.status-bar-tick.down { background: var(--danger); }
.status-bar-tick.no-data { background: var(--surface-hi); }
.status-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: var(--text-xs);
  color: var(--text-dim);
}

/* Iridex-themed tooltip for the uptime ticks (status.js), replacing the
   browser's own plain title="" bubble — positioned and shown/hidden in JS,
   styled here to match the site's card/surface language instead of the OS
   default. */
.status-tip {
  position: absolute;
  z-index: 100;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hi);
  background: var(--surface-solid);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s var(--ease-out), transform 0.12s var(--ease-out);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.15);
}
.status-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--surface-solid);
}
.status-tip.is-visible { opacity: 1; transform: translateY(0); }

.status-section { max-width: 640px; margin: 0 auto var(--space-8); }
.status-section h2 { font-size: var(--text-xl); margin: 0 0 var(--space-4); }

.status-incident-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.status-incident-card:hover { border-color: var(--border-hi); background: var(--surface-alt); }
.status-incident-card h3 { margin: 0 0 var(--space-3); font-size: var(--text-md); }
.status-incident-timeline { display: grid; gap: var(--space-3); }
.status-incident-update {
  border-left: 2px solid var(--border-hi);
  padding-left: 12px;
}
.status-incident-update p { margin: 6px 0 4px; font-size: var(--text-sm); color: var(--text-muted); }
.status-incident-update time { font-size: var(--text-xs); color: var(--text-dim); }
.status-incident-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text-muted);
}
.status-badge-investigating { color: var(--danger); }
.status-badge-identified { color: var(--warning); }
.status-badge-monitoring { color: var(--info); }
.status-badge-resolved { color: var(--success); }

.status-meta {
  text-align: center;
  color: var(--text-dim);
  font-size: var(--text-sm);
  padding-bottom: var(--space-8);
}

/* Same site-footer language as homepage/dashboard/wiki (site.css), trimmed
   to two columns and reproduced here directly for the same reason as
   .bg-grid above — this page skips site.css's much larger rule set. */
.site-footer {
  margin-top: auto; /* sticky footer */
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
}
.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  padding: var(--space-10) var(--space-6) var(--space-6);
}
.footer-brand-row { display: flex; align-items: center; gap: 9px; }
.footer-brand-row .logo-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b0b0c;
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-brand-row .logo-badge img { width: 14px; }
.footer-brand strong { font-family: var(--font-mono); font-size: var(--text-lg); color: var(--text-bright); }
.footer-brand p { color: var(--text-muted); margin-top: var(--space-3); max-width: 34ch; font-size: var(--text-md); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.footer-col h4 {
  font-family: var(--font-mono);
  margin: 0 0 var(--space-2);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: var(--text-md); padding: 3px 0; transition: color 0.16s var(--ease-out); }
.footer-col a:hover { color: var(--text-bright); }
.footer-disclaimer {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6) var(--space-8);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.status-skeleton {
  max-width: 640px;
  margin: 0 auto var(--space-8);
  display: grid;
  gap: 10px;
}
/* .status-skeleton's own `display: grid` above otherwise beats the
   browser's default [hidden] { display: none } — same specificity, later
   in the cascade — so the skeleton stayed visible under the real rows once
   they loaded. */
.status-skeleton[hidden], .status-list[hidden] { display: none; }
.status-skeleton-row {
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-alt) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: status-shimmer 1.4s ease infinite;
}
@keyframes status-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
