/* Server Members page - roster list + moderation action modal. Shared shell
   (topbar, nav, main, generic modal/empty-state) lives in shell.css. */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.toolbar input { flex: 1; }
.member-count {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.roster-list { display: flex; flex-direction: column; }

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface-raised);
}

.member-info { flex: 1; min-width: 0; }
.member-name {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.joined-date { font-size: 12px; color: var(--text-faint); }
.bot-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-members);
  background: color-mix(in srgb, var(--accent-members) 15%, transparent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Right-side summary: the member's central role + their warning count -
   replaces what used to be a row of quick-action buttons here. */
.member-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--surface-raised);
  white-space: nowrap;
  text-align: center;
}
.warn-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 15%, transparent);
  padding: 2px 8px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}
.warn-count:hover { background: color-mix(in srgb, var(--warning) 26%, transparent); }

.history-list { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; }
.history-item {
  font-size: 13px;
  padding: 10px 12px;
  background: var(--bg-deep);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.history-item .history-meta { color: var(--text-faint); font-size: 11px; margin-top: 3px; }

@media (max-width: 560px) {
  .member-row { flex-wrap: wrap; }
  .toolbar { flex-wrap: wrap; }
}
