/* Kozamia — yanıt / tepki / sil (tüm Bağlan sohbetleri) */

.kz-reply-quote {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.06);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dm-msg.is-self .kz-reply-quote,
.buddy-msg.is-self .kz-reply-quote,
.soul-msg.is-self .kz-reply-quote,
.listen-chat-msg.is-self .kz-reply-quote,
.dream-smsg.is-self .kz-reply-quote,
.mp-chat-msg.is-me .kz-reply-quote {
  background: rgba(255, 255, 255, 0.16);
}

.kz-reply-quote-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--kz-accent, #c45c7a);
  flex-shrink: 0;
}

.kz-reply-quote-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.kz-reply-quote-body strong {
  font-size: 0.72rem;
  opacity: 0.9;
}

.kz-reply-quote-body span {
  font-size: 0.78rem;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kz-msg-body { min-width: 0; }
.kz-msg-body p {
  margin: 0 0 0.05rem;
  line-height: 1.32;
}

.kz-msg-deleted {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.7;
}

.kz-react-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.kz-react-pill {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1.4;
  cursor: pointer;
}

.kz-react-pill.is-mine {
  border-color: rgba(196, 92, 122, 0.45);
  background: rgba(196, 92, 122, 0.12);
}

.dm-msg.is-self .kz-react-pill,
.buddy-msg.is-self .kz-react-pill,
.soul-msg.is-self .kz-react-pill {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  color: inherit;
}

.kz-msg-actions {
  display: none;
  gap: 0.15rem;
  margin-top: 0.2rem;
  opacity: 1;
}

/* Yanıt / tepki / sil — yalnızca mesaja basılınca */
.dm-msg.is-actions-open .kz-msg-actions,
.buddy-msg.is-actions-open .kz-msg-actions,
.soul-msg.is-actions-open .kz-msg-actions,
.community-chat-msg.is-actions-open .kz-msg-actions,
.listen-chat-msg.is-actions-open .kz-msg-actions,
.dream-smsg.is-actions-open .kz-msg-actions,
.mp-chat-msg.is-actions-open .kz-msg-actions {
  display: flex;
}

.kz-msg-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.kz-msg-action .material-symbols-outlined {
  font-size: 0.95rem;
}

.kz-msg-action.is-danger:hover {
  background: rgba(180, 40, 60, 0.15);
  color: #b4283c;
}

.kz-react-picker {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.05rem;
  width: max-content;
  max-width: min(100%, 17.5rem);
  margin-top: 0.3rem;
  padding: 0.22rem 0.28rem;
  border-radius: 999px;
  background: #ffffff;
  color: #1e1b2e;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 30;
}

.kz-react-picker::-webkit-scrollbar { display: none; }

.kz-react-picker[hidden] { display: none !important; }

.kz-react-pick {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  width: 1.95rem;
  height: 1.95rem;
  min-width: 1.95rem;
  flex: 0 0 auto;
  border-radius: 0.45rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 1;
  visibility: visible;
}

.kz-react-pick:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Tepki paneli balon taşmasına takılmasın */
.dm-msg.is-actions-open,
.buddy-msg.is-actions-open,
.soul-msg.is-actions-open,
.community-chat-msg.is-actions-open,
.listen-chat-msg.is-actions-open,
.dream-smsg.is-actions-open,
.mp-chat-msg.is-actions-open {
  position: relative;
  z-index: 4;
  overflow: visible;
}

.dm-msg.is-actions-open .dm-msg-bubble,
.buddy-msg.is-actions-open .buddy-msg-bubble,
.soul-msg.is-actions-open .soul-msg-bubble,
#connect-panel-messages .dm-msg.is-actions-open .dm-msg-bubble {
  overflow: visible !important;
  z-index: 5;
}

.kz-liked-pop {
  position: relative;
}

.kz-liked-pop::after {
  content: "💜";
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%) scale(0.4);
  font-size: 2.4rem;
  pointer-events: none;
  z-index: 5;
  animation: kz-like-burst 0.5s ease-out forwards;
}

@keyframes kz-like-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  35% { opacity: 1; transform: translate(-50%, -55%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(0.85); }
}

.kz-reply-draft-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.65rem;
  background: rgba(196, 92, 122, 0.1);
  border: 1px solid rgba(196, 92, 122, 0.2);
}

.kz-reply-draft-bar[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.kz-clear-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.kz-clear-chat-btn .material-symbols-outlined {
  font-size: 1.05rem;
}

.kz-chat-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.buddy-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.buddy-chat-header #buddy-chat-title {
  flex: 1;
  min-width: 0;
}

.listen-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.listen-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.community-chat-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.dream-session-head-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#dm-clear-chat-btn .material-symbols-outlined {
  font-size: 1.2rem;
}

.kz-reply-draft-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.8rem;
}

.kz-reply-draft-text strong {
  color: var(--kz-accent, #c45c7a);
  font-size: 0.72rem;
}

.kz-reply-draft-text span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.kz-reply-draft-cancel {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  color: inherit;
}

.kz-reply-draft-cancel .material-symbols-outlined {
  font-size: 1.1rem;
}

/* Form layout: reply bar full width above input row */
#dm-chat-form,
#community-chat-form,
#buddy-chat-form,
#soul-chat-form,
#dream-session-form,
.listen-chat-form,
.mp-chat-form {
  flex-wrap: wrap;
}

#dm-chat-form .kz-reply-draft-bar,
#community-chat-form .kz-reply-draft-bar,
#buddy-chat-form .kz-reply-draft-bar,
#soul-chat-form .kz-reply-draft-bar,
#dream-session-form .kz-reply-draft-bar,
.listen-chat-form .kz-reply-draft-bar,
.mp-chat-form .kz-reply-draft-bar {
  flex: 1 1 100%;
}

.kz-clear-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.kz-clear-chat-btn .material-symbols-outlined {
  font-size: 1.05rem;
}

.kz-chat-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.buddy-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.buddy-chat-header #buddy-chat-title {
  flex: 1;
  min-width: 0;
}

.listen-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.community-chat-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.dream-session-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dream-session-head-main {
  flex: 1;
  min-width: 0;
}

#dm-clear-chat-btn .material-symbols-outlined {
  font-size: 1.2rem;
}

.mp-chat-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0.25rem 0.5rem 0;
}

