/* ============================================================
   STATUS HERO — LinkUp
   Theme: deep space, signal-driven, horizontal command-deck feel
   ============================================================ */

:root {
  --bg-deep: #06070b;
  --bg-elev: #0b0d14;
  --bg-card: #0e111a;

  --text-primary: #eef1fb;
  --text-secondary: #a4adc7;
  --text-muted: #6b7392;

  --accent: #4f7df5;
  --accent-2: #34d6c1;
  --accent-warm: #f5b14f;

  --ok: #34d6c1;
  --ok-glow: rgba(52, 214, 193, 0.45);

  --border: rgba(140, 160, 220, 0.10);
  --border-strong: rgba(140, 160, 220, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(79, 125, 245, 0.25),
                 0 20px 60px rgba(79, 125, 245, 0.18);

  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ========== HERO WRAPPER ========== */
.status-hero {
  position: relative;
  min-height: 100vh;
  padding: 80px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ambient layered background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 160, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 220, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}

.ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background:
    radial-gradient(circle at 30% 40%, rgba(79, 125, 245, 0.22), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(52, 214, 193, 0.15), transparent 60%);
  filter: blur(60px);
}

.scanline {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.6;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* ========== CONTAINER ========== */
.status-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  background:
    linear-gradient(180deg,
      rgba(14, 17, 26, 0.85),
      rgba(11, 13, 20, 0.92));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px 36px 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

/* Subtle inner top highlight */
.status-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(140, 160, 220, 0.25), transparent 40%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ========== META BAR ========== */
.meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-left { display: flex; align-items: center; gap: 14px; }
.meta-tag { color: var(--text-secondary); }
.meta-tag.dim { color: var(--text-muted); }
.meta-divider {
  width: 1px; height: 12px;
  background: var(--border-strong);
}

.meta-right { display: flex; gap: 8px; }
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.region-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok-glow);
}

/* ========== HERO GRID ========== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 8px 0 32px;
}

/* ---- LEFT ---- */
.hero-main { display: flex; flex-direction: column; gap: 22px; }

.title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.title::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dot {
  position: relative;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow:
    0 0 0 4px rgba(52, 214, 193, 0.12),
    0 0 24px var(--ok-glow);
  flex-shrink: 0;
}
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ok);
  animation: pulse 2.4s ease-out infinite;
}
.pulse-ring.delay { animation-delay: 1.2s; }
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0;   }
}

.status-text {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #b8c2e0);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.status-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--ok);
  background: rgba(52, 214, 193, 0.08);
  border: 1px solid rgba(52, 214, 193, 0.3);
  position: relative;
}
.status-badge::before {
  content: "";
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
  opacity: 0;
}

.subtext {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 460px;
}

.timestamp {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.ts-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.ts-value { color: var(--text-primary); }
.ts-refresh {
  color: var(--accent-2);
  padding: 4px 10px;
  border: 1px solid rgba(52, 214, 193, 0.25);
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- RIGHT — Signal Panel ---- */
.hero-signal {
  background: linear-gradient(180deg, rgba(79, 125, 245, 0.04), rgba(52, 214, 193, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.hero-signal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(79, 125, 245, 0.18), transparent 60%);
  pointer-events: none;
}

.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.signal-label { color: var(--text-secondary); }
.signal-freq {
  color: var(--accent-2);
  padding: 3px 8px;
  border: 1px solid rgba(52, 214, 193, 0.25);
  border-radius: 4px;
  font-size: 10px;
}

.waveform {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 100px;
  position: relative;
  padding: 8px 0;
}
.waveform::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.waveform span {
  flex: 1;
  height: var(--h, 40%);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  opacity: 0.85;
  animation: wave 1.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  box-shadow: 0 0 8px rgba(79, 125, 245, 0.4);
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.6); opacity: 0.55; }
  50%      { transform: scaleY(1.15); opacity: 1; }
}

.signal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.stat-num small {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 3px;
}
.stat-key {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ========== STATUS RAIL ========== */
.status-rail {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.rail-item:hover {
  border-color: rgba(52, 214, 193, 0.35);
  transform: translateY(-2px);
}
.rail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok-glow);
  flex-shrink: 0;
}
.rail-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}
.rail-state {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ok);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .status-hero { padding: 40px 16px; }
  .status-container { padding: 22px 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .meta-right { display: none; }
  .status-rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .status-rail { grid-template-columns: 1fr; }
  .signal-stats { gap: 8px; }
  .stat-num { font-size: 18px; }
}
