/*
  Nexio Staging Mock Page
  Lädt nur auf dem Testserver.
*/

:root {
  --stage-bg: #0a0a0a;
  --stage-bg-2: #150f24;
  --stage-surface: rgba(255,255,255,0.06);
  --stage-surface-strong: rgba(255,255,255,0.1);
  --stage-border: rgba(255,255,255,0.12);
  --stage-border-strong: rgba(192,38,211,0.28);
  --stage-text: #e0d9ff;
  --stage-text-muted: #b4a8d3;
  --stage-green: #34d399;
  --stage-purple: #c026d3;
  --stage-purple-2: #7e22ce;
  --stage-pink: #ec4899;
  --stage-red: #ef4444;
}

html[data-nexio-staging="true"],
html[data-nexio-staging="true"] body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, #1a0f2e 0%, #0a0a0a 70%);
  color: var(--stage-text);
}

body.nexio-staging {
  font-family: Inter, system-ui, sans-serif;
}

body.nexio-staging {
  background:
    radial-gradient(circle at 50% 0%, rgba(192,38,211,0.10) 0%, transparent 42%),
    radial-gradient(circle at center, #1a0f2e 0%, #0a0a0a 70%);
}

body.nexio-staging .nx-server-icon,
body.nexio-staging .ch-item,
body.nexio-staging .sidebar-header,
body.nexio-staging .sidebar-category,
body.nexio-staging .voice-controls,
body.nexio-staging .channel-header,
body.nexio-staging .nx-modal,
body.nexio-staging .nx-overlay,
body.nexio-staging .nx-btn,
body.nexio-staging .nx-btn-ghost,
body.nexio-staging .nx-btn-danger {
  backdrop-filter: blur(16px);
}

body.nexio-staging .sidebar-header,
body.nexio-staging .channel-header,
body.nexio-staging .voice-controls {
  background: rgba(255,255,255,0.04);
}

body.nexio-staging .ch-item {
  border-radius: 18px;
}

body.nexio-staging .ch-item.active {
  background: rgba(192,38,211,0.12);
  color: #fff;
}

body.nexio-staging .voice-ctrl-btn {
  border-radius: 9999px;
}

body.nexio-staging .nx-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: rgba(124,58,237,0.35);
}

body.nexio-staging .nx-btn-ghost {
  background: rgba(255,255,255,0.05);
}

body.nexio-staging .nx-btn-danger {
  background: rgba(220,38,38,0.14);
}

body.nexio-staging .nx-modal {
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
}

.nx-stage-root {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.nx-stage-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.nx-stage-orb {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stage-purple) 0%, var(--stage-purple-2) 45%, #4c1d95 100%);
  box-shadow: 0 0 90px var(--stage-purple), 0 0 170px rgba(192,38,211,0.6);
  animation: nx-stage-orb-pulse 9s ease-in-out infinite;
}

@keyframes nx-stage-orb-pulse {
  0%, 100% { transform: scale(1) rotate(3deg); }
  50% { transform: scale(1.1) rotate(-3deg); }
}

.nx-stage-ctrl-btn {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  color: #fff;
}

.nx-stage-ctrl-btn:hover {
  transform: scale(1.18) translateY(-6px);
}

.nx-stage-ctrl-btn.active {
  background: #9f1239;
  animation: nx-stage-mute-pulse 1.2s infinite;
}

@keyframes nx-stage-mute-pulse {
  0%, 100% { box-shadow: 0 0 30px #f43f5e; }
  50% { box-shadow: 0 0 55px #f43f5e; }
}

.nx-stage-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nx-stage-container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.nx-stage-main {
  padding-top: 7rem;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.nx-stage-hub-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nx-stage-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192,38,211,0.55);
  background: rgba(255,255,255,0.08);
}

.nx-stage-badge-live {
  color: var(--stage-green);
}

.nx-stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--stage-green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  animation: nx-stage-pulse 1.4s infinite;
}

@keyframes nx-stage-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.nx-stage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nx-stage-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.nx-stage-controls {
  display: flex;
  gap: 2rem;
}

.nx-stage-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nx-stage-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
