/* HHM Homepage Featured/New carousel (Firm-First Phase 2, Section 2,
   5 Sept 2026 — proposal doc §11/§12/§12a). Two strips, rolling opposite
   directions, pure CSS animation (transform: translateX, no JS timeline) —
   hhm-spotlight-carousel.js only pauses/resumes on hover and handles
   reduced-motion; the actual roll never depends on JS staying responsive.

   Functional, real, backend-driven pass — NOT a hand-tuned GSAP
   choreography matching the rest of the homepage's cinematic motion work.
   That's a further design pass, flagged as a follow-up rather than
   overclaimed here. */

.hhm-spotlight {
	max-width: 1100px;
	margin: 0 auto;
	padding: 48px 20px 8px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.hhm-spotlight__heading {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
	margin: 0 0 20px;
}

.hhm-spotlight__heading--sm {
	font-size: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b6b6b;
}

/* Track viewport — overflow hidden, the inner track is 2x width (slide set
   duplicated once in PHP) and animates by exactly -50% so it loops with no
   visible seam. */
.hhm-spotlight__track {
	display: flex;
	gap: 20px;
	width: max-content;
	will-change: transform;
}

.hhm-spotlight__featured,
.hhm-spotlight__ticker-wrap {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hhm-spotlight__track--featured {
	animation: hhm-spotlight-scroll-left 38s linear infinite;
}

.hhm-spotlight__track--ticker {
	animation: hhm-spotlight-scroll-right 32s linear infinite;
}

.hhm-spotlight__featured:hover .hhm-spotlight__track,
.hhm-spotlight__ticker-wrap:hover .hhm-spotlight__track {
	animation-play-state: paused;
}

@keyframes hhm-spotlight-scroll-left {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@keyframes hhm-spotlight-scroll-right {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.hhm-spotlight__track--featured,
	.hhm-spotlight__track--ticker {
		animation: none;
	}
}

/* Featured card — the glowing/pulsing border is the emotional "ego" payoff
   per the proposal doc (particularly valuable for a PEA, the lowest-status
   role in the hierarchy). */
.hhm-spotlight__card--featured {
	position: relative;
	flex: 0 0 180px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 18px 14px 16px;
	border-radius: 14px;
	background: #ffffff;
	text-decoration: none;
	color: #1a1a1a;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.hhm-spotlight__glow {
	position: absolute;
	inset: -2px;
	border-radius: 16px;
	padding: 2px;
	background: linear-gradient(120deg, #B8860B, #f3d27a, #B8860B);
	background-size: 200% 200%;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: hhm-spotlight-glow-pulse 3.2s ease-in-out infinite;
	pointer-events: none;
}

@keyframes hhm-spotlight-glow-pulse {
	0%, 100% { opacity: 0.55; background-position: 0% 50%; }
	50%      { opacity: 1;    background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
	.hhm-spotlight__glow { animation: none; opacity: 0.85; }
}

.hhm-spotlight__photo {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	background: #f0f0f0;
}

.hhm-spotlight__photo--placeholder {
	display: block;
	background: linear-gradient(135deg, #e8e8e8, #f4f4f4);
}

.hhm-spotlight__name {
	font-weight: 700;
	font-size: 14px;
	text-align: center;
}

.hhm-spotlight__firm {
	font-size: 12px;
	color: #6b6b6b;
	text-align: center;
}

/* Profile content enrichment (batch brief, item 2, 6 Sept 2026) — additive
   only, appended after the existing photo/name/firm block above, which is
   untouched. Card grows taller (not wider) to fit; a slide with no
   approved content just never renders this block, so plain slides look
   exactly as they did before. */
.hhm-spotlight__extra {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin-top: 2px;
}

.hhm-spotlight__stat {
	font-size: 11px;
	color: #8a8a8a;
	text-align: center;
	line-height: 1.3;
}

.hhm-spotlight__offer {
	font-size: 11px;
	font-weight: 600;
	color: #B8860B;
	text-align: center;
	line-height: 1.3;
	margin-top: 2px;
}

/* New & Levelled Up pills — two distinct outlines so the milestone type
   reads at a glance, per the proposal doc. */
.hhm-spotlight__pill {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 16px;
	border-radius: 10px;
	background: #ffffff;
	text-decoration: none;
	color: #1a1a1a;
	white-space: nowrap;
	border: 2px solid transparent;
}

.hhm-spotlight__pill--new {
	border-color: #2f6f4e;
}

.hhm-spotlight__pill--levelled_up {
	border-color: #B8860B;
}

.hhm-spotlight__pill-tag {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hhm-spotlight__pill--new .hhm-spotlight__pill-tag { color: #2f6f4e; }
.hhm-spotlight__pill--levelled_up .hhm-spotlight__pill-tag { color: #B8860B; }

.hhm-spotlight__pill-name {
	font-weight: 600;
	font-size: 13px;
}

.hhm-spotlight__pill-firm {
	font-size: 11px;
	color: #6b6b6b;
}

/* Pause/play control — injected by hhm-spotlight-carousel.js, required for
   WCAG 2.2.2 (a way to stop auto-moving content). */
.hhm-spotlight__pause {
	position: absolute;
	top: -34px;
	right: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #e2e6ea;
	background: #ffffff;
	color: #1a1a1a;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 600px) {
	.hhm-spotlight { padding: 32px 12px 4px; gap: 28px; }
	.hhm-spotlight__card--featured { flex-basis: 140px; }
	.hhm-spotlight__photo { width: 64px; height: 64px; }
}
