/**
 * Pretpot Gated Teaser Video Widget Styles
 * @package Pretpot_Elementor_Kit
 */

/* ==================== WRAPPER & CONTAINER ==================== */
.pretpot-gated-video-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
}

/* Aspect Ratios */
.pretpot-gated-video-wrapper.ratio-16-9 {
	padding-bottom: 56.25%; /* 16:9 */
}

.pretpot-gated-video-wrapper.ratio-4-3 {
	padding-bottom: 75%; /* 4:3 */
}

.pretpot-gated-video-wrapper.ratio-21-9 {
	padding-bottom: 42.857%; /* 21:9 */
}

.pretpot-gated-video-wrapper.ratio-1-1 {
	padding-bottom: 100%; /* 1:1 */
}

.pretpot-gated-video-wrapper.ratio-9-16 {
	padding-bottom: 177.778%; /* 9:16 */
}

.pretpot-video-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ==================== VIDEO PLAYERS ==================== */
.pretpot-video-iframe,
.pretpot-video-player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pretpot-video-player {
	display: block;
}

/* ==================== OVERLAY ==================== */
.pretpot-video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pretpot-video-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Hard Gate - Solid overlay */
.pretpot-video-overlay.hard-gate {
	background-color: rgba(0, 0, 0, 0.85);
}

/* Soft Gate - Blur effect */
.pretpot-video-overlay.soft-gate {
	background-color: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.pretpot-video-overlay-content {
	text-align: center;
	max-width: 90%;
	padding: 30px;
	animation: pretpotFadeInUp 0.6s ease;
}

@keyframes pretpotFadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==================== OVERLAY ICON ==================== */
.pretpot-overlay-icon {
	margin-bottom: 20px;
	line-height: 1;
}

.pretpot-overlay-icon i,
.pretpot-overlay-icon svg {
	display: inline-block;
	font-size: 48px;
	color: #fff;
	transition: transform 0.3s ease;
}

.pretpot-overlay-icon:hover i,
.pretpot-overlay-icon:hover svg {
	transform: scale(1.1);
}

/* ==================== OVERLAY TEXT ==================== */
.pretpot-overlay-title {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 15px;
	line-height: 1.3;
}

.pretpot-overlay-description {
	font-size: 16px;
	color: #ccc;
	margin: 0 0 25px;
	line-height: 1.6;
}

/* ==================== CTA BUTTON ==================== */
.pretpot-cta-button {
	display: inline-block;
	padding: 15px 35px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background-color: #0073e6;
	border: none;
	border-radius: 5px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 115, 230, 0.3);
}

.pretpot-cta-button:hover {
	background-color: #005bb5;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 115, 230, 0.4);
	color: #fff;
	text-decoration: none;
}

.pretpot-cta-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(0, 115, 230, 0.3);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
	.pretpot-video-overlay-content {
		padding: 20px;
	}

	.pretpot-overlay-title {
		font-size: 22px;
		margin-bottom: 12px;
	}

	.pretpot-overlay-description {
		font-size: 14px;
		margin-bottom: 20px;
	}

	.pretpot-overlay-icon i,
	.pretpot-overlay-icon svg {
		font-size: 36px;
	}

	.pretpot-cta-button {
		padding: 12px 28px;
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.pretpot-video-overlay-content {
		padding: 15px;
	}

	.pretpot-overlay-title {
		font-size: 20px;
		margin-bottom: 10px;
	}

	.pretpot-overlay-description {
		font-size: 13px;
		margin-bottom: 18px;
	}

	.pretpot-overlay-icon i,
	.pretpot-overlay-icon svg {
		font-size: 32px;
	}

	.pretpot-cta-button {
		padding: 10px 24px;
		font-size: 14px;
	}
}

/* ==================== EDITOR MODE ==================== */
.elementor-editor-active .pretpot-video-overlay {
	pointer-events: none;
}

.elementor-editor-active .pretpot-cta-button {
	pointer-events: auto;
}

/* ==================== LOADING STATE ==================== */
.pretpot-gated-video-wrapper.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pretpotSpin 0.8s linear infinite;
	z-index: 5;
}

@keyframes pretpotSpin {
	to {
		transform: rotate(360deg);
	}
}

/* ==================== ACCESSIBILITY ==================== */
.pretpot-cta-button:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.pretpot-video-overlay:focus-within {
	outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.pretpot-video-overlay,
	.pretpot-cta-button,
	.pretpot-overlay-icon i,
	.pretpot-overlay-icon svg {
		transition: none;
		animation: none;
	}
	
	.pretpot-video-overlay-content {
		animation: none;
	}
}