/**
 * Reference Video Showcase — styles.
 * Everything is scoped under .rvs-showcase so this can never leak into
 * or collide with other Elementor widgets or theme styles.
 */

.rvs-showcase {
	--rvs-active-width: 320px;
	--rvs-side-scale: 0.75;
	--rvs-card-gap: 20px;
	--rvs-ratio-portrait: 177.777%; /* 9:16 */
	--rvs-ratio-landscape: 56.25%; /* 16:9 */
	--rvs-bg: transparent;
	--rvs-glow-color: rgba(255, 170, 165, 0.55);
	--rvs-phone-bezel: #14100e;
	--rvs-floater-accent: #ff4d6d;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	padding: 64px 0 48px;
	background: var(--rvs-bg);
	isolation: isolate;
}

.rvs-showcase *,
.rvs-showcase *::before,
.rvs-showcase *::after {
	box-sizing: border-box;
}

/* Soft peach/pink radial glow behind the video area. */
.rvs-showcase .rvs-glow {
	position: absolute;
	top: 10%;
	left: 50%;
	width: 90vw;
	height: 70%;
	transform: translateX(-50%);
	background: radial-gradient( ellipse at center, var(--rvs-glow-color) 0%, rgba(255, 200, 190, 0.25) 35%, rgba(255, 255, 255, 0) 70% );
	pointer-events: none;
	z-index: 0;
}

.rvs-showcase .rvs-header {
	position: relative;
	z-index: 2;
	max-width: 860px;
	margin: 0 auto 40px;
	padding: 0 24px;
	text-align: center;
}

.rvs-showcase .rvs-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	margin-bottom: 20px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.rvs-showcase .rvs-heading {
	margin: 0 0 16px;
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.1;
	font-weight: 800;
	color: #14100e;
}

.rvs-showcase .rvs-description {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.5;
	color: #55504c;
}

.rvs-showcase .rvs-controls-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.rvs-showcase .rvs-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 30px;
	border-radius: 999px;
	background: #2fe3c2;
	color: #0c1f1b;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rvs-showcase .rvs-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(47, 227, 194, 0.35);
	color: #0c1f1b;
}

.rvs-showcase .rvs-toggle {
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
}

.rvs-showcase .rvs-toggle__option {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 10px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #55504c;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rvs-showcase .rvs-toggle__option.is-active {
	background: #14100e;
	color: #fff;
}

/* -------------------------------------------------------------------- */
/* Carousel                                                               */
/* -------------------------------------------------------------------- */

.rvs-showcase .rvs-carousel {
	position: relative;
	z-index: 2;
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	overflow: hidden;
}

.rvs-showcase .rvs-track {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--rvs-card-gap);
	width: max-content;
	will-change: transform;
	/* JS drives the actual translateX; this transition only smooths
	   programmatic moves (click/arrow/resize), not active dragging. */
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	touch-action: pan-y;
	cursor: grab;
	padding: 24px 0;
}

.rvs-showcase .rvs-track.is-dragging {
	transition: none;
	cursor: grabbing;
}

.rvs-showcase .rvs-card {
	flex: 0 0 auto;
	width: var(--rvs-active-width);
	transform: scale(var(--rvs-side-scale));
	opacity: 0.65;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
	cursor: pointer;
	user-select: none;
	-webkit-user-drag: none;
}

.rvs-showcase .rvs-card.is-active {
	transform: scale(1);
	opacity: 1;
	cursor: default;
	z-index: 1;
}

.rvs-showcase .rvs-card__inner {
	position: relative;
	width: 100%;
	border-radius: 24px;
	overflow: hidden;
	background: #1c1c1c;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Aspect ratio boxes so cards never jump before video metadata loads. */
.rvs-showcase[data-orientation="portrait"] .rvs-card__inner {
	aspect-ratio: 9 / 16;
}

.rvs-showcase[data-orientation="landscape"] .rvs-card__inner {
	aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 1 / 1) {
	.rvs-showcase[data-orientation="portrait"] .rvs-card__inner {
		padding-top: var(--rvs-ratio-portrait);
	}
	.rvs-showcase[data-orientation="landscape"] .rvs-card__inner {
		padding-top: var(--rvs-ratio-landscape);
	}
	.rvs-showcase .rvs-card__video,
	.rvs-showcase .rvs-card__poster,
	.rvs-showcase .rvs-card__placeholder {
		position: absolute;
		inset: 0;
	}
}

/* Active card shadow is fully controlled by the "Active Card Shadow" style
   control (Style tab → Cards) — no hardcoded shadow here, so it's off by
   default until you set one in the panel. */

.rvs-showcase .rvs-card__video,
.rvs-showcase .rvs-card__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rvs-showcase .rvs-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2b2b2b, #171717);
}

.rvs-showcase .rvs-card__badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #14100e;
	font-size: 12px;
	font-weight: 700;
}

.rvs-showcase .rvs-card__badge-icon {
	font-size: 10px;
}

.rvs-showcase .rvs-card__label {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}

.rvs-showcase .rvs-card__playpause {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.9);
	color: #14100e;
	cursor: pointer;
	font-size: 12px;
}

.rvs-showcase .rvs-card__playpause .rvs-icon-pause {
	display: none;
}

.rvs-showcase .rvs-card.is-playing .rvs-icon-play {
	display: none;
}

.rvs-showcase .rvs-card.is-playing .rvs-icon-pause {
	display: inline;
}

/* -------------------------------------------------------------------- */
/* Phone frame (active card)                                              */
/* -------------------------------------------------------------------- */

/* Only applied when the "Show Phone Frame On Active Card" control is on
   (adds the .rvs-phone-frame class to the wrapper). Wraps the centered
   video in a device-style bezel so it reads as a screen-recorded phone
   clip, matching the reference hero. */
.rvs-showcase.rvs-phone-frame .rvs-card.is-active .rvs-card__inner {
	background: var(--rvs-phone-bezel);
	padding: 14px;
	border-radius: 44px;
}

.rvs-showcase.rvs-phone-frame .rvs-card.is-active .rvs-card__video,
.rvs-showcase.rvs-phone-frame .rvs-card.is-active .rvs-card__poster {
	border-radius: 32px;
}

.rvs-showcase .rvs-phone-notch {
	position: absolute;
	top: 26px;
	left: 50%;
	transform: translateX(-50%);
	width: 70px;
	height: 8px;
	border-radius: 10px;
	background: var(--rvs-phone-bezel);
	z-index: 3;
	pointer-events: none;
}

.rvs-showcase .rvs-card.is-active {
	animation: rvsPhoneFloat 5s ease-in-out infinite;
}

@keyframes rvsPhoneFloat {
	0%, 100% { margin-top: 0; }
	50% { margin-top: -10px; }
}

.rvs-showcase .rvs-active-badge {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	backdrop-filter: blur(6px);
	z-index: 2;
}

.rvs-showcase .rvs-active-badge svg {
	width: 14px;
	height: 14px;
}

.rvs-showcase .rvs-card__play-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
	animation: rvsPulse 2.2s ease-in-out infinite;
	z-index: 2;
	pointer-events: none;
}

.rvs-showcase .rvs-card__play-ring svg {
	width: 20px;
	height: 20px;
	margin-left: 3px;
}

.rvs-showcase .rvs-card.is-playing .rvs-card__play-ring {
	display: none;
}

@keyframes rvsPulse {
	0%, 100% {
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 255, 255, 0.5);
	}
	50% {
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 14px rgba(255, 255, 255, 0);
	}
}

/* -------------------------------------------------------------------- */
/* Floating badges                                                        */
/* -------------------------------------------------------------------- */

/* Live on the stage itself (sibling of .rvs-carousel), not inside the
   track, so they stay fixed in place while the track drags/scrolls. */
.rvs-showcase .rvs-floaters {
	position: absolute;
	inset: 140px 0 0;
	max-width: 900px;
	margin: 0 auto;
	z-index: 4;
	pointer-events: none;
}

.rvs-showcase .rvs-floater {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 13px;
	color: #14100e;
	transform: rotate(var(--rvs-floater-rot, 0deg));
	animation: rvsBob 3.6s ease-in-out infinite;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

@keyframes rvsBob {
	0%, 100% { transform: translateY(0) rotate(var(--rvs-floater-rot, 0deg)); }
	50% { transform: translateY(-14px) rotate(var(--rvs-floater-rot, 0deg)); }
}

/* -- shape variants -- */
.rvs-showcase .rvs-floater--heart,
.rvs-showcase .rvs-floater--play {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #fff;
	justify-content: center;
}

.rvs-showcase .rvs-floater--heart svg {
	width: 20px;
	height: 20px;
	color: var(--rvs-floater-accent);
}

.rvs-showcase .rvs-floater--play svg {
	width: 16px;
	height: 16px;
	margin-left: 2px;
}

.rvs-showcase .rvs-floater--thumb {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #4a8cff;
	justify-content: center;
}

.rvs-showcase .rvs-floater--thumb svg {
	width: 22px;
	height: 22px;
}

.rvs-showcase .rvs-floater--tag {
	background: #fff;
	border-radius: 16px;
	padding: 10px 16px;
}

.rvs-showcase .rvs-floater--tag svg {
	width: 14px;
	height: 14px;
}

.rvs-showcase .rvs-floater--love {
	background: var(--rvs-floater-accent);
	color: #fff;
	border-radius: 20px 20px 20px 4px;
	padding: 10px 18px;
}

/* -- position presets -- */
.rvs-showcase .rvs-floater--top-left { top: 4%; left: 22%; }
.rvs-showcase .rvs-floater--top-right { top: 0%; right: 20%; }
.rvs-showcase .rvs-floater--mid-left { top: 24%; left: 12%; }
.rvs-showcase .rvs-floater--mid-right { top: 28%; right: 14%; }
.rvs-showcase .rvs-floater--lower-left { top: 46%; left: 6%; }
.rvs-showcase .rvs-floater--lower-right { top: 46%; right: 8%; }

/* Arrows */
.rvs-showcase .rvs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 0;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
}

.rvs-showcase .rvs-arrow--prev {
	left: 24px;
}

.rvs-showcase .rvs-arrow--next {
	right: 24px;
}

.rvs-showcase .rvs-empty-notice {
	padding: 40px;
	text-align: center;
	color: #a00;
	background: #fff5f5;
	border: 1px dashed #f3b4b4;
	border-radius: 12px;
}

/* -------------------------------------------------------------------- */
/* Responsive                                                             */
/* -------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.rvs-showcase {
		--rvs-active-width: 260px;
	}
}

@media (max-width: 900px) {
	.rvs-showcase .rvs-floaters {
		display: none;
	}
}

@media (max-width: 767px) {
	.rvs-showcase {
		--rvs-active-width: 200px;
		--rvs-card-gap: 12px;
		padding: 40px 0 32px;
	}

	.rvs-showcase .rvs-arrow {
		display: none;
	}

	.rvs-showcase .rvs-heading {
		font-size: clamp(26px, 8vw, 34px);
	}

	.rvs-showcase.rvs-phone-frame .rvs-card.is-active .rvs-card__inner {
		padding: 8px;
		border-radius: 28px;
	}

	.rvs-showcase .rvs-phone-notch {
		top: 14px;
		width: 46px;
		height: 6px;
	}
}
