/* =========================
   E2HUB Map - Space Theme
   ========================= */

:root{
  --glass: rgba(255,255,255,0.08);
  --glass2: rgba(255,255,255,0.12);
  --stroke: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --shadow: rgba(0,0,0,0.45);

  --hub: rgba(99,102,241,0.45);
  --room: rgba(34,211,238,0.28);
  --user: rgba(255,255,255,0.08);
}

.space-bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(99,102,241,0.20), transparent 55%),
    radial-gradient(1000px 700px at 80% 30%, rgba(34,211,238,0.14), transparent 50%),
    radial-gradient(900px 600px at 55% 90%, rgba(168,85,247,0.14), transparent 55%),
    linear-gradient(180deg, #05060b 0%, #070a12 45%, #05060b 100%);
}

.glass{
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 60px var(--shadow);
  backdrop-filter: blur(14px);
}

/* small orb in header */
.logo-orb{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), rgba(99,102,241,0.7) 45%, rgba(34,211,238,0.4) 75%, rgba(0,0,0,0.0) 100%);
  box-shadow: 0 0 18px rgba(99,102,241,0.6);
}

/* =========================
   Map layout
   ========================= */

.map-wrap{
  position: relative;
  width: 100%;
  height: calc(100vh - 260px);
  min-height: 520px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  overflow: hidden;
}

.map-links{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-nodes{
  position: absolute;
  inset: 0;
}

/* =========================
   Nodes (hub/room/user)
   ========================= */

.node{
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.40);
  user-select: none;
  white-space: nowrap;
}

.node .label{
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  font-size: 14px;
  line-height: 1;
}

.node .badge{
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
}

.node-hub{
  background: linear-gradient(90deg, rgba(99,102,241,0.45), rgba(99,102,241,0.18));
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 22px 60px rgba(99,102,241,0.22);
}

.node-room{
  background: linear-gradient(90deg, rgba(34,211,238,0.28), rgba(34,211,238,0.10));
  border-color: rgba(34,211,238,0.28);
}

.node-user{
  padding: 7px 10px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.node-user .label{
  font-weight: 550;
  font-size: 12px;
  opacity: 0.95;
}

.node .icon{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0.9;
}

.node-user.muted{
  opacity: 0.55;
  filter: grayscale(0.35);
}

/* Lines */
.map-links line{
  stroke: rgba(255,255,255,0.16);
  stroke-width: 1.2;
}

.map-links .glow{
  stroke: rgba(99,102,241,0.22);
  stroke-width: 2.2;
}
