/**
 * Post Likes Styles for Zeina Theme
 */

.post-likes {
	display: flex !important;
	align-items: center;
	gap: 0.5rem;
}

.post-like-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.5rem;
	border-radius: 0.375rem;
	transition: all 0.2s ease;
	border: none;
	background: transparent;
	cursor: pointer !important;
	font-size: 0.875rem;
	font-weight: 500;
	user-select: none;
	-webkit-user-select: none;
	pointer-events: auto !important;
	position: relative !important;
	z-index: 9999 !important;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.post-like-btn:not(:disabled):hover {
	background: rgba(0, 0, 0, 0.05);
}

.dark .post-like-btn:not(:disabled):hover {
	background: rgba(255, 255, 255, 0.05);
}

.post-like-btn:not(:disabled):active {
	transform: scale(0.95);
}

.post-like-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed !important;
}

.post-like-icon {
	width: 1.25rem;
	height: 1.25rem;
	transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
	flex-shrink: 0;
}

/* Заполненное сердце — всегда красное */
.post-like-icon.post-like-icon--filled {
	fill: #dc2626;
	stroke: #dc2626;
}

.dark .post-like-icon.post-like-icon--filled {
	fill: #f87171;
	stroke: #f87171;
}

.post-like-btn:not(:disabled):hover .post-like-icon {
	transform: scale(1.1);
}

.post-like-btn.liked .post-like-icon,
.post-like-btn[data-liked="1"] .post-like-icon {
	animation: likePulse 0.3s ease;
}

@keyframes likePulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

.post-like-count {
	font-size: 0.875rem;
	font-weight: 500;
	min-width: 1.5rem;
	text-align: center;
	line-height: 1;
}
