/* ==========================================================================
   TCP123 UK — Live Status & Telemetry Stylesheet
   Spelling Standard: Strict British English
   RNIB AAA Compliant Contrast & Tabular Alignment
   ========================================================================== */

/* 1. Base Body & Container */
.status-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: var(--font-body);
}

[data-theme="dark"] .status-body {
  background-color: #090d16;
  background-image: radial-gradient(circle at 50% 10%, rgba(0, 68, 179, 0.22) 0%, #090d16 75%);
  color: #ffffff;
}

/* 2. Status Header Navigation */
.status-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="dark"] .status-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(9, 13, 22, 0.85);
}

.status-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-main {
  flex: 1;
  padding: 3rem 1rem;
}

/* 3. Global Status Hero Banner */
.status-hero-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .status-hero-card {
  background: rgba(21, 30, 50, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.status-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #0044b3);
}

.status-hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #059669;
  font-weight: 700;
  font-size: 0.95rem;
}

[data-theme="dark"] .status-indicator-pill {
  color: #34d399;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.btn-probe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0044b3;
  background: rgba(0, 68, 179, 0.08);
  border: 1px solid rgba(0, 68, 179, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-probe:hover {
  background: rgba(0, 68, 179, 0.15);
  transform: scale(1.02);
}

[data-theme="dark"] .btn-probe {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.status-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .status-hero-title {
  color: #ffffff;
}

.status-hero-meta {
  font-size: 0.95rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

[data-theme="dark"] .status-hero-meta {
  color: #cbd5e1;
}

/* 4. Three-Column Services Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.telemetry-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.telemetry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .telemetry-card {
  background: rgba(21, 30, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.telemetry-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .telemetry-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.telemetry-card-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

[data-theme="dark"] .telemetry-card-header h2 {
  color: #ffffff;
}

.telemetry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .telemetry-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.telemetry-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.telemetry-item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
}

[data-theme="dark"] .telemetry-item-name {
  color: #e2e8f0;
}

.telemetry-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.telemetry-badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .telemetry-badge-ok {
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
}

.telemetry-latency-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .telemetry-latency-tag {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

/* 5. 90-Day Uptime Calendar Visualiser */
.uptime-calendar-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .uptime-calendar-card {
  background: rgba(21, 30, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.uptime-calendar-card h2 {
  color: #0f172a;
}

[data-theme="dark"] .uptime-calendar-card h2 {
  color: #ffffff;
}

.uptime-calendar-card p {
  color: #475569;
}

[data-theme="dark"] .uptime-calendar-card p {
  color: #94a3b8;
}

.uptime-bars-wrapper {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 48px;
  margin: 1.5rem 0 1rem 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.uptime-bar {
  flex: 1;
  min-width: 6px;
  height: 100%;
  background-color: #10b981;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.uptime-bar:hover {
  background-color: #059669;
  transform: scaleY(1.15);
}

/* 6. Live SLA Performance KPI Cards */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .kpi-card {
  background: rgba(21, 30, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.kpi-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #475569;
}

[data-theme="dark"] .kpi-label {
  color: #94a3b8;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: #0044b3;
  margin-top: 0.35rem;
  font-family: var(--font-heading);
}

[data-theme="dark"] .kpi-value {
  color: #38bdf8;
}

/* 7. Bottom Conversion Action Card */
.status-cta-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 68, 179, 0.08);
}

[data-theme="dark"] .status-cta-card {
  background: rgba(21, 30, 50, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.status-cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .status-cta-title {
  color: #ffffff;
}

.status-cta-desc {
  font-size: 1rem;
  color: #334155;
  max-width: 650px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.6;
}

[data-theme="dark"] .status-cta-desc {
  color: #cbd5e1;
}

/* 8. Footer */
.status-footer {
  background: #f1f5f9;
  border-top: 1px solid #cbd5e1;
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

[data-theme="dark"] .status-footer {
  background: #090d16;
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

@media (max-width: 640px) {
  .status-hero-card {
    padding: 1.75rem 1.25rem;
  }
  .status-hero-title {
    font-size: 1.75rem;
  }
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
  .uptime-bars-wrapper {
    gap: 2px;
  }
}
