/**
 * Simple Reactions — heart styles.
 *
 * Inherits the theme's palette via CSS variables (with hard-coded fallbacks so
 * the plugin still looks right on another theme) and respects reduced motion.
 * The class-based resets defeat the theme's generic button styling.
 */
.reaction-meta {
	white-space: nowrap;
}

.reaction {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font: inherit;
	color: inherit;
	line-height: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.reaction-heart {
	display: inline-block;
	width: 0.9rem;
	height: 0.9rem;
	vertical-align: -0.15em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
	transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
}

.reaction:hover .reaction-heart,
.reaction:focus-visible .reaction-heart {
	stroke: var(--color-accent, #663399);
}

.reaction[aria-pressed="true"] {
	color: var(--color-accent, #663399);
}

.reaction[aria-pressed="true"] .reaction-heart {
	fill: var(--color-accent, #663399);
	stroke: var(--color-accent, #663399);
}

.reaction:focus-visible {
	outline: 2px solid var(--color-accent, #663399);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Click feedback — a subtle pop on the heart. */
@keyframes simple-reactions-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.35); }
	100% { transform: scale(1); }
}

.reaction.is-animating .reaction-heart {
	animation: simple-reactions-pop 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
	.reaction-heart {
		transition: none;
	}
	.reaction.is-animating .reaction-heart {
		animation: none;
	}
}
