/**
 * [hub_ring_brand_logos] -- a right-to-left scrolling logo strip
 * (2026-09-04, customer: "fontos, hogy itt jobbról balra úsznak a
 * logók, tehát ez végig animált"). Standard seamless-marquee technique:
 * templates/brand-logos.php renders the picked logos twice in a row,
 * and the track animates exactly one pass's width (translateX -50%)
 * before snapping back to the start, where the second (identical)
 * pass is already sitting -- no visible jump.
 */

.hrc-logo-marquee {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient( to right, transparent, black 6%, black 94%, transparent );
	mask-image: linear-gradient( to right, transparent, black 6%, black 94%, transparent );
}

.hrc-logo-marquee-track {
	display: flex;
	align-items: center;
	width: max-content;
	gap: 56px;
	animation: hrc-logo-marquee-scroll var( --hrc-logo-marquee-duration, 40s ) linear infinite;
}

/* Pausing on hover is a small courtesy so a customer can actually read
   a logo they're curious about, not a request -- easy to drop if it's
   not wanted. */
.hrc-logo-marquee:hover .hrc-logo-marquee-track {
	animation-play-state: paused;
}

/* Column wrapper so the hover-only name label (below) can sit under
   the logo without disturbing the track's own horizontal layout --
   this, not the <img> itself, is the track's actual flex child now. */
.hrc-logo-marquee-cell {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.hrc-logo-marquee-item {
	height: 34px;
	width: auto;
	object-fit: contain;
	/* Grayscale + reduced opacity, brightening to full color on hover --
	   matches the reference screenshot's own muted "logoipsum" look,
	   which reads calmer as a uniform trust-badge row than 24 mixed
	   full-color brand marks would. Purely an aesthetic default; the
	   customer didn't ask for it explicitly -- delete this rule (and
	   the :hover one below) for full-color logos throughout instead. */
	filter: grayscale( 1 ) opacity( 0.55 );
	transition: filter 0.2s ease;
}

.hrc-logo-marquee-cell:hover .hrc-logo-marquee-item {
	filter: none;
}

/* Hover-only brand name (2026-09-04, customer: "hoverre jelenjen meg a
   logó alatt a márka neve is, weight 600-zal, 18px betűmérettel") --
   the label's own row height is reserved UP FRONT (not display:none),
   so revealing it on hover never shifts the cell's own layout; only
   its opacity/visibility toggle. */
.hrc-logo-marquee-name {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: var( --hrc-text, #201f1d );
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}

.hrc-logo-marquee-cell:hover .hrc-logo-marquee-name {
	opacity: 1;
	visibility: visible;
}

@keyframes hrc-logo-marquee-scroll {
	from {
		transform: translateX( 0 );
	}
	to {
		/* Negative = the track's content visually moves toward the left
		   as new logos enter from the right -- "jobbról balra". */
		transform: translateX( -50% );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.hrc-logo-marquee-track {
		animation: none;
	}

	.hrc-logo-marquee {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
}
