/* ============================================================================
   OFFIQA — Status page stylesheet
   Loads AFTER offiqa-design-v2.css via extra_css. For /status/ only.
   ============================================================================ */

/* Overall status banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--green-soft);
  background: var(--green-tint);
}
.status-banner.degraded {
  border-color: var(--ochre-soft);
  background: var(--ochre-tint);
}
.status-banner.outage {
  border-color: #f3c5be;
  background: #fdf0ee;
}

.status-indicator {
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(47, 107, 74, 0.18);
  animation: pulse-status 2.5s ease-in-out infinite;
}
.status-indicator.degraded {
  background: var(--ochre);
  box-shadow: 0 0 0 5px rgba(188, 106, 46, 0.18);
}
.status-indicator.outage {
  background: #c0392b;
  box-shadow: 0 0 0 5px rgba(192, 57, 43, 0.18);
  animation: none;
}
@keyframes pulse-status {
  0%, 100% { box-shadow: 0 0 0 5px rgba(47, 107, 74, 0.18); }
  50%       { box-shadow: 0 0 0 9px rgba(47, 107, 74, 0.06); }
}

.status-banner h2 { font-size: 1.2rem; margin: 0; }
.status-banner p  { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--ink-2); }

/* Service list */
.service-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}
.service-item:last-child { border-bottom: none; }
.service-name {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
}
.service-description { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.service-status.operational {
  background: var(--success-soft);
  color: var(--success);
}
.service-status.degraded {
  background: var(--warning-soft);
  color: var(--warning);
}
.service-status.outage {
  background: #fdf0ee;
  color: #b84a3e;
}
.service-status::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Incident log */
.incident-log { display: grid; gap: var(--space-3); }
.incident-entry {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.incident-entry time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.incident-entry h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.incident-entry p:last-child { margin-bottom: 0; }

/* Uptime history strip */
.uptime-strip {
  display: flex;
  gap: 2px;
  height: 2rem;
  border-radius: var(--r-xs);
  overflow: hidden;
}
.uptime-bar {
  flex: 1;
  background: var(--green-400);
  border-radius: 2px;
  transition: opacity 0.15s ease;
  cursor: default;
}
.uptime-bar:hover { opacity: 0.75; }
.uptime-bar.partial { background: var(--ochre); }
.uptime-bar.down    { background: #e74c3c; }
