/* =============================================================================
   LGM VSL Player — player.css
   Version: 1.0.0
   Matches LetsGrowMore dark theme (Midnight Blue preset)
   ============================================================================= */

/* -----------------------------------------------
   WRAPPER
----------------------------------------------- */
.lgm-vsl-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
}

/* -----------------------------------------------
   URGENCY BADGE
----------------------------------------------- */
.lgm-vsl-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(15, 22, 41, 0.95);
	border: 1px solid rgba(74, 108, 247, 0.5);
	border-radius: 100px;
	padding: 9px 22px;
	margin-bottom: 20px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #d0d8f0;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.lgm-vsl-badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ef4444;
	flex-shrink: 0;
	/* Live pulsing red dot */
	animation: lgmVslBadgePulse 1.8s ease-in-out infinite;
}

@keyframes lgmVslBadgePulse {
	0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
	50%       { opacity: 0.7; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

/* -----------------------------------------------
   PLAYER CONTAINER
----------------------------------------------- */
.lgm-vsl-player {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	/* Aspect ratio 16:9 */
	aspect-ratio: 16 / 9;
	background: #0a0f1e;
	/* Cinematic glow border */
	box-shadow:
		0 0 0 1px rgba(74, 108, 247, 0.25),
		0 0 40px rgba(74, 108, 247, 0.12),
		0 24px 64px rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

/* Player glows stronger on hover (before video plays) */
.lgm-vsl-player:not(.lgm-vsl-playing):hover {
	box-shadow:
		0 0 0 1px rgba(74, 108, 247, 0.5),
		0 0 60px rgba(74, 108, 247, 0.22),
		0 24px 64px rgba(0, 0, 0, 0.6);
	transition: box-shadow 0.4s ease;
}

/* -----------------------------------------------
   THUMBNAIL OVERLAY
----------------------------------------------- */
.lgm-vsl-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #0d1528;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	cursor: pointer;
	transition: opacity 0.5s ease;
}

/* Gradient overlay over thumbnail image */
.lgm-vsl-overlay-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(9, 14, 30, 0.45) 0%,
		rgba(9, 14, 30, 0.15) 30%,
		rgba(9, 14, 30, 0.15) 60%,
		rgba(9, 14, 30, 0.75) 100%
	);
	z-index: 1;
}

/* Overlay headline */
.lgm-vsl-overlay-headline {
	position: absolute;
	bottom: 60px;
	left: 0;
	right: 0;
	padding: 0 32px;
	text-align: center;
	font-size: clamp(1rem, 2.5vw, 1.35rem);
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
	z-index: 3;
	line-height: 1.3;
}

/* When no thumbnail, show a branded gradient bg */
.lgm-vsl-overlay:not([style*="background-image"]) {
	background: linear-gradient(
		135deg,
		#0a0f1e 0%,
		#0f1a38 40%,
		#0d1528 70%,
		#080d1a 100%
	);
}

/* -----------------------------------------------
   DURATION BADGE (bottom-left of thumbnail)
----------------------------------------------- */
.lgm-vsl-duration {
	position: absolute;
	bottom: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	gap: 5px;
	background: rgba(0, 0, 0, 0.75);
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
	z-index: 5;
	letter-spacing: 0.02em;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* -----------------------------------------------
   PLAY BUTTON — Central CTA
----------------------------------------------- */
.lgm-vsl-play-btn {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.lgm-vsl-overlay:hover .lgm-vsl-play-btn {
	transform: scale(1.08);
}

/* Outer & inner pulse rings — solid enough to see on dark bg */
.lgm-vsl-pulse-ring {
	position: absolute;
	border-radius: 50%;
	background: rgba(74, 108, 247, 0.25);
	animation: lgmVslPulse 2.4s ease-out infinite;
}

.lgm-vsl-pulse-ring--outer {
	width: 140px;
	height: 140px;
	animation-delay: 0s;
}

.lgm-vsl-pulse-ring--inner {
	width: 110px;
	height: 110px;
	background: rgba(74, 108, 247, 0.35);
	animation-delay: 0.6s;
}

@keyframes lgmVslPulse {
	0%   { transform: scale(0.85); opacity: 1; }
	60%  { transform: scale(1.15); opacity: 0.3; }
	100% { transform: scale(1.3);  opacity: 0;   }
}

/* The actual play circle button */
.lgm-vsl-play-circle {
	position: relative;
	z-index: 2;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: linear-gradient(135deg, #4a6cf7 0%, #6b8cff 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow:
		0 0 0 3px rgba(74, 108, 247, 0.4),
		0 8px 32px rgba(74, 108, 247, 0.6),
		0 2px 8px rgba(0, 0, 0, 0.5);
	transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lgm-vsl-overlay:hover .lgm-vsl-play-circle {
	background: linear-gradient(135deg, #5a7cf7 0%, #7b9cff 100%);
	box-shadow:
		0 0 0 4px rgba(74, 108, 247, 0.55),
		0 12px 48px rgba(74, 108, 247, 0.75),
		0 2px 8px rgba(0, 0, 0, 0.5);
	transform: scale(1.05);
}

.lgm-vsl-play-icon {
	width: 38px;
	height: 38px;
	color: #ffffff;
	/* Optical centering — play icon visually sits slightly right */
	transform: translateX(3px);
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* -----------------------------------------------
   CLICK HINT (below play button)
----------------------------------------------- */
.lgm-vsl-click-hint {
	position: absolute;
	bottom: 28px;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 5;
}

.lgm-vsl-click-hint span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.lgm-vsl-click-hint span::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 1px;
	background: rgba(255, 255, 255, 0.4);
}

.lgm-vsl-click-hint span::after {
	content: '';
	display: inline-block;
	width: 20px;
	height: 1px;
	background: rgba(255, 255, 255, 0.4);
}

/* -----------------------------------------------
   VIDEO CONTAINER (below overlay, initially hidden)
----------------------------------------------- */
.lgm-vsl-video-container {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #000;
}

.lgm-vsl-video-container video,
.lgm-vsl-video-container iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: none;
}

/* -----------------------------------------------
   OVERLAY FADE OUT (when playing)
----------------------------------------------- */
.lgm-vsl-player.lgm-vsl-playing .lgm-vsl-overlay {
	opacity: 0;
	pointer-events: none;
}

.lgm-vsl-player.lgm-vsl-playing {
	cursor: default;
}

/* -----------------------------------------------
   NO VIDEO PLACEHOLDER
----------------------------------------------- */
.lgm-vsl-no-video {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.lgm-vsl-no-video p {
	color: #6b7aa1;
	font-size: 0.9rem;
	font-style: italic;
}

/* -----------------------------------------------
   SOCIAL PROOF BAR (below player)
----------------------------------------------- */
.lgm-vsl-social-proof {
	margin-top: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #a8b2d1;
	letter-spacing: 0.02em;
}

.lgm-vsl-proof-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	flex-shrink: 0;
	animation: lgmVslProofPulse 2s ease-in-out infinite;
}

@keyframes lgmVslProofPulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.5; }
}

/* -----------------------------------------------
   RESPONSIVE — Tablet
----------------------------------------------- */
@media (max-width: 768px) {
	.lgm-vsl-player {
		border-radius: 12px;
	}

	.lgm-vsl-play-btn {
		width: 72px;
		height: 72px;
	}

	.lgm-vsl-play-circle {
		width: 72px;
		height: 72px;
	}

	.lgm-vsl-pulse-ring--outer {
		width: 116px;
		height: 116px;
	}

	.lgm-vsl-pulse-ring--inner {
		width: 92px;
		height: 92px;
	}

	.lgm-vsl-play-icon {
		width: 30px;
		height: 30px;
	}

	.lgm-vsl-overlay-headline {
		font-size: 1rem;
		bottom: 48px;
		padding: 0 16px;
	}

	.lgm-vsl-click-hint span {
		font-size: 0.75rem;
	}

	.lgm-vsl-badge {
		font-size: 0.72rem;
		padding: 7px 14px;
	}
}

/* -----------------------------------------------
   RESPONSIVE — Mobile
----------------------------------------------- */
@media (max-width: 480px) {
	.lgm-vsl-play-btn {
		width: 60px;
		height: 60px;
	}

	.lgm-vsl-play-circle {
		width: 60px;
		height: 60px;
	}

	.lgm-vsl-pulse-ring--outer {
		width: 96px;
		height: 96px;
	}

	.lgm-vsl-pulse-ring--inner {
		width: 76px;
		height: 76px;
	}

	.lgm-vsl-play-icon {
		width: 24px;
		height: 24px;
	}

	.lgm-vsl-overlay-headline {
		display: none; /* too cramped on very small screens */
	}

	.lgm-vsl-click-hint {
		bottom: 12px;
	}
}

/* -----------------------------------------------
   REDUCED MOTION — respect accessibility preference
----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.lgm-vsl-badge-dot,
	.lgm-vsl-pulse-ring,
	.lgm-vsl-proof-dot {
		animation: none;
	}

	.lgm-vsl-overlay:hover .lgm-vsl-play-btn {
		transform: none;
	}

	.lgm-vsl-player.lgm-vsl-playing .lgm-vsl-overlay {
		transition: none;
	}
}
