/* ============================================================
 * composer.css — Discord mesaj yazma kutusu (birebir)
 * ============================================================ */

/* Eski composer kuralı — artık composer-extra.css yönetiyor */

/* ---- Outer wrapper ---- */
.composer {
  position: relative;
  display: flex; align-items: center;
  margin: 0 16px 10px 20px;
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  gap: 0; flex-shrink: 0;
  min-height: 56px;
}

/* ---- + Ekle butonu (sol) ---- */
.comp-add {
  background: none; border: none; color: var(--muted); cursor: pointer;
  align-self: stretch; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0; margin: 0 8px 0 14px;
  transition: color .1s;
}
.comp-add:hover { color: var(--text); }

/* ---- Metin girişi ---- */
.composer #uwz {
  flex: 1; background: none; border: none; border-radius: 0;
  color: var(--text); padding: 11px 0;
  font-size: 16px; line-height: 22px; outline: none; min-width: 0;
  /* contenteditable div davranışı */
  cursor: text;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
  -webkit-user-select: text; user-select: text;
}
.composer #uwz::placeholder { color: var(--muted); }
/* AutoFill yemi — tamamen görünmez, tıklanamaz, yer kaplamaz */
.autofill-decoy {
  position: absolute !important;
  left: -9999px !important; top: 0 !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important; padding: 0 !important; margin: 0 !important;
  z-index: -1 !important;
}
/* boş contenteditable için placeholder */
.composer #uwz:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}

/* ---- Sağ ikon butonları ---- */
.comp-actions {
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px 0 4px; flex-shrink: 0;
}
.comp-actions .icon-btn {
  width: 32px; height: 32px; padding: 0;
  background: none; border: none; border-radius: 4px;
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .1s;
}
.comp-actions .icon-btn:hover { color: var(--text); }
.gif-btn { font-weight: 800; font-size: 11px; letter-spacing: .02em; }

/* ---- Gönder butonu (mobilde görünür, masaüstünde gizli) ---- */
.composer .send-btn { display: none; }
@media (max-width: 640px) {
  .composer { margin: 0 8px 8px; }
  .composer .send-btn {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); border: none; color: #fff;
    padding: 0 14px; height: 36px; border-radius: 6px;
    font-weight: 600; font-size: 13px; cursor: pointer;
    flex-shrink: 0; margin-right: 6px;
  }
}

/* ---- Emoji paneli ---- */
#emojiPanel {
  position: absolute; bottom: 60px; left: 0;
  background: var(--popout-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px;
  display: none; grid-template-columns: repeat(8,1fr); gap: 2px;
  max-width: 310px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 20;
}
#emojiPanel.open { display: grid; }
#emojiPanel span {
  cursor: pointer; font-size: 20px; padding: 4px;
  border-radius: 4px; text-align: center;
}
#emojiPanel span:hover { background: var(--hover); }

/* ---- Mention listesi ---- */
.mention-list {
  position: absolute; bottom: 60px; left: 0;
  background: var(--popout-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  display: none; z-index: 25; min-width: 200px; overflow: hidden;
}
.mention-list.open { display: block; }
.mention-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 14px;
}
.mention-item:hover, .mention-item.active { background: var(--hover-active); }
.mention-item .m-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
