/* Vai Ver — favoritos e comentários */

/* ---------- coração ---------- */
:where(.fav-btn) { border: 0; background: none; }
.fav-btn { appearance: none; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .45em; }
.fav-btn .fav-ico { flex: none; overflow: visible; transition: transform .2s; }
.fav-btn .fav-ico path { fill: none; stroke: #9aa0a6; stroke-width: 2; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.fav-btn:hover .fav-ico path { stroke: #e0245e; }
.fav-btn.is-on .fav-ico path { fill: #e0245e; stroke: #e0245e; }
.fav-btn.pop .fav-ico { animation: favPop .4s ease; }
.fav-btn .fav-n { font-size: .8em; opacity: .75; font-variant-numeric: tabular-nums; }
.fav-btn .fav-n:empty { display: none; }
.fav-btn[disabled] { cursor: progress; }
.fav-btn:focus-visible { outline: 2px solid #e0245e; outline-offset: 2px; }
@keyframes favPop { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* ---------- comentários ---------- */
.block-cm [hidden] { display: none !important; }
.wrap-cm { max-width: 820px; }
.cm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cm-login { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem;
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px dashed rgba(127,127,127,.45); border-radius: 14px; }
.cm-login p { margin: 0; }

.cm-form { margin: 0 0 1.75rem; }
.cm-form textarea { display: block; width: 100%; box-sizing: border-box; min-height: 100px; resize: vertical; padding: .85rem 1rem;
  border: 1px solid rgba(127,127,127,.35); border-radius: 14px; font: inherit; color: inherit; background: rgba(127,127,127,.06); }
.cm-form textarea:focus { outline: 2px solid var(--c, #2f7d6d); outline-offset: 1px; }
.cm-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.cm-cont { font-size: .85rem; opacity: .65; font-variant-numeric: tabular-nums; }
.cm-cont.is-max { color: #c0392b; opacity: 1; }
.cm-msg { margin: .5rem 0 0; font-size: .9rem; color: #c0392b; }
.cm-msg:empty { display: none; }

.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cm { display: grid; grid-template-columns: 44px 1fr; gap: .85rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(127,127,127,.08); }
.cm.is-new { animation: cmIn .45s ease; }
.cm-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #d8e3e7; color: #33464d; font-weight: 700; font-size: .95rem; }
.cm-av img { width: 100%; height: 100%; object-fit: cover; }
.cm-body { min-width: 0; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; margin: 0 0 .3rem; font-size: .92rem; }
.cm-meta time { font-size: .82rem; opacity: .6; }
.cm-txt { margin: 0; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.cm-del { margin-left: auto; padding: 0; border: 0; background: none; font: inherit; font-size: .8rem; color: #c0392b; opacity: .75; cursor: pointer; }
.cm-del:hover { opacity: 1; text-decoration: underline; }
.cm-vazio { margin: 0; opacity: .7; }
.block-cm .more-row { margin-top: 1.25rem; }
@keyframes cmIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- aviso flutuante ---------- */
.soc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; display: flex; align-items: center; gap: 1rem;
  max-width: calc(100% - 32px); padding: .8rem 1.1rem; border-radius: 14px; background: #1d2a2f; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .95rem;
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.soc-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.soc-toast a { color: #ffd166; font-weight: 700; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .fav-btn.pop .fav-ico, .cm.is-new { animation: none; }
  .soc-toast { transition: none; }
}
