/* ============================================
   Status Page — r510 Command Center style
   ============================================ */

.status-page {
  background: #06060a;
  color: #c8c8d8;
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  padding: 0;
}

/* Scanline overlay */
.status-scanline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
  animation: scanline-sweep 4s linear infinite;
  pointer-events: none;
  z-index: 100;
}

@keyframes scanline-sweep {
  0% { top: -2px; }
  100% { top: 100vh; }
}

/* Stars background */
.status-stars {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.status-star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.2; }
  100% { opacity: 0.8; }
}

/* Header */
.status-header {
  text-align: center;
  padding: 32px 20px 16px;
  border-bottom: 1px solid #1a1a2e;
  position: relative;
  z-index: 1;
}

.status-header h1 {
  font-size: 14px;
  font-weight: 700;
  color: #7c5cfc;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.status-header .status-subtitle {
  font-size: 11px;
  color: #4a4a6a;
  letter-spacing: 0.1em;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: #34d399;
}

.status-online::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(52,211,153,0); }
}

/* Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Cards */
.status-card {
  background: #0c0c14;
  border: 1px solid #1a1a2e;
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.2s;
}

.status-card:hover {
  border-color: #252540;
}

.status-card-title {
  font-size: 10px;
  font-weight: 600;
  color: #4a4a6a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-card-title .card-icon {
  font-size: 12px;
}

/* Metric rows */
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #12121e;
  font-size: 12px;
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  color: #6a6a8a;
}

.metric-value {
  color: #e8e8f0;
  font-weight: 500;
}

.metric-value.online { color: #34d399; }
.metric-value.warning { color: #fb923c; }
.metric-value.error { color: #f87171; }
.metric-value.accent { color: #7c5cfc; }

/* Progress bars */
.progress-bar {
  width: 100%;
  height: 4px;
  background: #1a1a2e;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.progress-fill.green { background: #34d399; }
.progress-fill.purple { background: #7c5cfc; }
.progress-fill.orange { background: #fb923c; }
.progress-fill.cyan { background: #22d3ee; }

/* Service status */
.service-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #12121e;
  font-size: 12px;
}

.service-row:last-child {
  border-bottom: none;
}

.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.service-dot.online { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.4); }
.service-dot.warning { background: #fb923c; box-shadow: 0 0 6px rgba(251,146,60,0.4); }
.service-dot.offline { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.4); }
.service-dot.idle { background: #4a4a6a; }

.service-name {
  color: #c8c8d8;
  flex: 1;
}

.service-status {
  color: #6a6a8a;
  font-size: 11px;
}

/* ASCII art block */
.status-ascii {
  text-align: center;
  padding: 20px;
  font-size: 10px;
  line-height: 1.2;
  color: #4a4a6a;
  white-space: pre;
  overflow-x: auto;
  grid-column: 1 / -1;
  border: 1px solid #1a1a2e;
  border-radius: 8px;
  background: #0c0c14;
}

/* Uptime bar */
.uptime-bar {
  display: flex;
  gap: 1px;
  margin-top: 8px;
}

.uptime-day {
  flex: 1;
  height: 16px;
  border-radius: 2px;
  transition: background 0.2s;
}

.uptime-day.up { background: #34d399; }
.uptime-day.degraded { background: #fb923c; }
.uptime-day.down { background: #f87171; }
.uptime-day.unknown { background: #1a1a2e; }

/* Responsive */
@media (max-width: 640px) {
  .status-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}
