/* ============================================================
   pest/pest-extra.css – losse stylesheet, alléén voor de pest-casus
   (niet in het gedeelde styles.css, zodat de hoofdmap-casus
   ongewijzigd blijft). Bevat: emoji-reacties op NPC-berichten,
   "Beantwoorden"-quote (reply-preview + quote in eigen bericht).
   ============================================================ */

/* Pijltje-omlaag op een NPC-bubbel om te reageren/beantwoorden — altijd
   zichtbaar rechtsboven in de bubbel (zoals in WhatsApp), niet pas bij hover. */
.bubble-more-btn {
  position: absolute;
  top: 3px;
  right: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  opacity: .6;
  transition: opacity .12s ease, background .12s ease;
}
.bubble-more-btn:hover { opacity: 1; background: rgba(0,0,0,.06); }

/* Emoji-reactie-badge, overlapt de onderrand van de bubbel */
.msg-reaction {
  position: absolute;
  bottom: -10px;
  right: 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  padding: 1px 5px;
  line-height: 1.4;
}

/* Reactie/antwoord-popovertje */
.reaction-popover {
  position: fixed;
  z-index: 500;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: pop .12s ease-out;
}
.reaction-popover-emojis {
  display: flex;
  gap: 4px;
}
.reaction-emoji-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .1s ease, background .1s ease;
}
.reaction-emoji-btn:hover { background: rgba(0,0,0,.06); transform: scale(1.15); }
.reaction-popover-reply {
  border: none;
  border-top: 1px solid rgba(0,0,0,.06);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  padding: 6px 4px 2px;
  text-align: left;
  cursor: pointer;
}
.reaction-popover-reply:hover { color: var(--accent); }

/* Quote van het beantwoorde bericht, ingebed in het eigen ("me") bericht */
.quoted-ref {
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.04);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 5px;
  font-size: 12.5px;
}
.quoted-ref-name {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1px;
}
.quoted-ref-text {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reply-preview-balk boven het tekstveld (vóórdat je verstuurt) */
.reply-preview[hidden] { display: none; }
.reply-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.04);
  border-radius: 8px;
  padding: 6px 8px;
}
.reply-preview-bar {
  width: 3px;
  align-self: stretch;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.reply-preview-body { flex: 1; min-width: 0; }
.reply-preview-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.reply-preview-text {
  font-size: 12.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reply-preview-cancel {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}
.reply-preview-cancel:hover { color: var(--text); }
