/**
 * Hero Slider Styles - Kloira Homepage
 * Full-width slider with progress indicators and navigation
 *
 * @package Kloira
 * @since 1.0.0
 */

/* ==========================================================================
   Hero Slider Container
   ========================================================================== */

.hero-slider {
	position: relative;
	width: 100%;
	height: 650px;
	overflow: hidden;
	background-color: #D9D9D9;
}

.hero-slider--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-bg-light, #F0F4F8);
}

/* ==========================================================================
   Placeholder State (No Slides)
   ========================================================================== */

.hero-slider__placeholder {
	text-align: center;
	padding: 40px;
}

.hero-slider__placeholder-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.hero-slider__placeholder .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: var(--color-gray-light, #888888);
}

.hero-slider__placeholder p {
	color: var(--color-text-light, #666666);
	font-size: 16px;
	margin: 0;
}

/* ==========================================================================
   Slides Track
   ========================================================================== */

.hero-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   Individual Slide
   ========================================================================== */

.hero-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
	z-index: 1;
}

.hero-slider__slide--active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* ==========================================================================
   Media (Image/Video Background)
   ========================================================================== */

.hero-slider__media {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.hero-slider__media picture {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hero-slider__image,
.hero-slider__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   Bottom Gradient Overlay
   ========================================================================== */

.hero-slider__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 200px;
	background: linear-gradient(
		180deg, 
		rgba(0, 0, 0, 0) 0%, 
		rgba(0, 0, 0, var(--overlay-opacity, 0.32)) 100%
	);
	pointer-events: none;
	z-index: 3;
}

/* ==========================================================================
   Content
   ========================================================================== */

.hero-slider__content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	z-index: 4;
	padding: 0 240px;
}

.hero-slider__content-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Text Group (subtitle + title) */
.hero-slider__text-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 50px;
}

/* Subtitle */
.hero-slider__subtitle {
	color: rgba(255, 255, 255, 0.70);
	font-family: "Roboto Flex", sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	margin: 0;
}

/* Title */
.hero-slider__title {
	color: #FFF;
	font-family: "DM Serif Text", Georgia, serif;
	font-size: 45px;
	font-style: italic;
	font-weight: 400;
	line-height: 55px; /* 122.222% */
	margin: 0;
	max-width: 520px;
}

/* Button */
.hero-slider__button {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	gap: 12px;
	background-color: var(--color-secondary, #FF5100);
	border-radius: 12px;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-slider__button:hover {
	background-color: var(--color-secondary-hover, #E54900);
	text-decoration: none;
	transform: translateY(-2px);
}

.hero-slider__button span {
	color: #FFF;
	font-family: "Roboto Flex", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 22px; /* 122.222% */
}

.hero-slider__button svg {
	width: 16px;
	height: 16px;
	color: #FFFFFF;
	flex-shrink: 0;
}

/* ==========================================================================
   Navigation Arrows
   ========================================================================== */

.hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	opacity: var(--arrow-opacity, 0.4);
	transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.hero-slider__arrow:hover {
	opacity: var(--arrow-opacity-hover, 1);
	background-color: rgba(255, 255, 255, 0.15);
}

.hero-slider__arrow:active {
	transform: translateY(-50%) scale(0.95);
}

.hero-slider__arrow svg {
	width: 24px;
	height: 24px;
	color: #FFFFFF;
}

.hero-slider__arrow--prev {
	left: 40px;
}

.hero-slider__arrow--next {
	right: 40px;
}

/* ==========================================================================
   Progress Indicators
   ========================================================================== */

.hero-slider__progress {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	z-index: 10;
}

.hero-slider__progress-item {
	position: relative;
	width: 100px;
	height: 1.5px;
	padding: 8px 0;
	border: none;
	background: transparent;
	cursor: pointer;
	overflow: visible;
	box-sizing: content-box;
}

.hero-slider__progress-bar {
	display: block;
	width: 100%;
	height: 1.5px;
	background-color: #FFF;
	overflow: hidden;
}

.hero-slider__progress-fill {
	display: block;
	width: 0;
	height: 100%;
	background-color: var(--color-secondary, #FF5100);
	transition: none;
}

/* Active slide progress indicator */
.hero-slider__progress-item--active .hero-slider__progress-fill {
	animation: none; /* Will be controlled by JS */
}

/* Completed slides (viewed) */
.hero-slider__progress-item--completed .hero-slider__progress-fill {
	width: 100%;
}

/* Pending slides (not yet viewed) */
.hero-slider__progress-item:not(.hero-slider__progress-item--completed):not(.hero-slider__progress-item--active) .hero-slider__progress-fill {
	width: 0;
}

/* Hover effect on progress items */
.hero-slider__progress-item:hover .hero-slider__progress-bar {
	opacity: 0.8;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes heroProgressFill {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet */
@media (max-width: 1200px) {
	.hero-slider__content {
		padding: 0 120px;
	}
	
	.hero-slider__title {
		font-size: 38px;
		line-height: 48px;
	}
	
	.hero-slider__arrow--prev {
		left: 24px;
	}
	
	.hero-slider__arrow--next {
		right: 24px;
	}
	
	
	.hero-slider__progress-item {
		width: 80px;
	}
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 991px) {
	.hero-slider {
		height: 600px;
	}
	
	.hero-slider__content {
		padding: 0 60px;
	}
	
	
	.hero-slider__text-group {
		gap: 10px;
		margin-bottom: 32px;
	}
	
	.hero-slider__subtitle {
		font-size: 16px;
	}
	
	.hero-slider__title {
		font-size: 32px;
		line-height: 40px;
	}
	
	.hero-slider__button {
		padding: 14px 24px;
		gap: 10px;
	}
	
	.hero-slider__button span {
		font-size: 16px;
		line-height: 20px;
	}
	
	.hero-slider__arrow {
		width: 48px;
		height: 48px;
	}
	
	.hero-slider__arrow svg {
		width: 20px;
		height: 20px;
	}
	
	.hero-slider__arrow--prev {
		left: 16px;
	}
	
	.hero-slider__arrow--next {
		right: 16px;
	}
	
	
	.hero-slider__progress-item {
		width: 60px;
	}
}

/* Mobile Portrait */
@media (max-width: 767px) {
	.hero-slider {
		height: 520px;
	}
	
	.hero-slider__content {
		padding: 136px 46px 0;
		align-items: flex-start;
		justify-content: center;
	}
	
	.hero-slider__content-inner {
		align-items: center;
		width: 100%;
		gap: 32px;
	}
	
	.hero-slider__text-group {
		align-items: center;
		gap: 12px;
		margin-bottom: 0;
	}
	
	.hero-slider__subtitle {
		font-size: 16px;
		line-height: 20px;
		text-align: center;
	}
	
	.hero-slider__title {
		font-size: 28px;
		line-height: 36px;
		text-align: center;
		max-width: none;
	}
	
	.hero-slider__button {
		padding: 14px 28px;
		gap: 12px;
		border-radius: 10px;
	}
	
	.hero-slider__button span {
		font-size: 16px;
		line-height: 20px;
	}
	
	.hero-slider__button svg {
		width: 10px;
		height: 10px;
	}
	
	.hero-slider__arrow {
		display: none;
	}
	
	.hero-slider__progress {
		bottom: 24px;
		gap: 6px;
	}
	
	.hero-slider__progress-item {
		width: 40px;
	}
	
	.hero-slider__overlay {
		height: 300px;
	}
}

/* Extra Small Mobile */
@media (max-width: 480px) {
	.hero-slider {
		height: 520px;
	}
	
	.hero-slider__progress-item {
		width: 32px;
	}
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.hero-slider__slide {
		transition: none;
	}
	
	.hero-slider__progress-fill {
		transition: width 0.3s ease !important;
	}
	
	.hero-slider__arrow,
	.hero-slider__button {
		transition: none;
	}
}
