/**
 * Status page — Service Status dashboard (dark / neon green / gold accents).
 * Load after css/home-zc.css
 */
body.status-page {
  font-family: 'Inter', system-ui, sans-serif;
  --status-bg: #0b0e14;
  --status-surface: #12161f;
  --status-border: rgba(255, 255, 255, 0.07);
  --status-muted: #94a3b8;
  --status-green: #4ade80;
  --status-green-bright: #22c55e;
  --status-green-dim: rgba(34, 197, 94, 0.12);
  background: var(--status-bg);
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.status-page .zc-topbar {
  background: var(--status-bg);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

body.status-page .zc-cart-ic .cart-badge {
  background: var(--accent);
  color: #1a1208;
}

body.status-page main.status-main {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--hdr-stack) + 1.25rem);
  padding-bottom: 4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

body.status-page .status-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
body.status-page .status-brand img {
  height: 48px;
  width: auto;
  display: block;
}
body.status-page .status-brand .tagline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
body.status-page .status-brand .tagline span {
  color: #b4bcff;
}

body.status-page .status-header {
  margin-bottom: 2rem;
}
body.status-page .status-header h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
  color: #fff;
}
body.status-page .status-header p {
  font-size: 1rem;
  color: var(--status-muted);
  line-height: 1.55;
  max-width: 36rem;
}

body.status-page .overall-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(180deg, rgba(6, 40, 24, 0.92) 0%, rgba(10, 46, 30, 0.88) 100%);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  margin-bottom: 1.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.35);
}
body.status-page .overall-status .status-dot {
  width: 12px;
  height: 12px;
  background: var(--status-green-bright);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.75), 0 0 24px rgba(34, 197, 94, 0.35);
  animation: status-green-flash-slow 2.8s ease-in-out infinite;
}
body.status-page .overall-status .status-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #86efac;
}
@keyframes status-green-flash-slow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6), 0 0 22px rgba(34, 197, 94, 0.25);
  }
  50% {
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.95), 0 0 32px rgba(34, 197, 94, 0.45);
  }
}

body.status-page .status-section {
  margin-bottom: 1.5rem;
}
body.status-page .status-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--status-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.65rem;
}

/* Search — flex row so the icon cannot blow up to full width */
body.status-page .status-search-wrap {
  width: 100%;
  margin: 0 0 1.1rem;
}
body.status-page .status-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  box-sizing: border-box;
  background: var(--status-surface);
  border: 1px solid var(--status-border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.status-page .status-search:focus-within {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.12),
    0 4px 28px rgba(0, 0, 0, 0.4);
}
body.status-page .status-search-ic-wrap {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
body.status-page .status-search-ic {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px;
  max-height: 20px;
  display: block;
  flex-shrink: 0;
  color: var(--status-muted);
  overflow: visible;
}
body.status-page .status-search:focus-within .status-search-ic {
  color: #fcd34d;
}
body.status-page .status-search-input {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 0.75rem 0;
  outline: none;
}
body.status-page .status-search-input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}
body.status-page .status-search-empty {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

/* Responsive grid — larger product status cards */
body.status-page .status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

body.status-page .status-card.status-card--hidden {
  display: none;
}

body.status-page .status-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.05rem;
  min-width: 0;
  padding: 1.15rem 1.25rem;
  background: var(--status-surface);
  border: 1px solid var(--status-border);
  border-radius: 12px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

body.status-page .status-card-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 70, 0.45);
  animation: status-orange-thumb-glow 3.2s ease-in-out infinite;
  box-shadow:
    0 0 10px rgba(255, 140, 50, 0.35),
    0 0 22px rgba(255, 120, 40, 0.12);
}
@keyframes status-orange-thumb-glow {
  0%, 100% {
    border-color: rgba(255, 150, 60, 0.4);
    box-shadow: 0 0 8px rgba(255, 130, 45, 0.28), 0 0 18px rgba(255, 110, 35, 0.08);
  }
  50% {
    border-color: rgba(255, 200, 120, 0.75);
    box-shadow: 0 0 14px rgba(255, 160, 70, 0.5), 0 0 26px rgba(255, 140, 55, 0.18);
  }
}
body.status-page .status-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.status-page .status-card-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}
body.status-page .status-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.28rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.status-page .status-card-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--status-muted);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.status-page .status-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1px solid transparent;
}
body.status-page .status-card-badge.operational {
  background: rgba(6, 40, 24, 0.75);
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.5);
  animation: status-green-badge-glow 2.8s ease-in-out infinite;
}
body.status-page .status-card-badge.operational::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.75);
  animation: status-green-flash-slow 2.8s ease-in-out infinite;
}
@keyframes status-green-badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(74, 222, 128, 0); }
  50% { box-shadow: 0 0 12px rgba(74, 222, 128, 0.2); }
}
body.status-page .status-card-badge.degraded {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}
body.status-page .status-card-badge.degraded::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
}
body.status-page .status-card-badge.outage {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}
body.status-page .status-card-badge.outage::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #f87171;
  border-radius: 50%;
}

@media (max-width: 960px) {
  body.status-page .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.status-page .status-grid {
    grid-template-columns: 1fr;
  }
  body.status-page .status-card {
    padding: 1.05rem 1.2rem;
    gap: 0.95rem;
  }
  body.status-page .status-card-thumb {
    width: 64px;
    height: 64px;
  }
  body.status-page .status-card-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

body.status-page .status-updated {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--status-muted);
}

@media (max-width: 480px) {
  body.status-page main.status-main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: calc(var(--hdr-stack) + 0.75rem);
  }
  body.status-page .status-card-badge {
    font-size: 0.68rem;
    padding: 0.42rem 0.65rem;
  }
  body.status-page .status-search {
    min-height: 50px;
    padding: 0 0.9rem;
  }
  body.status-page .status-search-ic-wrap {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }
  body.status-page .status-search-ic {
    width: 20px !important;
    height: 20px !important;
  }
  /* 16px+ avoids iOS Safari zoom-on-focus */
  body.status-page .status-search-input {
    font-size: max(16px, 0.95rem);
    padding: 0.85rem 0;
  }
}
