/**
 * OG Signal Media — default front-end styles
 *
 * Theme-agnostic defaults for [og_featured_in] and other shortcodes.
 * Themes may override using their own brand variables (--wine, --accent, etc.)
 * or by retargeting these classes.
 *
 * @since 1.4.0
 */

/* ============================================================================
   [og_featured_in] — marquee outlets strip
   ============================================================================ */

.featured-in__strip {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2.5rem 3rem;
}

/* Marquee mode: tracks scroll left, pause on hover */
.featured-in__strip.is-marquee {
	flex-wrap: nowrap;
	justify-content: flex-start;
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
	        mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.featured-in__strip.is-marquee:hover .featured-in__track {
	animation-play-state: paused;
}

.featured-in__track {
	display: flex;
	flex-shrink: 0;
	gap: 4.5rem;
	padding-right: 4.5rem;
	align-items: center;
	white-space: nowrap;
	animation: og-featured-in-scroll 22s linear infinite;
}

/* 3 duplicate tracks → animate left by exactly 1 track's width = -33.333% of total strip.
   When the loop restarts at translateX(0), tracks 2 and 3 visually appear in the same spots
   tracks 1 and 2 just left, so the seam is invisible. */
@keyframes og-featured-in-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-33.3333%); }
}

@media (prefers-reduced-motion: reduce) {
	.featured-in__track { animation: none; }
	.featured-in__strip.is-marquee {
		flex-wrap: wrap;
		justify-content: center;
		-webkit-mask-image: none;
		        mask-image: none;
	}
	.featured-in__strip.is-marquee .featured-in__track + .featured-in__track { display: none; }
}

/* ---- Outlet items (typographic + logo) ---- */

.featured-in__outlet {
	font-family: 'Playfair Display', 'Georgia', serif;
	font-style: italic;
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	padding: 0.25rem 0;
	transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.featured-in__outlet:hover {
	transform: translateY(-1px);
}

/* style="grey" — uniform muted color, brand accent on hover */
.featured-in__strip.is-grey .featured-in__outlet {
	color: var(--text-muted, #7a7570);
	opacity: 0.65;
}
.featured-in__strip.is-grey .featured-in__outlet:hover {
	opacity: 1;
	color: var(--wine, #7d0100);
}

/* When the outlet has an uploaded logo image, use the image instead of the typographic name */
.featured-in__outlet.has-logo {
	display: inline-flex;
	align-items: center;
	padding: 0;
}

.featured-in__outlet-logo {
	height: 80px;
	max-width: 280px;
	width: auto;
	object-fit: contain;
	display: block;
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 720px) {
	.featured-in__outlet-logo {
		height: 56px;
		max-width: 200px;
	}
}

.featured-in__strip.is-color .featured-in__outlet-logo {
	filter: none;
	opacity: 0.95;
}

.featured-in__outlet:hover .featured-in__outlet-logo {
	filter: none;
	opacity: 1;
}

/* style="color" — cycle through brand accent classes (themes override these vars) */
.featured-in__strip.is-color .featured-in__outlet { opacity: 0.85; }
.featured-in__strip.is-color .featured-in__outlet.is-wine  { color: var(--wine, #7d0100); }
.featured-in__strip.is-color .featured-in__outlet.is-amber { color: var(--accent, #dbbe67); }
.featured-in__strip.is-color .featured-in__outlet.is-teal  { color: var(--teal, #2d6a72); }
.featured-in__strip.is-color .featured-in__outlet.is-slate { color: var(--secondary, #4a5568); }

.featured-in__fallback {
	color: var(--text-muted, #7a7570);
	font-style: italic;
	text-align: center;
}
