/**
 * Homepage section backgrounds and card tweaks.
 */

/* Winners cover carousel */
.winners-hero {
	position: relative;
	background: var(--color-bg-primary);
}

.winners-hero__carousel {
	position: relative;
}

.winners-hero__stage {
	position: relative;
	height: clamp(520px, 82vh, 760px);
	overflow: hidden;
}

.winners-hero__track {
	position: absolute;
	inset: 0;
}

.winners-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.65s ease;
	pointer-events: none;
}

.winners-hero__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.winners-hero__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1);
}

.winners-hero__slide.is-active .winners-hero__photo {
	animation: winners-hero-zoom 9s ease forwards;
}

@keyframes winners-hero-zoom {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.05);
	}
}

.winners-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(112deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.42) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, transparent 42%);
}

.winners-hero__content {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	padding-bottom: clamp(32px, 5vw, 64px);
	pointer-events: none;
}

.winners-hero__copy {
	max-width: 620px;
	pointer-events: auto;
}

.winners-hero__slide-link {
	display: block;
	width: 100%;
	height: 100%;
}

/* Hero comps — image only, no copy/scrim/nav */
.hero-comps .winners-hero__scrim,
.hero-comps .winners-hero__content,
.hero-comps .winners-hero__nav {
	display: none !important;
}

.hero-comps .winners-hero__stage {
	width: 100%;
	overflow: hidden;
	background: var(--color-bg-primary);
}

.hero-comps .winners-hero__track {
	position: absolute;
	inset: 0;
}

.hero-comps .winners-hero__slide {
	position: absolute;
	inset: 0;
	height: 100%;
}

.hero-comps .winners-hero__slide-link {
	height: 100%;
}

.hero-comps .winners-hero__photo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
}

.hero-comps .winners-hero__slide.is-active .winners-hero__photo {
	animation: none;
	transform: none;
}

.winners-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-gold);
}

.winners-hero__eyebrow-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-gold);
	box-shadow: 0 0 12px rgba(var(--color-gold-rgb), 0.8);
	animation: winners-hero-pulse 2s ease infinite;
}

@keyframes winners-hero-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.55;
		transform: scale(0.88);
	}
}

.winners-hero__title {
	margin: 0 0 14px;
	font-family: var(--font-display);
	font-size: clamp(42px, 7vw, 72px);
	line-height: 0.95;
	letter-spacing: 0.03em;
	color: var(--color-text-primary);
	text-transform: uppercase;
}

.winners-hero__title span {
	display: block;
	color: var(--color-gold);
}

.winners-hero__lead {
	margin: 0 0 24px;
	max-width: 52ch;
	font-size: clamp(15px, 2vw, 18px);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}

.winners-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.winners-hero__btn-outline {
	border-color: rgba(255, 255, 255, 0.28);
	color: var(--color-text-primary);
}

.winners-hero__btn-outline:hover {
	border-color: rgba(var(--color-gold-rgb), 0.55);
	color: var(--color-gold);
}

.winners-hero__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(0, 0, 0, 0.48);
	backdrop-filter: blur(8px);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.winners-hero__nav:hover,
.winners-hero__nav:focus-visible {
	background: rgba(var(--color-gold-rgb), 0.22);
	border-color: rgba(var(--color-gold-rgb), 0.5);
}

.winners-hero__nav--prev {
	left: clamp(12px, 2vw, 24px);
}

.winners-hero__nav--next {
	right: clamp(12px, 2vw, 24px);
}

@media (min-width: 901px) {
	.winners-hero:not(.hero-comps) .winners-hero__photo {
		object-fit: contain;
	}

	/* Full-bleed desktop hero — 1920×1020 (~1.88:1); height tracks width so nothing crops */
	.hero-comps .winners-hero__stage {
		aspect-ratio: 1920 / 1020;
		width: 100%;
		height: auto;
		min-height: 400px;
	}

	.hero-comps .winners-hero__photo {
		object-fit: contain;
		object-position: center center;
	}
}

@media (max-width: 900px) {
	.winners-hero:not(.hero-comps) .winners-hero__stage {
		height: clamp(560px, 88vh, 720px);
		background: #000;
	}

	.hero-comps .winners-hero__stage {
		height: 88vh;
		background: #000;
	}

	.hero-comps .winners-hero__slide-link {
		display: flex;
		align-items: flex-start;
		justify-content: center;
	}

	.hero-comps .winners-hero__photo {
		object-fit: contain;
		object-position: top center;
	}

	.winners-hero:not(.hero-comps) .winners-hero__track {
		background: #000;
	}

	.winners-hero:not(.hero-comps) .winners-hero__photo {
		width: 102%;
		height: 102%;
		max-width: none;
		margin: -1% 0 0 -1%;
	}

	.winners-hero:not(.hero-comps) .winners-hero__slide.is-active .winners-hero__photo {
		animation: none;
		transform: scale(1.04);
	}

	.winners-hero:not(.hero-comps) .winners-hero__scrim {
		top: -3px;
		right: -3px;
		bottom: -3px;
		left: -3px;
		width: auto;
		height: auto;
		background:
			linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.92) 24%, rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.18) 100%),
			linear-gradient(to left, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 28%, transparent 52%);
	}

	.winners-hero:not(.hero-comps) .winners-hero__content {
		align-items: flex-end;
		justify-content: center;
		padding-bottom: 24px;
	}

	.winners-hero:not(.hero-comps) .winners-hero__copy {
		max-width: none;
		width: 100%;
		text-align: center;
	}

	.winners-hero:not(.hero-comps) .winners-hero__eyebrow {
		justify-content: center;
	}

	.winners-hero:not(.hero-comps) .winners-hero__title {
		margin-left: auto;
		margin-right: auto;
	}

	.winners-hero:not(.hero-comps) .winners-hero__lead,
	.winners-hero:not(.hero-comps) .winners-hero__actions {
		display: none;
	}

	.winners-hero:not(.hero-comps) .winners-hero__nav {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 600px) {
	.winners-hero:not(.hero-comps) .winners-hero__nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.winners-hero__slide.is-active .winners-hero__photo {
		animation: none;
	}

	.winners-hero__slide {
		transition-duration: 0.01ms;
	}

	.winners-hero__eyebrow-dot {
		animation: none;
	}
}

#featured,
#how,
.section--cta {
	background: var(--color-bg-primary);
}

.section--live-draw,
.section--winners {
	background: var(--color-bg-secondary);
}

.reviews-empty {
	margin: 0;
	padding: 48px 32px;
	text-align: center;
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.reviews-empty__icon {
	margin: 0 0 16px;
	font-size: 2rem;
	line-height: 1;
	color: var(--color-gold);
	letter-spacing: 0.2em;
}

.reviews-empty__title {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 32px);
	letter-spacing: 0.04em;
	color: var(--color-text-primary);
	text-transform: uppercase;
}

.reviews-empty__text {
	max-width: 42ch;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-text-secondary);
}

.section-cta {
	text-align: center;
	margin-top: 40px;
}

.comp-card__excerpt {
	font-size: 13px;
	color: var(--color-text-muted);
	font-weight: 300;
	line-height: 1.6;
	margin-bottom: 20px;
}

.comp-card__img--photo {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.hero__card-img--photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.comp-card__title a {
	color: inherit;
}

.comp-card__title a:hover {
	color: var(--color-gold);
}

.nav__mobile-cta {
	margin-top: 16px;
	background: rgba(var(--color-gold-rgb), 0.1);
	border: 1.5px solid var(--color-gold);
	color: var(--color-gold);
	text-align: center;
	border-radius: 12px;
	padding: 16px;
}

.cta-banner__outline {
	color: var(--color-bg-primary);
	border-color: rgba(var(--color-ink-rgb), 0.3);
}

@media (max-width: 900px) {
	.cta-banner__actions {
		width: 100%;
		max-width: 360px;
		margin-inline: auto;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.cta-banner__actions .btn {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.cta-banner__outline {
		border-color: rgba(var(--color-ink-rgb), 0.42);
		background: rgba(255, 255, 255, 0.14);
	}

	.cta-banner__outline:hover {
		background: rgba(255, 255, 255, 0.22);
		border-color: rgba(var(--color-ink-rgb), 0.55);
		color: var(--color-bg-primary);
	}
}

@media (max-width: 480px) {
	.cta-banner__actions {
		max-width: none;
	}

	.cta-banner__actions .btn--lg {
		padding: 15px 18px;
		font-size: 15px;
		border-radius: var(--radius-sm);
	}
}

.hostyler-raffles-winners-shortcode {
	margin-top: var(--space-md);
}

/* Winners showcase carousel (above How It Works) */
.winners-showcase {
	position: relative;
	margin-top: 8px;
}

.winners-showcase__viewport {
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.winners-showcase__track {
	display: flex;
	gap: 16px;
	transition: transform 0.45s ease;
	will-change: transform;
}

.winners-showcase__slide {
	flex: 0 0 calc((100% - 32px) / 3);
	min-width: 0;
}

.winners-showcase__card {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--color-bg-secondary);
	aspect-ratio: 4 / 5;
}

.winners-showcase__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.35s ease;
}

.winners-showcase__card:hover .winners-showcase__photo {
	transform: scale(1.03);
}

.winners-showcase__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(var(--color-ink-rgb), 0.82);
	color: var(--color-text-primary);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.winners-showcase__nav:hover {
	background: rgba(var(--color-ink-rgb), 0.95);
	border-color: rgba(var(--color-gold-rgb), 0.45);
	color: var(--color-gold);
}

.winners-showcase__nav--prev {
	left: -12px;
}

.winners-showcase__nav--next {
	right: -12px;
}

.winners-showcase__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.winners-showcase__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.22);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.winners-showcase__dot.is-active {
	background: var(--color-gold);
	transform: scale(1.15);
}

.winners-showcase__cta {
	margin: 28px 0 0;
	text-align: center;
}

@media (max-width: 900px) {
	.winners-showcase__slide {
		flex-basis: calc((100% - 16px) / 2);
	}

	.winners-showcase__nav--prev {
		left: 4px;
	}

	.winners-showcase__nav--next {
		right: 4px;
	}
}

@media (max-width: 600px) {
	.winners-showcase__slide {
		flex-basis: 88%;
	}

	.winners-showcase__track {
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.winners-showcase__track {
		transition: none;
	}
}
