/* ============================================================
   Muhabbetci — Sohbet Nick Menüsü stilleri (webmenu.css)
   ============================================================ */

.webmenu {
  position: fixed;
  width: 268px;
  background: linear-gradient(180deg, #1a202c, #111621);
  border: 1px solid rgba(79,140,255,.4);
  border-radius: 13px;
  box-shadow: 0 20px 56px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
  z-index: 9500;
  overflow: hidden;
  animation: webMenuGir .16s cubic-bezier(.2,.9,.3,1);
  transform-origin: top left;
}
.webmenu.hidden { display: none; }

@keyframes webMenuGir {
  from { opacity: 0; transform: translateY(-7px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ---- başlık ---- */
.webmenu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(120deg, rgba(79,140,255,.12), rgba(123,92,255,.07));
}

.webmenu-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.2);
}

.webmenu-meta { flex: 1 1 auto; min-width: 0; }
.webmenu-name {
  font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.webmenu-sub {
  font-size: 10.5px;
  color: var(--txt-mute, #8492a6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.webmenu-x {
  font-size: 18px;
  line-height: 1;
  color: var(--txt-mute, #8492a6);
  padding: 2px 4px;
  border-radius: 6px;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.webmenu-x:hover { background: rgba(255,59,92,.2); color: #fff; }

/* ---- gövde ---- */
.webmenu-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 62vh;
  overflow-y: auto;
}

.webmenu-act {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
  transition: background .13s, transform .1s;
}
.webmenu-act:hover { background: rgba(79,140,255,.13); }
.webmenu-act:active { transform: scale(.985); }

.webmenu-act.danger:hover { background: rgba(255,59,92,.14); }
.webmenu-act.warn:hover { background: rgba(255,176,32,.13); }

.webmenu-act.kilitli { opacity: .42; cursor: not-allowed; }
.webmenu-act.kilitli:hover { background: transparent; }

.webmenu-ico { font-size: 16px; flex: 0 0 auto; line-height: 1.3; }

.webmenu-txt {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.webmenu-txt b {
  font-size: 13px; font-weight: 700;
  color: var(--txt, #e8eefc);
}
.webmenu-txt i {
  font-size: 10.5px;
  font-style: normal;
  color: var(--txt-mute, #8492a6);
  line-height: 1.35;
}

.webmenu-act.danger .webmenu-txt b { color: #ff8095; }
.webmenu-act.warn .webmenu-txt b { color: #ffc266; }

/* ---- alt not ---- */
.webmenu-note {
  margin: 0;
  padding: 9px 12px 11px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--txt-mute, #8492a6);
}

/* ---- sohbetteki nick tıklanabilir görünsün ---- */
.msg-author {
  cursor: pointer;
  border-radius: 5px;
  padding: 1px 4px;
  margin: -1px -4px;
  transition: background .13s, color .13s;
}
.msg-author:hover {
  background: rgba(79,140,255,.18);
  color: #bcd3ff;
}
.msg-author:active { background: rgba(79,140,255,.3); }

/* ---- mobil ---- */
@media (max-width: 620px) {
  .webmenu {
    width: min(300px, calc(100vw - 20px));
    left: 10px !important;
    right: 10px;
  }
  .webmenu-act { padding: 11px 10px; min-height: 50px; }
  .webmenu-txt b { font-size: 13.5px; }
  .webmenu-txt i { font-size: 11px; }
  .webmenu-av { width: 36px; height: 36px; font-size: 13px; }
}


/* ============================================================
   KULLANICI SATIRI — tıklayınca doğrudan özel mesaj
   İşlem menüsü bu satırlarda açılmaz.
   ============================================================ */
.user-item {
  cursor: pointer;
}
.user-item:active {
  background: rgba(79,140,255,.22);
}
/* satır içindeki nick ayrı bir tıklama hedefi olmasın —
   tüm satır tek bir özel mesaj düğmesi gibi davranır */
.user-item .user-name,
.user-item .user-sub {
  pointer-events: none;
}
.user-item .user-flags {
  pointer-events: none;
}
/* menü açılırsa satırın üzerinde kalmasın */
.user-item + .webmenu { display: none; }
