/**
 * See It In Action Block (Video Testimonials)
 * 
 * Horizontal slider showcasing video reviews with linked products
 *
 * @package Kloira
 * @since 1.0.0
 */

/* ==========================================================================
   Section Container
   ========================================================================== */

.see-it-in-action {
	padding: 80px 0;
	background: #FFFFFF;
}

.see-it-in-action__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   Section Title
   ========================================================================== */

.see-it-in-action__title {
	width: 100%;
	margin: 0;
	font-family: 'DM Serif Display', serif;
	font-style: normal;
	font-weight: 400;
	font-size: 44px;
	line-height: 60px;
	text-align: center;
	color: #111111;
}

/* ==========================================================================
   Slider Wrapper
   ========================================================================== */

.see-it-in-action__slider-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

.see-it-in-action__slider-container {
	width: 100%;
	overflow: hidden;
}

.see-it-in-action__slider-track {
	display: flex;
	flex-direction: row;
	gap: 24px;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   Navigation Arrows
   ========================================================================== */

.see-it-in-action__nav {
	position: absolute;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 1.5px solid #888888;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #888888;
}

.see-it-in-action__nav:hover {
	border-color: #111111;
	color: #111111;
}

.see-it-in-action__nav:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.see-it-in-action__nav svg {
	width: 14px;
	height: 12px;
}

/* Left arrow positioning - 50% inside container, 50% outside, centered on video area (400px / 2 = 200px) */
.see-it-in-action__nav--prev {
	left: -25px; /* 50% of 50px button width */
	top: 200px;
	transform: translateY(-50%);
}

/* Right arrow positioning - 50% inside container, 50% outside, centered on video area */
.see-it-in-action__nav--next {
	right: -25px; /* 50% of 50px button width */
	top: 200px;
	transform: translateY(-50%);
}

/* ==========================================================================
   Video Card
   ========================================================================== */

.see-it-in-action__card {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 300px;
}

/* ==========================================================================
   Video Wrapper
   ========================================================================== */

.see-it-in-action__video-wrapper {
	position: relative;
	width: 300px;
	height: 400px;
	background: #D9D9D9;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
}

.see-it-in-action__thumbnail {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
	z-index: 1;
}

/* Preview Video (loops first 4 seconds) */
.see-it-in-action__preview-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 2;
}

/* Hide thumbnail when video is playing */
.see-it-in-action__video-wrapper.is-playing .see-it-in-action__thumbnail {
	opacity: 0;
}

.see-it-in-action__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* When video is playing */
.see-it-in-action__video-wrapper.is-playing .see-it-in-action__video {
	opacity: 1;
}

.see-it-in-action__video-wrapper.is-playing .see-it-in-action__thumbnail {
	opacity: 0;
}

.see-it-in-action__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #E0E0E0 0%, #D0D0D0 100%);
}

/* ==========================================================================
   Mute Button
   ========================================================================== */

.see-it-in-action__mute-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	border: none;
	cursor: pointer;
	color: #FFFFFF;
	transition: background 0.2s ease;
}

.see-it-in-action__mute-btn:hover {
	background: rgba(0, 0, 0, 0.85);
}

.see-it-in-action__mute-icon {
	width: 20px;
	height: 20px;
}

/* Toggle icons based on mute state */
.see-it-in-action__mute-btn.is-unmuted .muted-icon {
	display: none;
}

.see-it-in-action__mute-btn.is-unmuted .unmuted-icon {
	display: block !important;
}

/* ==========================================================================
   Product Card (Below Video)
   ========================================================================== */

.see-it-in-action__product {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 8px;
	width: 300px;
	height: 70px;
	background: #FFFFFF;
	border: 1px solid #DDDDDD;
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.see-it-in-action__product:hover {
	border-color: #BBBBBB;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-decoration: none;
}

.see-it-in-action__product--empty {
	pointer-events: none;
	opacity: 0.6;
}

/* Product Image */
.see-it-in-action__product-image {
	position: relative;
	flex-shrink: 0;
	width: 54px;
	height: 54px;
	border-radius: 8px;
	overflow: hidden;
	background: #111111;
}

.see-it-in-action__product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Bottom gradient on product image */
.see-it-in-action__product-image::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 11px;
	background: linear-gradient(0deg, #000000 46.28%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}

/* Product Info */
.see-it-in-action__product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.see-it-in-action__product-title {
	margin: 0;
	font-family: 'Roboto Flex', sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 12px;
	line-height: 14px;
	text-transform: capitalize;
	color: #000000;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.see-it-in-action__product-prices {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.see-it-in-action__product-price {
	font-family: 'Roboto Flex', sans-serif;
	font-style: normal;
	font-weight: 600;
	font-size: 12px;
	line-height: 14px;
	text-transform: capitalize;
	color: #000000;
}

/* Remove WooCommerce default price wrapper styling */
.see-it-in-action__product-price .woocommerce-Price-amount {
	font-weight: inherit;
	font-size: inherit;
	color: inherit;
}

.see-it-in-action__product-regular {
	font-family: 'Roboto Flex', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 12px;
	line-height: 14px;
	text-transform: capitalize;
	color: #888888;
	text-decoration: line-through;
}

.see-it-in-action__product-regular .woocommerce-Price-amount {
	font-weight: inherit;
	font-size: inherit;
	color: inherit;
}

/* ==========================================================================
   Add to Cart Button
   ========================================================================== */

.see-it-in-action__add-btn {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #FF5100;
	border-radius: 100px;
	border: none;
	cursor: pointer;
	color: #FFFFFF;
	transition: background 0.2s ease, transform 0.2s ease;
}

.see-it-in-action__add-btn:hover {
	background: #E64900;
	transform: scale(1.05);
}

.see-it-in-action__add-btn svg {
	width: 12px;
	height: 12px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1540px) {
	.see-it-in-action__container {
		padding: 0 50px;
	}
	
	/* Keep arrows at edge of container */
	.see-it-in-action__nav--prev {
		left: -25px;
	}
	
	.see-it-in-action__nav--next {
		right: -25px;
	}
}

@media (max-width: 1200px) {
	.see-it-in-action {
		padding: 60px 0;
	}
	
	.see-it-in-action__container {
		gap: 40px;
		padding: 0 40px;
	}
	
	.see-it-in-action__title {
		font-size: 36px;
		line-height: 48px;
	}
	
	.see-it-in-action__card {
		width: 280px;
	}
	
	.see-it-in-action__video-wrapper {
		width: 280px;
		height: 373px;
	}
	
	.see-it-in-action__product {
		width: 280px;
	}
	
	/* Adjust arrow position for smaller video */
	.see-it-in-action__nav--prev,
	.see-it-in-action__nav--next {
		top: 186px; /* Center of 373px video */
	}
	
	/* Arrows fully inside on smaller screens */
	.see-it-in-action__nav--prev {
		left: -22px;
	}
	
	.see-it-in-action__nav--next {
		right: -22px;
	}
}

@media (max-width: 768px) {
	.see-it-in-action {
		padding: 50px 0;
	}
	
	.see-it-in-action__container {
		gap: 30px;
		padding: 0 15px;
	}
	
	.see-it-in-action__title {
		font-size: 28px;
		line-height: 36px;
	}
	
	.see-it-in-action__slider-container {
		padding: 0;
	}
	
	/* Hide navigation arrows on mobile - enable touch swipe */
	.see-it-in-action__nav {
		display: none;
	}
	
	.see-it-in-action__slider-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	
	.see-it-in-action__slider-container::-webkit-scrollbar {
		display: none;
	}
	
	.see-it-in-action__slider-track {
		padding: 0 15px;
		gap: 16px;
	}
	
	.see-it-in-action__card {
		width: 260px;
	}
	
	.see-it-in-action__video-wrapper {
		width: 260px;
		height: 347px;
	}
	
	.see-it-in-action__product {
		width: 260px;
	}
}

@media (max-width: 576px) {
	.see-it-in-action {
		padding: 40px 0;
	}
	
	.see-it-in-action__title {
		font-size: 24px;
		line-height: 32px;
	}
	
	.see-it-in-action__card {
		width: 240px;
	}
	
	.see-it-in-action__video-wrapper {
		width: 240px;
		height: 320px;
	}
	
	.see-it-in-action__product {
		width: 240px;
		height: 65px;
		padding: 6px;
	}
	
	.see-it-in-action__product-image {
		width: 50px;
		height: 50px;
	}
	
	.see-it-in-action__mute-btn {
		width: 36px;
		height: 36px;
		top: 12px;
		right: 12px;
	}
	
	.see-it-in-action__mute-icon {
		width: 18px;
		height: 18px;
	}
}

/* ==========================================================================
   Video Testimonial Popup Modal - Beautiful Design
   ========================================================================== */

.see-it-in-action-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.see-it-in-action-modal.is-open {
	display: flex;
	pointer-events: auto;
	animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.see-it-in-action-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
}

.see-it-in-action-modal__close {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	color: #FFFFFF;
	cursor: pointer;
	transition: all 0.25s ease;
}

.see-it-in-action-modal__close:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

/* Modal Container */
.see-it-in-action-modal__container {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	max-width: 95vw;
	max-height: 90vh;
}

/* Preview Videos (Side) */
.see-it-in-action-modal__preview {
	flex-shrink: 0;
	width: 140px;
	height: 220px;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.4;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.see-it-in-action-modal__preview:hover {
	opacity: 0.75;
	transform: scale(1.05);
	border-color: rgba(255, 255, 255, 0.2);
}

.see-it-in-action-modal__preview-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Main Content Card */
.see-it-in-action-modal__main {
	display: flex;
	background: linear-gradient(145deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 25, 0.98) 100%);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 
		0 25px 80px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	max-height: 85vh;
	animation: modalSlideUp 0.35s ease;
}

@keyframes modalSlideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.see-it-in-action-modal__video-wrapper {
	position: relative;
	width: 360px;
	height: 640px;
	background: #000;
	flex-shrink: 0;
}

/* Video Controls Overlay */
.see-it-in-action-modal__video-controls {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.see-it-in-action-modal__video-wrapper:hover .see-it-in-action-modal__video-controls {
	opacity: 1;
}

/* Play/Pause Button (Center) */
.see-it-in-action-modal__playpause-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #FFFFFF;
	cursor: pointer;
	transition: all 0.25s ease;
	pointer-events: auto;
}

.see-it-in-action-modal__playpause-btn:hover {
	background: rgba(255, 81, 0, 0.8);
	border-color: rgba(255, 81, 0, 0.9);
	transform: scale(1.08);
}

.see-it-in-action-modal__playpause-btn svg {
	width: 28px;
	height: 28px;
}

.see-it-in-action-modal__playpause-btn .play-icon {
	margin-left: 4px; /* Visual centering for play triangle */
}

/* Mute Button (Bottom Right) */
.see-it-in-action-modal__mute-btn {
	position: absolute;
	bottom: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	color: #FFFFFF;
	cursor: pointer;
	transition: all 0.25s ease;
	pointer-events: auto;
	opacity: 1;
}

.see-it-in-action-modal__mute-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.3);
}

.see-it-in-action-modal__mute-btn svg {
	width: 20px;
	height: 20px;
}

/* Video paused state - always show controls */
.see-it-in-action-modal__video-wrapper.is-paused .see-it-in-action-modal__video-controls {
	opacity: 1;
}

.see-it-in-action-modal__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.see-it-in-action-modal__play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	cursor: pointer;
	display: none;
	transition: transform 0.2s ease;
}

.see-it-in-action-modal__play-btn:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

/* Info Panel */
.see-it-in-action-modal__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	width: 320px;
	padding: 40px 36px;
	color: #FFFFFF;
}

/* Stars */
.see-it-in-action-modal__stars {
	display: flex;
	gap: 6px;
}

.see-it-in-action-modal__stars svg {
	width: 22px;
	height: 22px;
	filter: drop-shadow(0 2px 4px rgba(255, 160, 51, 0.3));
}

/* Quote */
.see-it-in-action-modal__quote {
	margin: 0;
	position: relative;
	padding-left: 20px;
	border-left: 3px solid #FF5100;
}

.see-it-in-action-modal__text {
	margin: 0;
	font-family: 'Roboto Flex', sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 28px;
	color: rgba(255, 255, 255, 0.9);
	font-style: italic;
}

/* Author */
.see-it-in-action-modal__author {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.see-it-in-action-modal__name {
	font-family: 'Roboto Flex', sans-serif;
	font-weight: 600;
	font-size: 18px;
	color: #FFFFFF;
	letter-spacing: 0.3px;
}

.see-it-in-action-modal__location {
	font-family: 'Roboto Flex', sans-serif;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
	display: flex;
	align-items: center;
	gap: 6px;
}

.see-it-in-action-modal__location::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 4px;
	background: #FF5100;
	border-radius: 50%;
}

/* Linked Product Card */
.see-it-in-action-modal__product {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	text-decoration: none;
	transition: all 0.25s ease;
	margin-top: auto;
}

.see-it-in-action-modal__product:hover {
	background: linear-gradient(135deg, rgba(255, 81, 0, 0.15) 0%, rgba(255, 81, 0, 0.08) 100%);
	border-color: rgba(255, 81, 0, 0.3);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(255, 81, 0, 0.15);
}

.see-it-in-action-modal__product-img {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	background: #111;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.see-it-in-action-modal__product-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.see-it-in-action-modal__product-name {
	font-family: 'Roboto Flex', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #FFFFFF;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
}

.see-it-in-action-modal__product-price {
	font-family: 'Roboto Flex', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #FF5100;
}

.see-it-in-action-modal__product > svg {
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.4);
	transition: all 0.25s ease;
}

.see-it-in-action-modal__product:hover > svg {
	color: #FF5100;
	transform: translateX(4px);
}

/* Navigation Arrows */
.see-it-in-action-modal__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	color: #FFFFFF;
	cursor: pointer;
	transition: all 0.25s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.see-it-in-action-modal__nav:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
	transform: translateY(-50%) scale(1.08);
}

.see-it-in-action-modal__nav:disabled {
	cursor: not-allowed;
	opacity: 0.3;
}

.see-it-in-action-modal__nav--prev {
	left: 24px;
}

.see-it-in-action-modal__nav--next {
	right: 24px;
}

.see-it-in-action-modal__nav svg {
	transition: transform 0.2s ease;
}

.see-it-in-action-modal__nav--prev:hover:not(:disabled) svg {
	transform: translateX(-3px);
}

.see-it-in-action-modal__nav--next:hover:not(:disabled) svg {
	transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
	.see-it-in-action-modal__preview {
		width: 100px;
		height: 160px;
	}
}

@media (max-width: 1024px) {
	.see-it-in-action-modal {
		padding: 20px;
	}
	
	.see-it-in-action-modal__preview {
		display: none;
	}
	
	.see-it-in-action-modal__main {
		flex-direction: column;
		max-height: 90vh;
		width: 100%;
		max-width: 400px;
	}
	
	.see-it-in-action-modal__video-wrapper {
		width: 100%;
		height: 400px;
	}
	
	.see-it-in-action-modal__info {
		width: 100%;
		padding: 24px;
		gap: 16px;
		max-height: 280px;
		overflow-y: auto;
	}
	
	.see-it-in-action-modal__nav {
		width: 48px;
		height: 48px;
	}
	
	.see-it-in-action-modal__nav--prev {
		left: 12px;
	}
	
	.see-it-in-action-modal__nav--next {
		right: 12px;
	}
}

@media (max-width: 576px) {
	.see-it-in-action-modal {
		padding: 10px;
	}
	
	.see-it-in-action-modal__main {
		max-width: 100%;
		border-radius: 16px;
	}
	
	.see-it-in-action-modal__video-wrapper {
		height: 320px;
	}
	
	.see-it-in-action-modal__info {
		padding: 20px 16px;
		gap: 14px;
	}
	
	.see-it-in-action-modal__text {
		font-size: 15px;
		line-height: 24px;
	}
	
	.see-it-in-action-modal__quote {
		padding-left: 14px;
	}
	
	.see-it-in-action-modal__close {
		top: 12px;
		right: 12px;
		width: 40px;
		height: 40px;
	}
	
	.see-it-in-action-modal__nav {
		width: 40px;
		height: 40px;
	}
	
	.see-it-in-action-modal__nav--prev {
		left: 8px;
	}
	
	.see-it-in-action-modal__nav--next {
		right: 8px;
	}
}
