/* "Me gusta", comentarios y compartir (feed, enlace permanente y artículos) */

.fp-social {
  margin-top: 12px;
}

.fp-actions {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}

.act {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 9px 6px;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.act:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.act:disabled {
  opacity: 0.6;
  cursor: default;
}

.act.on {
  color: var(--accent);
}

.act.on .ic {
  filter: drop-shadow(0 0 4px rgba(201, 154, 63, 0.7));
}

.act .n {
  font-weight: 700;
  min-width: 0;
}

.act .n:empty {
  display: none;
}

/* ------------------------------------------------------------ comentarios */

.cm-section {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.cm-section[hidden],
.cm-more[hidden] {
  display: none;
}

.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.cm {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cm-main {
  flex: 1;
  min-width: 0;
}

.cm-bubble {
  display: inline-block;
  max-width: 100%;
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 8px 12px;
}

.cm-bubble strong {
  font-size: 0.86rem;
}

.cm-author {
  margin-left: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0 6px;
  vertical-align: 1px;
}

.cm-text {
  line-height: 1.5;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.cm-text p {
  margin: 0 0 0.4em;
}

.cm-text p:last-child {
  margin-bottom: 0;
}

.cm-text a {
  color: var(--accent-2);
}

.cm-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 3px 0 0 10px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.cm-act {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-dim);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cm-act:hover {
  color: var(--text);
  text-decoration: underline;
}

.cm-replies {
  margin-top: 8px;
}

.cm-replies:empty {
  margin-top: 0;
}

.cm-reply {
  margin-bottom: 8px;
}

.cm-more {
  margin: 0 0 10px 40px;
}

.cm-more .btn-soft {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.cm-form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 6px;
}

.cm-form textarea {
  flex: 1;
  resize: none;
  min-height: 34px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 18px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
}

.cm-form textarea:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}

.cm-send {
  align-self: flex-end;
  background: var(--accent-2);
  color: #0e1409;
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.cm-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cm-guest {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.cm-replies .cm-form {
  margin-bottom: 4px;
}

/* ----------------------------------------------------------------- aviso */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  background: #0e1409;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px #0008;
  transition: opacity 0.4s;
}

.toast.hide {
  opacity: 0;
}

/* Bloque social en la página de un artículo */
.post .fp-social {
  margin-top: 40px;
  padding-top: 8px;
}

@media (max-width: 640px) {
  .act .lbl {
    display: none;
  }

  .act {
    font-size: 1rem;
  }
}

/* ------------------------------------------------ menú ⋯, reportes y avisos */

.fp-more {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 8px;
  font-family: inherit;
}

.fp-more:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.mod-menu {
  position: absolute;
  z-index: 110;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px #0009;
}

.mod-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.mod-menu button:hover {
  background: var(--bg-card);
}

.mod-overlay {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: #000a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mod-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
}

.mod-dialog h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.mod-dialog .muted {
  margin: 0 0 12px;
}

.mod-opt {
  display: block;
  padding: 7px 4px;
  cursor: pointer;
  font-size: 0.94rem;
}

.mod-dialog textarea {
  width: 100%;
  margin-top: 8px;
  resize: vertical;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.92rem;
}

.mod-err {
  color: #e8836b;
  font-size: 0.86rem;
  margin: 8px 0 0;
}

.mod-err[hidden] {
  display: none;
}

.mod-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* ------------------------------------------------------------- menciones */

.em-mention {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}

.em-mention:hover {
  text-decoration: underline;
}

.mention-box {
  position: absolute;
  z-index: 112;
  min-width: 230px;
  max-width: 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 10px 30px #0009;
}

.mention-box button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.mention-box button.sel,
.mention-box button:hover {
  background: var(--bg-card);
}

.mention-box .avatar {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}

.mention-box small {
  color: var(--text-dim);
}

