@charset "UTF-8";
/* styles.v10.css — Like/dislike row on post detail + animated favorite star.
 * Loads AFTER all previous stylesheets so its rules win where needed.
 */

/* ── Vote group sitting in the existing .detail-rating row ─────────── */

.v8-rating-row.detail-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px dashed rgba(255, 244, 222, 0.08);
  border-bottom: 1px dashed rgba(255, 244, 222, 0.08);
  margin: 10px 0;
}

.v8-vote-group {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.v8-vote {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 222, 0.12);
  background: rgba(255, 244, 222, 0.05);
  color: rgba(200, 185, 161, 0.92);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  overflow: visible;
  transition:
    transform 200ms cubic-bezier(.22,1,.36,1),
    background 200ms cubic-bezier(.22,1,.36,1),
    color 200ms cubic-bezier(.22,1,.36,1),
    border-color 200ms cubic-bezier(.22,1,.36,1),
    box-shadow 280ms cubic-bezier(.22,1,.36,1);
  user-select: none;
}
.v8-vote:hover {
  border-color: rgba(255, 244, 222, 0.26);
  background: rgba(255, 244, 222, 0.1);
  color: var(--text, #f6efe2);
  transform: translateY(-1px);
}
.v8-vote .v8-icon { transition: transform 200ms cubic-bezier(.22,1,.36,1); }
.v8-vote .v8-icon-filled { display: none; }
.v8-vote.is-on .v8-icon-outline { display: none; }
.v8-vote.is-on .v8-icon-filled  { display: inline-block; }

.v8-vote-label {
  font-weight: 700;
  letter-spacing: 0.005em;
  font-size: 0.88rem;
}

/* Active states */
.v8-like.is-on {
  border-color: rgba(78, 199, 155, 0.5);
  background: linear-gradient(180deg, rgba(78, 199, 155, 0.28), rgba(78, 199, 155, 0.1));
  color: #d6ffe9;
  box-shadow: 0 0 0 1px rgba(78, 199, 155, 0.32), 0 10px 26px -14px rgba(78, 199, 155, 0.55);
}
.v8-like.is-on .v8-icon { transform: translateY(-1px); }

.v8-dislike.is-on {
  border-color: rgba(255, 102, 133, 0.5);
  background: linear-gradient(180deg, rgba(255, 102, 133, 0.28), rgba(255, 102, 133, 0.1));
  color: #ffd0d8;
  box-shadow: 0 0 0 1px rgba(255, 102, 133, 0.32), 0 10px 26px -14px rgba(255, 102, 133, 0.55);
}
.v8-dislike.is-on .v8-icon { transform: translateY(1px); }

.v8-vote-count {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}

/* Pop animation on click */
@keyframes v8-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18) rotate(-3deg); }
  60%  { transform: scale(0.95) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}
.v8-popping { animation: v8-pop 420ms cubic-bezier(.22,1,.36,1); }
.v8-popping .v8-icon { animation: v8-pop 420ms cubic-bezier(.22,1,.36,1); }

/* Bursting symbols flying out of the button */
@keyframes v8-burst {
  0%   { opacity: 0; transform: translate(-50%, -50%) translate(0, 0) rotate(0) scale(0.6); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.1); }
}
.v8-burst {
  position: absolute;
  left: 50%; top: 50%;
  pointer-events: none;
  color: #ff89a4;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(255, 137, 164, 0.55);
  animation: v8-burst 700ms cubic-bezier(.22,1,.36,1) forwards;
}
.v8-burst.v8-burst-dis {
  color: #ffd0a0;
  text-shadow: 0 1px 6px rgba(255, 178, 92, 0.55);
}

/* Ratio % on the right side of the row */
.v8-ratio {
  font-weight: 800;
  color: rgba(200, 185, 161, 0.84);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ── Favorite star: stronger pop + heart-burst from app.v8 ──────────── */
/* IMPORTANT: do NOT set `position: relative` here. The base CSS sets
 * .favorite-star to position: absolute (top: 10px; right: 10px) so it
 * pins to the corner of the preview / detail art. Overriding it broke
 * the layout. We only need overflow:visible so the burst can fly out. */

.favorite-star {
  transition:
    transform 200ms cubic-bezier(.22,1,.36,1),
    background 200ms cubic-bezier(.22,1,.36,1),
    border-color 200ms cubic-bezier(.22,1,.36,1),
    color 200ms cubic-bezier(.22,1,.36,1),
    box-shadow 280ms cubic-bezier(.22,1,.36,1);
  overflow: visible;
}
.favorite-star:hover {
  transform: translateY(-1px) scale(1.05);
}
.favorite-star.active {
  color: #ff89a4;
  border-color: rgba(255, 137, 164, 0.55);
  background: rgba(255, 137, 164, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 137, 164, 0.32), 0 10px 26px -14px rgba(255, 137, 164, 0.55);
}

@keyframes v8-fav-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.35) rotate(-8deg); }
  55%  { transform: scale(0.92) rotate(4deg); }
  80%  { transform: scale(1.06) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}
.favorite-star.v8-fav-pulse,
.favorite-star.v8-fav-pulse span {
  animation: v8-fav-pop 520ms cubic-bezier(.22,1,.36,1);
}

/* On mobile keep the row readable */
@media (max-width: 520px) {
  .v8-rating-row.detail-rating { flex-direction: column; align-items: stretch; gap: 8px; }
  .v8-vote-group { justify-content: stretch; }
  .v8-vote { flex: 1; justify-content: center; }
  .v8-ratio { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .v8-popping, .v8-burst, .favorite-star.v8-fav-pulse,
  .favorite-star.v8-fav-pulse span {
    animation-duration: 0.001ms !important;
  }
}
