/**
* Aisa Slider - Frontend Styles
* Design inspired by modern fullscreen sliders
*/

/* Base Slider Styles */
.aisa-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.aisa-slider-wrapper {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
}

.aisa-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Slide */
.aisa-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0.7s ease;
	z-index: 1;
}

.aisa-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.aisa-slide.prev,
.aisa-slide.next {
	z-index: 1;
}

/* Media Layer */
.aisa-slide-media {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.aisa-slide-image,
.aisa-slide-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

/* Responsive media - single element with JS source swapping */
.aisa-responsive-media {
	display: block;
}

/* Overlay - Default dark gradient */
.aisa-slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
}

/* Content Layer */
.aisa-slide-content {
	position: relative;
	height: 100%;
	display: flex;
	z-index: 3;
	padding: 60px;
	box-sizing: border-box;
	max-width: 1440px;
	margin: auto;
}

.aisa-slide-content-inner {
	max-width: 800px;
}

/* Content Positions */
.aisa-position-top-left {
	justify-content: flex-start;
	align-items: flex-start;
}

.aisa-position-top-center {
	justify-content: center;
	align-items: flex-start;
	text-align: center;
}

.aisa-position-top-right {
	justify-content: flex-end;
	align-items: flex-start;
	text-align: right;
}

.aisa-position-center-left {
	justify-content: flex-start;
	align-items: center;
}

.aisa-position-center-center {
	justify-content: center;
	align-items: center;
	text-align: center;
}

.aisa-position-center-right {
	justify-content: flex-end;
	align-items: center;
	text-align: right;
}

.aisa-position-bottom-left {
	justify-content: flex-start;
	align-items: flex-end;
	padding-bottom: 180px;
}

.aisa-position-bottom-center {
	justify-content: center;
	align-items: flex-end;
	text-align: center;
	padding-bottom: 180px;
}

.aisa-position-bottom-right {
	justify-content: flex-end;
	align-items: flex-end;
	text-align: right;
	padding-bottom: 180px;
}

/* Title - Large elegant typography */
.aisa-slide-title {
	margin: 0;
	font-size: 48px;
	font-weight: bold;
	color: #ffffff;
	line-height: 80px;
	letter-spacing: 2px;
}

/* Subtitle - Smaller, spaced letters */
.aisa-slide-subtitle {
	margin-bottom: 24px;
	font-size: 30px;
	color: #ffffff;
	text-transform: uppercase;
}

/* Button - Outlined/Ghost style */
.aisa-slide-button {
	display: inline-block;
	padding: 16px 50px;
	color: #ffffff;
	text-decoration: none;
	font-size: 16px;
	font-weight: bold;
	border-radius: 50px;
	border: 2px solid #ffffff;
	transition: all 0.3s ease;
	cursor: pointer;
}

.aisa-slide-button:hover {
	background-color: #ffffff;
	color: #000000;
}

/* Navigation Controls Container - Bottom Left */
.aisa-slider-controls {
	position: absolute;
	bottom: 128px;
	left: calc(50vw - 720px);
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Navigation Arrows - Horizontal layout */
.aisa-slider-arrows button:focus {
	background-color: transparent;
	color: #fff;
}
.aisa-slider-arrows {
	display: flex;
	flex-direction: row-reverse;
	gap: 10px;
	z-index: 10;
}

.aisa-slider-arrow {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	transform: none;
	width: 56px !important;
	height: 32px !important;
	background-color: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	padding: 0;
}

.aisa-slider-arrow:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.8);
}

.aisa-slider-arrow svg {
	width: 24px;
	height: 24px;
	stroke-width: 1px;
}

.aisa-slider-prev {
	position: relative;
}

.aisa-slider-next {
	position: relative;
}

/* Arrow Styles */
.aisa-arrows-circle .aisa-slider-arrow {
	border-radius: 50px;
	background-color: transparent;
	border: 2px solid #ffffff;
}
.aisa-arrows-circle .aisa-slider-arrow:hover {
	background-color: #ffffff;
}
.aisa-arrows-circle .aisa-slider-arrow:hover svg {
	stroke: #000000;
}
.aisa-arrows-circle-filled .aisa-slider-arrow {
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.aisa-arrows-circle-filled .aisa-slider-arrow:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.aisa-arrows-square .aisa-slider-arrow {
	border-radius: 4px;
}

.aisa-arrows-minimal .aisa-slider-arrow {
	background-color: transparent;
	border: none;
	width: 40px;
	height: 40px;
}

.aisa-arrows-minimal .aisa-slider-arrow:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Pagination - Hidden by default in this design */
.aisa-slider-pagination {
	position: absolute;
	bottom: 104px;
	left: calc(50vw - 720px);
	display: flex;
	gap: 24px;
	z-index: 10;
}

.aisa-pagination-item {
	width: 112px !important;
	height: 2px !important;
	background-color: rgba(255, 255, 255, 0.1) !important;
	border: none !important;
	border-radius: 0 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.aisa-pagination-item:hover {
	background-color: rgba(255, 255, 255, 0.8) !important;
}

.aisa-pagination-item.active {
	background-color: #ffffff !important;
}

/* Lines Pagination */
.aisa-pagination-lines .aisa-pagination-item {
	width: 40px;
	height: 3px;
	border-radius: 0;
}

.aisa-pagination-lines .aisa-pagination-item.active {
	transform: scaleX(1);
	background-color: #c9a962;
}

/* Numbers Pagination */
.aisa-pagination-numbers .aisa-pagination-item {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 12px;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Fraction Pagination */
.aisa-pagination-fraction {
	font-size: 16px;
	color: #ffffff;
	font-weight: 500;
}

.aisa-pagination-current {
	font-size: 24px;
	font-weight: 700;
}

.aisa-pagination-separator {
	margin: 0 5px;
	opacity: 0.7;
}

/* Thumbnails - Bottom left, horizontal with line indicator */
.aisa-slider-thumbnails {
	overflow: visible;
}

.aisa-thumbnails-track {
	display: flex;
	gap: 24px;
	justify-content: flex-start;
	flex-wrap: nowrap;
	overflow-x: auto;
	padding: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.aisa-thumbnails-track::-webkit-scrollbar {
	display: none;
}

.aisa-thumbnail-item {
	flex-shrink: 0;
	width: 112px;
	height: 62px;
	border: none !important;
	border-radius: 4px !important;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
	background: rgba(255, 255, 255, 0.1);
	position: relative;
	background: #000000 !important;
}

.aisa-thumbnail-item::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #c9a962;
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.aisa-thumbnail-item:hover img{
	opacity: 0.9;
}

.aisa-thumbnail-item.active::after {
	transform: scaleX(1);
}

.aisa-thumbnail-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.3;
	transition: all ease 0.3s;
}

.aisa-thumbnail-item.active img {
	opacity: 1;
}
.aisa-thumbnail-placeholder {
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.1);
}

/* Slider with thumbnails - Override default positioning */
.aisa-slider.has-thumbnails {
	display: block;
}

.aisa-slider.has-thumbnails .aisa-slider-thumbnails {
	z-index: 10;
	margin: 0;
	width: auto;
	max-width: 350px;
}

/* When arrows are also shown, stack them */
.aisa-slider.has-thumbnails.has-arrows .aisa-slider-controls {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Thumbnail Positions */

.aisa-slider.has-thumbnails.thumbnail-left .aisa-slider-thumbnails {
	left: 40px;
	bottom: 40px;
}

.aisa-slider.has-thumbnails.thumbnail-right .aisa-slider-thumbnails {
	right: 40px;
	left: auto;
	bottom: 40px;
}

.aisa-slider.has-thumbnails.thumbnail-right .aisa-thumbnails-track {
	justify-content: flex-end;
}

/* Content Animation */
.aisa-slide .aisa-slide-content-inner {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.aisa-slide.active .aisa-slide-content-inner {
	opacity: 1;
	transform: translateY(0);
}

.aisa-slide .aisa-slide-title {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.aisa-slide.active .aisa-slide-title {
	opacity: 1;
	transform: translateY(0);
}

.aisa-slide .aisa-slide-subtitle {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.aisa-slide.active .aisa-slide-subtitle {
	opacity: 1;
	transform: translateY(0);
}

.aisa-slide .aisa-slide-button {
	opacity: 0;
	transform: translateY(20px);
	transition: color 0.3s ease, opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s, background-color 0.3s ease, border-color 0.3s ease;
}

.aisa-slide.active .aisa-slide-button {
	opacity: 1;
	transform: translateY(0);
}

/* Scroll indicator */
.aisa-scroll-indicator {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	letter-spacing: 1px;
}

.aisa-scroll-indicator-line {
	width: 1px;
	height: 40px;
	background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
	animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
	0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
	50% { opacity: 1; transform: scaleY(1); }
}

/* Responsive */

@media (max-width: 1440px) {
	.aisa-slider-controls,
	.aisa-slider-pagination {
		left: 10px;
	}
}

@media (max-width: 1024px) {
	.aisa-slider-wrapper {
		height: 80vh;
		min-height: 500px;
	}

	.aisa-slide-content {
		padding: 40px;
	}

	.aisa-slide-title {
		font-size: 42px;
	}

	.aisa-slider.has-thumbnails .aisa-slider-thumbnails {
		left: 30px;
		bottom: 30px;
	}

	.aisa-slider-controls {
		left: 30px;
		bottom: 30px;
	}
}

@media (max-width: 768px) {
	.aisa-slider-wrapper {
		height: 100vh;
		min-height: 500px;
	}

	.aisa-slide-content {
		padding: 30px;
		padding-bottom: 160px;
	}

	.aisa-slide-title {
		font-size: 32px;
		letter-spacing: 1px;
	}

	.aisa-slide-subtitle {
		font-size: 12px;
		letter-spacing: 2px;
	}

	.aisa-slide-button {
		padding: 14px 28px;
		font-size: 12px;
	}

	.aisa-slider-arrow {
		width: 44px;
		height: 44px;
	}

	.aisa-slider-arrow svg {
		width: 18px;
		height: 18px;
	}

	.aisa-slider-controls {
		left: 0;
		bottom: 160px;
		width: 100%;
		align-items: center;
	}
	.aisa-slider-pagination {
		position: relative;
		left: 0;
		justify-content: center;
		bottom: 144px;
	}
	.aisa-slider.has-thumbnails .aisa-slider-thumbnails {
		display: none;
	}

	.aisa-thumbnail-item {
		width: 55px;
		height: 38px;
	}

	.aisa-position-bottom-left,
	.aisa-position-bottom-center,
	.aisa-position-bottom-right {
		padding-bottom: 150px;
	}

	.aisa-scroll-indicator {
		display: none;
	}
}

@media (max-width: 480px) {
	.aisa-slide-title {
		font-size: 24px;
		line-height: 40px;
	}

	.aisa-slide-subtitle {
		font-size: 16px;
		letter-spacing: 1.5px;
		margin-bottom: 20px;
	}

	.aisa-slide-button {
		padding: 12px 32px;
		font-size: 11px;
	}

	.aisa-thumbnail-item {
		width: 48px;
		height: 34px;
	}

	.aisa-slider-arrow {
		width: 40px;
		height: 40px;
	}
}

/* Lazy Video Placeholder */
.aisa-lazy-video:not([src]) {
	background-color: #000;
}

/* Touch enabled states */
.aisa-slider.touch-enabled {
	touch-action: pan-y;
}

.aisa-slider.is-dragging {
	cursor: grabbing;
}

.aisa-slider.is-dragging .aisa-slide-button {
	pointer-events: none;
}

/* Loading state */
.aisa-slider.is-loading .aisa-slide {
	opacity: 0;
}

.aisa-slider.is-loading .aisa-slide:first-child {
	opacity: 1;
	visibility: visible;
}

/* Focus styles for accessibility */
.aisa-slider-arrow:focus,
.aisa-pagination-item:focus,
.aisa-thumbnail-item:focus {
	outline: 2px solid #c9a962;
	outline-offset: 2px;
}


/* RTL Support */
[dir="rtl"] .aisa-slide-content {
	direction: rtl;
}
