/* =============================================================
   reactions.css — Puntazo · Reacciones + Comentarios
   ============================================================= */

/* ── Contenedor legacy (mejores.html) ── */
.pz-reactions-wrap {
  margin-top: 10px;
  padding: 10px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Slot mode: rxn bar directa sin wrap ── */
[data-rxn-slot] {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

/* ── Barra de emojis ── */
.pz-rxn-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* ── Botón de reacción ── */
.pz-rxn-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #eaf2ff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-family: inherit;
}

.pz-rxn-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

.pz-rxn-btn:active {
  transform: scale(0.92);
}

.pz-rxn-btn.pz-voted {
  background: rgba(0, 79, 200, 0.25);
  border-color: rgba(11, 124, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(11, 124, 255, 0.15);
}

@keyframes pz-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.pz-rxn-btn.pz-active-pop {
  animation: pz-pop 0.25s ease;
}

.pz-emoji {
  font-size: 16px;
  line-height: 1;
}

.pz-count {
  font-size: 12px;
  font-weight: 700;
  color: rgba(234, 242, 255, 0.65);
  min-width: 12px;
  text-align: center;
}

/* ── Participantes ── */
.pz-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.pz-participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #eaf2ff;
  font-size: 0.81rem;
  font-weight: 700;
  transition: background 0.15s;
  font-family: inherit;
}

.pz-participant-chip:hover {
  background: rgba(255, 255, 255, 0.13);
}

.pz-participant-chip img,
.pz-participant-chip .pz-p-initial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pz-p-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 79, 200, 0.45);
  color: #fff;
  font-size: 0.70rem;
  font-weight: 900;
}

/* ── Claim button ── */
.pz-claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: transparent;
  color: rgba(234, 242, 255, 0.50);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.pz-claim-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #eaf2ff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* ── Toggle comentarios ── */
.pz-comment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: transparent;
  color: rgba(234, 242, 255, 0.50);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  margin-top: 6px;
}

.pz-comment-toggle:hover {
  color: #eaf2ff;
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Sección de comentarios ── */
.pz-comment-section {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Lista de comentarios ── */
.pz-comments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}

.pz-comment {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  animation: pz-fadeIn 0.2s ease;
}

@keyframes pz-fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pz-comment.pz-mine {
  background: rgba(0, 79, 200, 0.14);
  border: 1px solid rgba(11, 124, 255, 0.18);
}

.pz-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pz-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: rgba(234, 242, 255, 0.80);
  font-size: 0.78rem;
  font-weight: 700;
}

.pz-comment-author strong {
  color: #eaf2ff;
}

.pz-comment-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pz-comment-meta {
  color: rgba(234, 242, 255, 0.30);
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pz-comment-text {
  color: #eaf2ff;
  word-break: break-word;
  line-height: 1.5;
}

/* ── Input de comentario ── */
.pz-comment-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pz-comment-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 9px 12px;
  color: #eaf2ff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.pz-comment-input:focus {
  border-color: rgba(11, 124, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 79, 200, 0.14);
}

.pz-comment-input::placeholder {
  color: rgba(234, 242, 255, 0.28);
}

.pz-send-btn,
.pz-send-incognito-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.1s ease, filter 0.15s;
}

.pz-send-btn {
  background: linear-gradient(180deg, #0b7cff, #004fc8);
  box-shadow: 0 4px 16px rgba(0, 79, 200, 0.35);
}

.pz-send-incognito-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 16px;
}

.pz-send-btn:hover,
.pz-send-incognito-btn:hover {
  filter: brightness(1.15);
}

.pz-send-btn:active,
.pz-send-incognito-btn:active {
  transform: scale(0.9);
}

.pz-send-btn:disabled,
.pz-send-incognito-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Contador de caracteres ── */
.pz-char-count {
  font-size: 11px;
  color: rgba(234, 242, 255, 0.28);
  text-align: right;
  padding-right: 2px;
}

/* ── Mostrar más ── */
.pz-show-more-comments {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: transparent;
  color: rgba(234,242,255,0.55);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.pz-show-more-comments:hover {
  color: #eaf2ff;
  border-color: rgba(255,255,255,0.20);
}

/* ── Badge viral (mejores.html) ── */
.pz-viral-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 190, 0, 0.20), rgba(255, 120, 0, 0.15));
  border: 1px solid rgba(255, 190, 0, 0.35);
  color: #ffe066;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 400px) {
  .pz-rxn-btn {
    padding: 5px 8px;
    font-size: 13px;
  }
  .pz-emoji {
    font-size: 15px;
  }
}
