/* Viloer Icon List 2 — v1.0.0
   CSS-only marquee, GPU-accelerated, no JS dependency. */

/* === Wrapper === */
.vil2-wrapper {
	overflow: hidden;
	width: 100%;
}

/* === Heading === */
.vil2-heading-wrap {
	display: flex;
}

.vil2-heading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-weight: 700;
}

.vil2-heading-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.vil2-heading-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* === Track === */
.vil2-track {
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Fade edges (opt-in) */
.vil2-track.vil2-fade::before,
.vil2-track.vil2-fade::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 40px;
	z-index: 2;
	pointer-events: none;
}
.vil2-track.vil2-fade::before {
	left: 0;
	background: linear-gradient(to right, var(--vil2-fade-color, #fff), transparent);
}
.vil2-track.vil2-fade::after {
	right: 0;
	background: linear-gradient(to left, var(--vil2-fade-color, #fff), transparent);
}

/* === Scroll belt === */
.vil2-scroll {
	display: flex;
	align-items: center;
	width: max-content;
	will-change: transform;
}

/* Keyframe: translate only half because content is duplicated */
@keyframes vil2k {
	0%   { transform: translate3d(0, 0, 0); }
	100% { transform: translate3d(var(--vil2-shift, -50%), 0, 0); }
}

/* === Items === */
.vil2-item {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
	gap: 10px;
}

.vil2-item-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 1;
}

.vil2-item-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.vil2-item-text {
	white-space: nowrap;
}

/* === Separator === */
.vil2-sep {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding-inline: 8px;
	user-select: none;
}

/* === Accessibility: respect reduced motion === */
@media (prefers-reduced-motion: reduce) {
	.vil2-scroll {
		animation-play-state: paused !important;
	}
}
