/**
 * HPK Favoriten Counter Styles
 * Zeigt ein Herz-Icon mit Badge im Header
 */

.hpk-favorites-counter {
	display: inline-block;
}

.hpk-favorites-counter-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 8px 0;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.hpk-favorites-counter-link:hover {
	transform: scale(1.1);
}

.hpk-favorites-counter-icon {
	width: 20px;
	height: 20px;
	//fill: #999;
	transition: fill 0.2s ease;

	path {
		fill: transparent;
		stroke: #ffffff;
	}
}

.hpk-favorites-counter-link:hover .hpk-favorites-counter-icon {
	fill: #0070c5;
}

.hpk-favorites-counter-badge {
	position: absolute;
	display: none;
	top: 1px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	background: #ccc;
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
	font-weight: bold;
	padding: 2px 4px;
	line-height: 1;
	pointer-events: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.hpk-favorites-counter-badge.has-favorites {
	display: flex;
	background: #0070c5;
	animation: pulse 0.3s ease;
}

/* Animation für neue Favoriten */
@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

/* Badge ausblenden wenn Zahl 0 ist (optional) */
.hpk-favorites-counter-badge:not(.has-favorites) {
	opacity: 0.5;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
	.hpk-favorites-counter-icon {
		width: 24px;
		height: 24px;
	}

	.hpk-favorites-counter-badge {
		min-width: 16px;
		height: 16px;
		font-size: 10px;
		top: 0;
		right: 0;
	}
}
