/* ═══ STATUS PAGE ═══ */

/* ── Banner ── */
.status-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.4s, border-color 0.4s;
}
.status-banner.all-ok {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.2);
}
.status-banner.degraded {
  background: rgba(250, 204, 21, 0.06);
  border-color: rgba(250, 204, 21, 0.2);
}
.status-banner.outage {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background 0.4s;
}
.all-ok .status-indicator { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.degraded .status-indicator { background: #facc15; box-shadow: 0 0 8px rgba(250, 204, 21, 0.4); }
.outage .status-indicator { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

/* ── Service grid ── */
.status-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s;
}

.svc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.svc-header > i {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}
.svc-info {
  flex: 1;
}
.svc-info h4 {
  font-family: var(--display);
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.svc-info p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.svc-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.svc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.4s;
}
.svc-dot.operational { background: #22c55e; }
.svc-dot.degraded { background: #facc15; }
.svc-dot.down { background: #ef4444; }

.svc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 80px;
  text-align: right;
  transition: color 0.3s;
}
.svc-label.operational { color: #22c55e; }
.svc-label.degraded { color: #facc15; }
.svc-label.down { color: #ef4444; }

/* Uptime bar */
.svc-uptime {
  display: flex;
  gap: 2px;
  margin-top: 0.75rem;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
}
.svc-uptime .day {
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
  position: relative;
}
.svc-uptime .day.up { background: #22c55e; }
.svc-uptime .day.partial { background: #facc15; }
.svc-uptime .day.down-day { background: #ef4444; }
.svc-uptime .day:hover {
  opacity: 0.7;
}

/* ── Uptime summary ── */
.uptime-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.uptime-stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1rem;
}
.uptime-value {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.uptime-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.status-footer-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding-bottom: 3rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .svc-header { flex-wrap: wrap; }
  .svc-info p { display: none; }
  .uptime-summary { grid-template-columns: 1fr; }
}
