/* ============================================================
 * users.css — Discord üye listesi (birebir)
 * ============================================================ */

.users {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel);
}

/* ---- Üst arama ---- */
.users-header {
  padding: 10px 8px 8px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.users-search {
  width: 100%; background: var(--panel2);
  border: none; border-radius: 4px;
  color: var(--text); padding: 6px 10px;
  font-size: 14px; outline: none;
}
.users-search::placeholder { color: var(--muted); }
.users-search:focus { box-shadow: 0 0 0 2px var(--accent); }

/* ---- Grup başlığı (ÇEVRIMIÇI — 3) ---- */
.users-count, .member-group {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  color: var(--muted); letter-spacing: .02em; opacity: .45;
  padding: 8px 8px 2px 6px; flex-shrink: 0;
}

/* ---- Kullanıcı listesi ---- */
.users-list {
  flex: 1; overflow-y: auto; padding: 0 8px 8px;
  display: flex; flex-direction: column; gap: 0;
}
.users-list::-webkit-scrollbar { width: 30px; }

/* ---- Kullanıcı satırı ---- */
.user-item {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 6px; border-radius: 4px; cursor: pointer;
  min-height: 32px;
  transition: background .1s;
}
.user-item:hover { background: var(--hover); }

/* ---- Avatar ---- */
.u-av {
  width: var(--avatar-member, 32px);
  height: var(--avatar-member, 32px);
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; overflow: hidden;
  position: relative;
}
.u-av img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Durum noktası (avatar üzerinde) ---- */
.u-av-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--panel);
}
.u-av-dot.online  { background: var(--online); }
.u-av-dot.away    { background: var(--idle); }
.u-av-dot.dnd     { background: var(--dnd); }
.u-av-dot.offline { background: var(--offline); }

/* ---- Grup etiketi olan ilk user-item üst boşluk ---- */
.user-item:has(.u-group-label) { margin-top: 12px; }

/* ---- Grup etiketi (avatarın yanında üstte) ---- */
.u-group-label {
  display: block;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--muted); letter-spacing: .04em;
  line-height: 14px; margin-bottom: 2px;
}

/* ---- Nick + platform ikonu satırı ---- */
.u-name-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.u-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.u-nick {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 500; line-height: 18px; color: var(--text);
}
.u-subnick { font-size: 12px; color: var(--muted); }

/* ---- Platform ikonu ---- */
.platform-icon { display: inline-flex; align-items: center; flex-shrink: 0; width: 14px; height: 14px; }
.platform-icon svg { width: 14px; height: 14px; }
.platform-icon.online  { color: var(--online); }
.platform-icon.idle    { color: var(--idle); }
.platform-icon.dnd     { color: var(--dnd); }
.platform-icon.offline { color: var(--offline); }

/* ---- Rozet ---- */
.u-badge {
  font-size: 10px; font-weight: 700; padding: 1px 4px;
  border-radius: 3px; flex-shrink: 0; border: 1px solid transparent;
}
.u-badge.admin     { color: var(--dnd); border-color: var(--dnd); }
.u-badge.moderator { background: #9b59b6; color: #fff; }
.u-badge.vip       { background: #e2c23b; color: #000; }

/* ---- Durum noktası (bağımsız) ---- */
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.online  { background: var(--online); }
.dot.away    { background: var(--idle); }
.dot.dnd     { background: var(--dnd); }
.dot.offline { background: var(--offline); }
