/* ========================================
   System Status Page Styles
   ======================================== */

/* Hero compact variant for status page */
.hero-compact {
  padding-top: calc(var(--header-h-sm) + 3rem);
  padding-bottom: 2rem;
  min-height: auto;
}
.hero-compact .hero-content {
  padding-top: 2rem;
  padding-bottom: 1rem;
}
@media (min-width: 1024px) {
  .hero-compact {
    padding-top: calc(var(--header-h-lg) + 4rem);
    padding-bottom: 3rem;
  }
  .hero-compact .hero-content {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Status Section */
.status-section {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

/* Status Legend */
.status-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.status-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ========================================
   Status Light - Pulsing Indicator
   ======================================== */
.status-light {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Green - Operational */
.status-light.status-green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.4), 0 0 8px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8), 0 0 20px rgba(34, 197, 94, 0.4), 0 0 30px rgba(34, 197, 94, 0.15);
  }
}

/* Orange - Degraded Performance */
.status-light.status-orange {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  animation: pulse-orange 2s ease-in-out infinite;
}
@keyframes pulse-orange {
  0%, 100% {
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.4), 0 0 8px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8), 0 0 20px rgba(245, 158, 11, 0.4), 0 0 30px rgba(245, 158, 11, 0.15);
  }
}

/* Red - Outage */
.status-light.status-red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: pulse-red 2s ease-in-out infinite;
}
@keyframes pulse-red {
  0%, 100% {
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.4), 0 0 8px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8), 0 0 20px rgba(239, 68, 68, 0.4), 0 0 30px rgba(239, 68, 68, 0.15);
  }
}

/* ========================================
   Status Category Cards
   ======================================== */
.status-category {
  margin-bottom: 1.5rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.status-category:hover {
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-1px);
}

.status-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border-outer);
  background: linear-gradient(135deg, rgba(255, 51, 91, 0.03) 0%, transparent 100%);
}
.status-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  flex-shrink: 0;
}
.status-category-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: #fff;
}
.status-category-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ========================================
   Status List Items
   ======================================== */
.status-list {
  padding: 0;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background-color 0.2s ease;
}
.status-item:last-child {
  border-bottom: none;
}
.status-item:hover {
  background: rgba(0, 0, 0, 0.015);
}
.status-name {
  flex: 1;
  font-size: 0.925rem;
  font-weight: 450;
  color: var(--color-text);
}

/* Status Label - text badges */
.status-label {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.status-label-green {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
}
.status-label-orange {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}
.status-label-red {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

/* ========================================
   Status Footer
   ======================================== */
.status-footer {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.status-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
}
.status-support {
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.status-support a {
  color: var(--color-primary);
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.status-support a:hover {
  opacity: 0.8;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
  .status-legend {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .status-category-header {
    padding: 1rem 1.25rem;
  }
  .status-item {
    padding: 0.75rem 1.25rem;
    gap: 0.625rem;
  }
  .status-name {
    font-size: 0.85rem;
  }
  .status-label {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }
  .status-category-title {
    font-size: 0.9rem;
  }
}
