/**
 * Screens Showcase Widget Styles
 */

.sellio-screens-showcase {
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sellio-screens-showcase-tabs {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 0;
	margin-bottom: 40px;
}

.sellio-screens-tab {
	position: relative;
	cursor: pointer;
	transition: all 0.3s ease;
	overflow: hidden;
}

.sellio-screens-tab-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	width: 100%;
	flex-direction: row;
	justify-content: flex-start;
}

.sellio-screens-tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.sellio-screens-tab-icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

.sellio-screens-tab-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	text-align: left;
}

.sellio-screens-tab-title {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.sellio-screens-tab-description {
	margin: 4px 0 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	opacity: 0.7;
}

.sellio-screens-tab-indicator {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: transparent;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	border-radius: inherit;
}

.sellio-screens-tab-active .sellio-screens-tab-indicator {
	background-color: rgba(0, 0, 0, 0.05);
	opacity: 1;
	visibility: visible;
}

.sellio-screens-tab-progress {
	height: 100%;
	width: 0%;
	background-color: #0066FF;
	transition: width linear;
	position: relative;
	z-index: 1;
	border-radius: inherit;
}

/* Show full progress bar when autoplay is disabled (static indicator) */
.sellio-screens-showcase:not([data-autoplay="yes"]) .sellio-screens-tab-active .sellio-screens-tab-progress {
	width: 100%;
	transition: none;
}

.sellio-screens-preview {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
}

.sellio-screens-preview-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sellio-screens-preview-item.sellio-screens-preview-active {
	opacity: 1;
	visibility: visible;
}

.sellio-screens-preview-item.sellio-screens-preview-hidden {
	opacity: 0;
	visibility: hidden;
}

.sellio-screens-preview-image,
.sellio-screens-preview-video {
	width: 100%;
	height: 100%;
}

.sellio-screens-preview-image img,
.sellio-screens-preview-video video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.sellio-screens-preview-video video {
	background-color: #000;
}

/* Animation: Slide */
.sellio-screens-showcase[data-animation-type="slide"] .sellio-screens-preview-item {
	transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
	transform: translateX(100%);
}

.sellio-screens-showcase[data-animation-type="slide"] .sellio-screens-preview-item.sellio-screens-preview-active {
	transform: translateX(0);
}

.sellio-screens-showcase[data-animation-type="slide"] .sellio-screens-preview-item.sellio-screens-preview-hidden {
	transform: translateX(-100%);
}

/* Animation: Zoom */
.sellio-screens-showcase[data-animation-type="zoom"] .sellio-screens-preview-item {
	transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
	transform: scale(0.8);
}

.sellio-screens-showcase[data-animation-type="zoom"] .sellio-screens-preview-item.sellio-screens-preview-active {
	transform: scale(1);
}

.sellio-screens-showcase[data-animation-type="zoom"] .sellio-screens-preview-item.sellio-screens-preview-hidden {
	transform: scale(1.2);
	opacity: 0;
}

/* Animation: Blur */
.sellio-screens-showcase[data-animation-type="blur"] .sellio-screens-preview-item {
	transition: filter 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
	filter: blur(10px);
}

.sellio-screens-showcase[data-animation-type="blur"] .sellio-screens-preview-item.sellio-screens-preview-active {
	filter: blur(0);
}

.sellio-screens-showcase[data-animation-type="blur"] .sellio-screens-preview-item.sellio-screens-preview-hidden {
	filter: blur(10px);
	opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.sellio-screens-showcase-tabs {
		flex-direction: column;
		gap: 8px;
	}

	.sellio-screens-tab {
		width: 100%;
	}

	.sellio-screens-tab-title {
		font-size: 14px;
	}

	.sellio-screens-tab-description {
		font-size: 12px;
	}
}

