/* ==========================================================================
   Gaming Providers logo strip (template-parts/gaming-providers.php)
   Shown above the footer; managed in Theme Settings → Gaming Providers.
   ========================================================================== */

.reelzappy-providers {
	--rzp-gap: 12px;
	--rzp-card-w: 128px;
	--rzp-card-h: 48px;

	width: 100%;
	margin-block: var(--rzp-mt-d, 0) var(--rzp-mb-d, 0);
}

.reelzappy-providers__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.reelzappy-providers__heading {
	margin: 0 0 16px;
	font-family: var(--font-family-heading, 'Archivo Black', sans-serif);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	color: #FFFFFF;
}

.reelzappy-providers__viewport {
	overflow: hidden;
	/* Soft fade at both edges, like the logos slide in and out. */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.reelzappy-providers__track {
	display: flex;
	width: max-content;
}

.reelzappy-providers__list {
	display: flex;
	gap: var(--rzp-gap);
	margin: 0;
	padding: 0 var(--rzp-gap) 0 0; /* trailing gap so copies join evenly */
	list-style: none;
}

.reelzappy-providers__item {
	flex: none;
}

.reelzappy-providers__card {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--rzp-card-w);
	height: var(--rzp-card-h);
	padding: 8px 14px;
	border-radius: 6px;
	background: rgba(248, 245, 3, 0.12);
	transition: background-color 0.2s ease;
}

a.reelzappy-providers__card:hover,
a.reelzappy-providers__card:focus-visible {
	background: rgba(248, 245, 3, 0.24);
}

.reelzappy-providers__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Auto scroll ------------------------------------------------------------ */

.reelzappy-providers--marquee .reelzappy-providers__track {
	animation: reelzappy-providers-scroll var(--rzp-duration, 40s) linear infinite;
}

.reelzappy-providers--marquee .reelzappy-providers__viewport:hover .reelzappy-providers__track,
.reelzappy-providers--marquee .reelzappy-providers__viewport:focus-within .reelzappy-providers__track {
	animation-play-state: paused;
}

@keyframes reelzappy-providers-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-100% / var(--rzp-copies, 2))); }
}

/* Manual scroll (auto scroll off, or reduced motion) --------------------- */

.reelzappy-providers--static .reelzappy-providers__viewport {
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.reelzappy-providers--static .reelzappy-providers__viewport::-webkit-scrollbar {
	display: none;
}

.reelzappy-providers--static .reelzappy-providers__track {
	margin-inline: auto; /* centred when everything fits */
}

.reelzappy-providers--static .reelzappy-providers__item {
	scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
	.reelzappy-providers--marquee .reelzappy-providers__track {
		animation: none;
		margin-inline: auto;
	}

	.reelzappy-providers--marquee .reelzappy-providers__viewport {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.reelzappy-providers--marquee .reelzappy-providers__list[aria-hidden="true"] {
		display: none;
	}
}

@media (max-width: 768px) {
	.reelzappy-providers {
		--rzp-gap: 8px;
		--rzp-card-w: 104px;
		--rzp-card-h: 40px;

		margin-block: var(--rzp-mt-m, 0) var(--rzp-mb-m, 0);
	}

	.reelzappy-providers__heading {
		font-size: 20px;
	}
}
