/* ==========================================================================
   Member List Styles (Ported from MemberListView.swift)
   ========================================================================== */

.member-list-panel {
  width: var(--members-width);
  height: 100%;
  background-color: var(--bg-channel-sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  user-select: none;
  z-index: 5;
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.member-list-panel.hidden {
  display: none;
}

/* Header */
.member-list-header {
  height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-divider);
  flex-shrink: 0;
}

.member-list-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-header-primary);
}

.member-list-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: var(--interactive-normal);
}

.member-list-close-btn:hover {
  color: var(--interactive-hover);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Search Box */
.member-search-wrap {
  padding: 10px 16px;
  flex-shrink: 0;
}

.member-search-box {
  height: 36px;
  background-color: var(--bg-chat-input);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.member-search-icon {
  color: var(--text-muted);
  font-size: 14px;
}

.member-search-input {
  width: 100%;
  font-size: 14px;
  color: var(--text-normal);
}

.member-search-input::placeholder {
  color: var(--text-muted);
}

/* Members Scroll Area */
.member-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Group Section */
.member-group-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 0 16px 4px 16px;
}

/* Member Row */
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  cursor: pointer;
  border-radius: 4px;
  margin: 0 8px;
  transition: background-color 0.12s ease;
}

.member-row:hover {
  background-color: var(--bg-hover-channel);
}

.member-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.member-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
}

.member-avatar-circle .vamp-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.member-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-channel-sidebar);
}

.member-status-dot.online { background-color: var(--status-online); }
.member-status-dot.idle { background-color: var(--status-idle); }
.member-status-dot.dnd { background-color: var(--status-dnd); }
.member-status-dot.offline { background-color: var(--status-offline); }

.member-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.member-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.member-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-crown-icon {
  color: var(--role-owner);
  font-size: 12px;
}

.member-custom-status {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
