/* =====================================================
   views/network.css
   ===================================================== */

/* ── SENTIMENT TABS ────────────────────────────────── */
.nw-stab {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid var(--bd);
  font-size: 13px;
  font-weight: 600;
  color: var(--tx2);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  margin: 0 4px 8px 0;
}
.nw-stab:hover { border-color: var(--bl); color: var(--bl); background: var(--bl2); }
.nw-stab.on    { border-color: var(--bl); color: var(--bl); background: var(--bl2); font-weight: 700; }

/* ── SEARCH ────────────────────────────────────────── */
.nw-search-wrap {
  position: relative;
  margin-bottom: 6px;
}
.nw-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tx2);
  pointer-events: none;
}
.nw-search {
  width: 100%;
  background: var(--bg3);
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 8px 34px 8px 36px;
  color: var(--tx);
  font-family: var(--fn);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.nw-search:focus        { border-color: var(--bl); }
.nw-search::placeholder { color: var(--tx2); }
.nw-clr {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--tx2);
  border: none;
  color: var(--bg);
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

/* count label */
.nw-user-count {
  font-size: 12px;
  color: var(--tx2);
  margin-bottom: 6px;
  padding-left: 4px;
}

/* ── SCROLLABLE USER LIST ──────────────────────────── */
.nw-user-scroll {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 0 12px;
  background: var(--bg2);
  /* custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--bd) transparent;
}
.nw-user-scroll::-webkit-scrollbar       { width: 4px; }
.nw-user-scroll::-webkit-scrollbar-track { background: transparent; }
.nw-user-scroll::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

.nw-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--tx2);
  font-size: 14px;
}

/* ── USER CARD ─────────────────────────────────────── */
.ucard {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bd2);
  cursor: pointer;
  transition: background .12s;
  border-radius: 6px;
}
.ucard:last-child { border-bottom: none; }
.ucard:hover      { background: var(--bg-h); padding-left: 4px; padding-right: 4px; margin: 0 -4px; }

.uav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.ucard-info { flex: 1; min-width: 0; }
.unm { font-size: 14px; font-weight: 600; color: var(--tx); }
.uhn { font-size: 13px; color: var(--tx2); }

.sent-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.sent-dot {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
}
.sent-dot.P  { background: var(--gr2); color: var(--gr); }
.sent-dot.N  { background: var(--rd2); color: var(--rd); }
.sent-dot.NE { background: var(--am2); color: var(--am); }

/* ── THEME LIST SCROLL WRAPPER ─────────────────────── */
.nw-theme-scroll {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bd) transparent;
}
.nw-theme-scroll::-webkit-scrollbar       { width: 4px; }
.nw-theme-scroll::-webkit-scrollbar-track { background: transparent; }
.nw-theme-scroll::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

/* ── THEME ACCORDION ───────────────────────────────── */
.theme-block-wrap {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.theme-block-wrap:last-child { margin-bottom: 0; }
.theme-block-wrap.open       { border-color: rgba(29,155,240,.35); }

.theme-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.theme-accordion-head:hover { background: rgba(255,255,255,.03); }

.theme-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.th-pill {
  background: var(--bl2);
  border: 1px solid rgba(29,155,240,.3);
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bl);
  white-space: nowrap;
}
.th-count { font-size: 12px; color: var(--tx2); white-space: nowrap; }
.th-sent-pills { display: flex; gap: 4px; }
.th-sent-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
}
.th-sent-pill.P  { background: var(--gr2); color: var(--gr); }
.th-sent-pill.N  { background: var(--rd2); color: var(--rd); }
.th-sent-pill.NE { background: var(--am2); color: var(--am); }

.th-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--tx2);
  transition: transform .2s;
}
.theme-block-wrap.open .th-chevron { transform: rotate(180deg); }

.theme-accordion-body {
  display: none;
  padding: 0 14px 14px;
}
.theme-block-wrap.open .theme-accordion-body { display: block; }

/* avatar grid */
.theme-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.theme-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.mini-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}
.mini-nm {
  font-size: 10px;
  color: var(--tx2);
  max-width: 64px;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  line-height: 1.3;
}

/* +N badge (only shown when accordion closed) */
.av-more-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px dashed var(--bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--bl);
  cursor: pointer;
  transition: background .15s;
  align-self: center;
}
.av-more-badge:hover { background: var(--bl2); border-color: var(--bl); }

/* section hint */
.section-hint {
  font-size: 12px;
  color: var(--tx2);
  margin-bottom: 12px;
  line-height: 1.5;
  text-align: center !important;
}