/* STATUS HERO */
.status-hero { padding-top: 120px; padding-bottom: 48px; text-align: center; }
.status-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.status-hero p { font-size: 17px; color: var(--text-mid); max-width: 560px; margin: 0 auto; }

/* OVERALL STATUS BANNER */
.overall-status { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 32px; border-radius: 12px; margin-bottom: 48px; font-size: 18px; font-weight: 600; }
.overall-status.operational { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.overall-status.degraded { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.overall-status.outage { background: #fbe9e7; color: #c62828; border: 1px solid #ef9a9a; }
.overall-status .pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

/* STATUS BANNERS (error / stale) */
.status-banner { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 14px; }
.status-banner--error { background: #fbe9e7; color: #c62828; border: 1px solid #ef9a9a; }
.status-banner--error button { margin-left: auto; background: #c62828; color: #fff; border: none; border-radius: 6px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.status-banner--stale { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }

/* LOADING OVERLAY */
.status-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: var(--text-mid); font-size: 15px; }
.status-loading-spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* EMPTY STATE */
.empty-state { text-align: center; color: var(--text-light); padding: 24px; font-size: 14px; }

/* SERVICE COMPONENTS */
.services-section { margin-bottom: 48px; }
.services-section h2 { font-size: 20px; margin-bottom: 16px; }
.service-list { display: flex; flex-direction: column; gap: 12px; }
.service-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #fff; border-radius: 10px; border: 1px solid var(--border); transition: all .2s; }
.service-item:hover { border-color: rgba(238,80,80,.15); }
.service-info { display: flex; align-items: center; gap: 16px; }
.service-status-dot { width: 10px; height: 10px; border-radius: 50%; }
.service-status-dot.operational { background: var(--success); box-shadow: 0 0 8px rgba(0,200,83,.4); }
.service-status-dot.degraded { background: var(--warning); box-shadow: 0 0 8px rgba(255,152,0,.4); }
.service-status-dot.outage { background: var(--error); box-shadow: 0 0 8px rgba(244,67,54,.4); }
.service-name { font-size: 16px; font-weight: 600; }
.service-meta { display: flex; align-items: center; gap: 24px; }
.service-uptime { font-size: 14px; color: var(--text-mid); }
.service-uptime strong { color: var(--success); font-family: 'JetBrains Mono', monospace; }
.service-last-incident { font-size: 13px; color: var(--text-light); }

/* UPTIME CHART */
.uptime-section { margin-bottom: 48px; }
.uptime-section h2 { font-size: 20px; margin-bottom: 16px; }
.uptime-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.uptime-card { text-align: center; padding: 24px; background: var(--bg-gray); border-radius: 10px; }
.uptime-card .percent { font-size: 36px; font-weight: 700; color: var(--success); }
.uptime-card .period { font-size: 14px; color: var(--text-mid); margin-top: 4px; }

/* INCIDENTS */
.incidents-section { margin-bottom: 48px; }
.incidents-section h2 { font-size: 20px; margin-bottom: 16px; }
.incident-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.incident-table th { text-align: left; padding: 10px 16px; background: var(--bg-gray); font-weight: 600; border-bottom: 2px solid var(--border); }
.incident-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.incident-table tr:hover td { background: rgba(238,80,80,.02); }
.incident-resolved { color: var(--success); font-weight: 600; }

/* LEGEND */
.legend { display: flex; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-mid); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.operational { background: var(--success); }
.legend-dot.degraded { background: var(--warning); }
.legend-dot.outage { background: var(--error); }

/* HEALTH CHECK */
.health-section { margin-bottom: 48px; padding: 24px; background: var(--bg-gray); border-radius: 12px; }
.health-section h3 { font-size: 16px; margin-bottom: 12px; }
.health-endpoint { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: #1a1a2e; color: #e9f0fc; padding: 12px 16px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .uptime-grid:has(.uptime-card:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
  .uptime-grid:not(:has(.uptime-card:nth-child(3))) { grid-template-columns: repeat(2, 1fr); }
  .uptime-grid:has(.empty-state) { grid-template-columns: 1fr; }
  .service-meta { flex-direction: column; gap: 8px; align-items: flex-end; }
  .incident-table { font-size: 12px; }
  .status-hero h1 { font-size: 28px; }
  .status-hero { padding-top: 100px; padding-bottom: 32px; }
  .overall-status { font-size: 16px; padding: 16px 24px; }
}

@media (max-width: 480px) {
  .service-item { flex-direction: column; gap: 8px; text-align: left; }
  .service-info { width: 100%; }
  .service-meta { width: 100%; flex-direction: column; align-items: flex-start; }
  .legend { flex-direction: column; gap: 8px; }
  .incident-table { font-size: 11px; }
  .incident-table th, .incident-table td { padding: 8px 10px; }
  .uptime-card .percent { font-size: 28px; }
  .health-endpoint { font-size: 11px; flex-direction: column; gap: 4px; }
}