/* ============================================================
 * discord-refine.css — Discord ince kalibrasyon
 * Renk: yalnızca var() kullan. Hardcoded hex YOK.
 * ============================================================ */

/* Masaüstünde eski top header gizli */
@media (min-width: 641px) { header { display: none !important; } }

/* ---- Server Rail ---- */
.server-rail { background: var(--rail-bg); }
.srv-sep { background: var(--border); width: 32px; height: 2px; border-radius: 1px; }

/* ---- Sunucu başlığı (guild header) ---- */
.rooms-head {
  justify-content: space-between;
  font-weight: 700; font-size: 15px; height: 48px; cursor: pointer;
  letter-spacing: -.01em;
  transition: background .12s;
}
.rooms-head:hover { background: var(--hover); }
.rooms-head::after {
  content: ""; flex-shrink: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 5px solid var(--muted);
}

/* ---- Kategori başlığı ---- */
.cat-head {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--muted); padding: 16px 8px 4px 8px;
  cursor: pointer; letter-spacing: .02em;
}
.cat-head:hover { color: var(--head); }
.cat-caret { font-size: 10px; }

/* ---- Kanal ögeleri ---- */
.room-item {
  margin: 1px 8px; padding: 6px 8px; border-radius: var(--radius-xs);
  color: var(--muted); font-weight: 500; font-size: 13px; line-height: 20px;
}
.room-item:hover { background: var(--room-hover); color: var(--text); }
/* .room-item.active — rooms.css'de ::before glow ile tanımlandı */
.room-item .r-icon { font-size: 20px; font-weight: 400; color: var(--muted); }
.room-item:hover .r-icon,
.room-item.active .r-icon { color: var(--head); }

/* ---- Kanal üst bar ---- */
.chat-topbar {
  height: 48px;
  box-shadow: 0 1px 0 var(--border);
}
#roomIcon { font-size: 22px; color: var(--muted); font-weight: 400; }
.rh-name { font-weight: 700; font-size: 14px; color: var(--head); }

/* ---- Mesajlar (14px) ---- */
.msg-text { font-size: 14px; line-height: 1.4; color: var(--head); }
.msg-head .nick { font-size: 14px; font-weight: 600; }
.msg-head .time { font-size: 11px; }
.msg:not(.grouped) { margin-top: 4px; }

/* ---- Hesap çubuğu ---- */
.account-bar { height: 52px; }
.ab-info .h-me-name { font-size: 14px; font-weight: 600; color: var(--head); }
.ab-sub { font-size: 12px; color: var(--muted); }
.ab-btn { color: var(--muted); }
.ab-btn:hover { color: var(--head); background: var(--hover); }

/* ---- Üye listesi ---- */
.member-group {
  padding: 8px 8px 2px 6px; font-size: 12px; font-weight: 700; opacity: .45;
  color: var(--muted);
}
.users-list .user-item { min-height: 42px; border-radius: var(--radius-sm); }
.u-nick { font-size: 14px; font-weight: 500; }

/* ---- Composer ---- */
.composer { margin: 0 16px 10px 20px; }
.composer #uwz { font-size: 13px; }
.composer #uwz::placeholder { color: var(--muted); }

/* ---- Kanal arama kutusu ---- */
.channel-search {
  font-size: 13px; padding: 6px 8px; border-radius: var(--radius-xs);
  background: var(--panel3); border: none; color: var(--muted);
}
.channel-search:hover { color: var(--text); }
.channel-search:focus { color: var(--head); outline: none; }

/* ---- Üye listesi gizle/göster ---- */
.members-collapsed .users,
.members-collapsed #usersResizer { display: none !important; }

/* ---- Mobil gizlemeler ---- */
@media (max-width: 640px) {
  #pinBtn, #membersToggle { display: none; }
  .channel-search { display: none; }
}
