/* ============================================
   STATUS PAGE (/status — pública)
   ============================================ */
.status-hero {
  padding: 130px 1.5rem 40px;
  text-align: center;
  position: relative;
}
.status-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 143, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.status-overall {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.status-updated {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-overall--operational .status-dot,
.status-component--operational .status-dot { background: #3ddc84; box-shadow: 0 0 8px #3ddc8488; }
.status-overall--degraded .status-dot,
.status-component--degraded .status-dot { background: #ffc247; box-shadow: 0 0 8px #ffc24788; }
.status-overall--maintenance .status-dot,
.status-component--maintenance .status-dot { background: #7c8fff; box-shadow: 0 0 8px #7c8fff88; }
.status-overall--updating .status-dot,
.status-component--updating .status-dot { background: #a78bfa; box-shadow: 0 0 8px #a78bfa88; }
.status-overall--down .status-dot,
.status-component--down .status-dot { background: #ff5c5c; box-shadow: 0 0 8px #ff5c5c88; }

.status-overall--operational { color: #3ddc84; }
.status-overall--degraded { color: #ffc247; }
.status-overall--maintenance { color: #7c8fff; }
.status-overall--updating { color: #a78bfa; }
.status-overall--down { color: #ff5c5c; }

.status-section {
  padding: 1rem 1.5rem 6rem;
}

.status-components-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.status-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.status-component {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  padding: 0.9rem 1.1rem;
}

.status-component-label {
  flex: 1;
  font-weight: 600;
}

.status-component-state {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-component-shards {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-maintenance-card {
  background: rgba(124, 143, 255, 0.08);
  border: 1px solid rgba(124, 143, 255, 0.35);
  border-radius: var(--radius-lg, 14px);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
}
.status-maintenance-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.status-maintenance-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

/* ─── Manutenção agendada (ainda não começou) ─── */
.status-upcoming-card {
  background: rgba(124, 143, 255, 0.05);
  border: 1px dashed rgba(124, 143, 255, 0.4);
  border-radius: var(--radius-lg, 14px);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
}
.status-upcoming-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.status-upcoming-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7c8fff;
  background: rgba(124, 143, 255, 0.12);
  border-radius: 50px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.5rem;
}

/* ─── Incidentes em aberto (com timeline) ─── */
.status-incident-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid #ffc247;
  border-radius: var(--radius-lg, 14px);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
}
.status-incident-card--down { border-left-color: #ff5c5c; }
.status-incident-card--updating { border-left-color: #a78bfa; }
.status-incident-card h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.status-incident-component {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}
.status-incident-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.7rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}
.status-incident-timeline-item strong {
  font-size: 0.85rem;
}
.status-incident-timeline-item .status-incident-timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.status-incident-timeline-item p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Histórico (sempre visível) ─── */
.status-history-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
}
.status-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.status-history-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  padding: 0.85rem 1.1rem;
}
.status-history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.status-history-item-title {
  font-weight: 600;
}
.status-history-item-when {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.status-history-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0;
}
.status-history-item-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 50px;
  padding: 0.1rem 0.55rem;
  margin-right: 0.5rem;
}
.status-history-item-badge--finished,
.status-history-item-badge--resolved { color: #3ddc84; background: rgba(61, 220, 132, 0.12); }
.status-history-item-badge--cancelled { color: var(--text-muted); background: rgba(255,255,255,0.06); }
