/**
 * Cholloblog Theme — contador de comentarios para tarjetas.
 *
 * Sustituye el antiguo bloque oscuro de Hueman por una cápsula clara,
 * integrada con la identidad azul/naranja de Cholloblog.
 *
 * @since 3.3.0
 */
.cb-theme .post-list .post-comments {
  top: 12px;
  right: 12px;
  z-index: 8;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  color: var(--cb-text, #24313f) !important;
  line-height: 1;
  text-decoration: none;
  filter: none;
  animation: cb-comment-badge-in .48s cubic-bezier(.2,.8,.2,1) both;
}

.cb-theme .post-list .post-comments > span {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 39px;
  height: 32px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid rgba(8,119,209,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.94) !important;
  color: #314152;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 16px rgba(30,51,72,.13);
  -webkit-backdrop-filter: blur(8px) saturate(1.12);
  backdrop-filter: blur(8px) saturate(1.12);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.cb-theme .post-list .post-comments > span::before {
  display: none !important;
}

.cb-theme .post-list .post-comments i {
  margin: 0;
  color: var(--cb-primary, #0877d1);
  font-size: 12px;
  line-height: 1;
  transform-origin: 50% 70%;
}

.cb-theme .post-list .post-comments::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: var(--cb-accent, #ff8a00);
  box-shadow: 0 1px 5px rgba(255,138,0,.36);
}

.cb-theme .post-list .post-comments:hover,
.cb-theme .post-list .post-comments:focus-visible {
  color: #24313f !important;
  padding-right: 0 !important;
  outline: none;
}

.cb-theme .post-list .post-comments:hover > span,
.cb-theme .post-list .post-comments:focus-visible > span {
  transform: translateY(-2px);
  border-color: rgba(8,119,209,.38);
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(30,73,111,.18);
}

.cb-theme .post-list .post-comments:hover i,
.cb-theme .post-list .post-comments:focus-visible i {
  animation: cb-comment-icon-pop .42s ease;
}

@keyframes cb-comment-badge-in {
  0% { opacity: 0; transform: translateY(-5px) scale(.88); }
  70% { opacity: 1; transform: translateY(1px) scale(1.035); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cb-comment-icon-pop {
  0%, 100% { transform: rotate(0) scale(1); }
  35% { transform: rotate(-9deg) scale(1.15); }
  70% { transform: rotate(7deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .cb-theme .post-list .post-comments,
  .cb-theme .post-list .post-comments i {
    animation: none !important;
  }

  .cb-theme .post-list .post-comments > span {
    transition: none;
  }
}
