/* 
 * Badge Marquee Styles
 * @package kloecup-bm
 */

:root {
	--speed: 30s;
}

.lkrea-bm-marquee-container {
	width: 100%;
	overflow: hidden;
	padding: 20px 0;
	position: relative;
}

.lkrea-bm-marquee {
	display: flex;
	width: max-content;
	animation: lkrea-marquee var(--speed) linear infinite;
}

.lkrea-bm-track {
	display: flex;
	flex-shrink: 0;
	gap: 60px; /* Default - controlled via Elementor */
	padding-right: 60px; /* Match gap to ensure smoothness */
}

/* Pause on Hover */
.lkrea-bm-pause-on-hover .lkrea-bm-marquee:hover {
	animation-play-state: paused;
}

/* Badge Item Structure */
.lkrea-bm-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	flex-shrink: 0;
}

.lkrea-bm-icon-box {
	width: 100px; /* Default - controlled via Elementor */
	height: 100px;
	border-radius: 50%;
	background-color: #232550;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.lkrea-bm-icon-box i,
.lkrea-bm-icon-box svg {
	font-size: 40px;
	width: 1em;
	height: 1em;
	color: #ffffff;
	fill: #ffffff;
	display: block;
}

.lkrea-bm-text {
	font-size: 14px;
	font-weight: 700;
	color: #232550;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Animation Keyframes */
@keyframes lkrea-marquee {
	0% {
		transform: translateX(0);
	}
	/* We animate to -50% because we duplicated the track in PHP/JS */
	100% {
		transform: translateX(-50%);
	}
}

/* Override direction via selectors in widget */
/* Note: standard behavior is LTR or RTL via transform */
[dir="rtl"] .lkrea-bm-marquee {
	animation-direction: reverse;
}
