/* hub-mode.css — Hub mode (replaces DM sidebar): channels, members panel */

/* ---------------- HUB MODE (replaces DM sidebar) ---------------- */
.hub-sidebar {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.hub-sidebar-top {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hub-back-link {
  color: var(--neon-blue);
  font-size: 1.3rem;
  cursor: pointer;
}
.hub-back-link:hover { text-decoration: underline; }
.hub-sidebar-name {
  font-size: 2rem;
  font-weight: 800;
  word-break: break-word;
}
.hub-channels { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.hub-channels-head { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.hub-channels-head button { background: none; border: none; color: var(--neon-green); font-size: 1.6rem; cursor: pointer; padding: 0 4px; }
.hub-channel-row { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--text-muted); cursor: pointer; font-size: 1.4rem; }
.hub-channel-row:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }
.hub-channel-row.active { background: rgba(16,185,129,0.12); color: var(--neon-green); }
.hub-channel-row .hub-channel-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-channel-row .hub-channel-del { background: none; border: none; color: var(--neon-red); cursor: pointer; font-size: 1.2rem; opacity: 0.7; }
.hub-channel-row .hub-channel-move { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; opacity: 0.7; }
.hub-channel-row .hub-channel-move:hover { color: var(--neon-blue); }
.hub-section-head { display: flex; align-items: center; gap: 6px; margin: 12px 4px 4px; }
.hub-section-line { flex: 1; height: 1px; background: var(--border-color); }
.hub-section-label { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.hub-members-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-main);
  font-size: 1.3rem;
  cursor: pointer;
  text-align: left;
}
.hub-members-btn:hover { border-color: var(--neon-blue); }
.hub-members-panel {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
}
.hub-panel-subhead {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 12px 0 6px;
}
.hub-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.hub-member-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #ffaa00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
}
.hub-member-name { font-size: 1.3rem; }
.hub-member-actions { display: flex; gap: 6px; margin-left: auto; }
.hub-member-actions button {
  padding: 4px 10px;
  border-radius: 8px;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
}
.hub-privacy-toggle {
  display: flex;
  gap: 10px;
}
.hub-privacy-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.hub-privacy-btn.active {
  border-color: var(--neon-blue);
  color: white;
  background: rgba(0, 136, 255, 0.15);
}
.hub-tile-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
}
.dm-item {
  padding: 12px 15px;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.dm-item:hover { background: #edf2f7; }
.dm-username-link:hover { text-decoration: underline; }
.dm-item.active {
  background: var(--card-bg);
  color: var(--neon-blue);
  font-weight: bold;
}
.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
}

/* Nooks: little rooms tucked under a channel */
.hub-nook-row { margin-left: 18px; font-size: 1.3rem; padding-top: 4px; padding-bottom: 4px; }
.hub-nook-row i.fa-turn-up { font-size: 1rem; opacity: 0.7; }
.hub-channel-row .hub-channel-nook { background: none; border: none; color: var(--neon-green); cursor: pointer; font-size: 1.1rem; opacity: 0; transition: opacity 0.12s; }
.hub-channel-row:hover .hub-channel-nook, .hub-channel-nook:focus-visible { opacity: 0.85; }
@media (hover: none) { .hub-channel-row .hub-channel-nook { opacity: 0.85; } }

/* Ban / mute chips in the members panel */
.hub-sanction-chip { display: inline-block; font-size: 1rem; padding: 1px 7px; border-radius: 8px; color: #fff; margin-left: 4px; }
.hub-sanction-chip.ban { background: var(--neon-red); }
.hub-sanction-chip.mute { background: var(--neon-orange); }
.hub-sanction-until { display: block; font-size: 1.05rem; color: var(--text-muted); font-weight: normal; }
