/* WooCommerce Product Video Gallery Styles */

.product-video-slide {
	background: #fafafa;
}

.video-container {
	position: relative;
	padding: 20px;
	box-sizing: border-box;
}

.video-wrapper {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}

/* استایل برای ویدیوهای مستقیم */
.product-video-element {
	display: block;
	outline: none;
	max-width: 100%;
}

.product-video-element::-webkit-media-controls-panel {
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
}

/* استایل برای iframe ها */
.product-video-iframe {
	border: none;
	display: block;
}

/* Thumbnail ویدیوها */
.product-video-thumbnail {
	cursor: pointer;
	transition: all 0.3s ease;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-video-thumbnail:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-video-thumbnail span {
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* نمایش بهتر در موبایل */
@media (max-width: 768px) {
	.video-container {
		padding: 10px;
	}
	
	.video-wrapper {
		max-width: 100%;
	}
	
	.product-video-element {
		max-height: 300px;
	}
}

/* Fullscreen styles */
.video-wrapper:-webkit-full-screen {
	width: 100%;
	height: 100%;
}

.video-wrapper:-moz-full-screen {
	width: 100%;
	height: 100%;
}

.video-wrapper:-ms-fullscreen {
	width: 100%;
	height: 100%;
}

.video-wrapper:fullscreen {
	width: 100%;
	height: 100%;
	max-width: 100%;
}

.video-wrapper:fullscreen video {
	max-height: 100%;
}

/* بهبود نمایش در حالت fullscreen */
video:fullscreen {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

video:-webkit-full-screen {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

video:-moz-full-screen {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
