/**
 * Manganese Ore Slider Section Styles
 * Image slider with overlay cards
 *
 * @package Eryvium
 * @since Eryvium 1.0.0
 */

/* ============================================
   MANGAESE ORE SLIDER SECTION
   ============================================ */

.manganese-ore-slider {
	position: relative;
	padding: clamp(60px, 10vw, 150px) 0;
	background-color: var(--color-pure-white);
	overflow: hidden;
}

.manganese-ore-slider .container {
	padding: 0;
}

.manganese-ore-slider .slider-wrapper {
	position: relative;
	width: 100%;
	min-height: clamp(400px, 60vw, 800px);
}

.manganese-ore-slider .slider-container {
	position: relative;
	width: 100%;
	height: 100%;
}

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

/* Slides */
.manganese-ore-slider .slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.manganese-ore-slider .slide.active {
	opacity: 1;
	visibility: visible;
	position: relative;
}

.manganese-ore-slider .slide-media {
	position: relative;
	width: 100%;
	height: clamp(400px, 60vw, 800px);
	overflow: hidden;
	border-radius: 10px;
}

.manganese-ore-slider .slide-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Overlay Card */
.manganese-ore-slider .slide-overlay-card,
.slider-section .slide-overlay-card {
	position: absolute;
	top: 50%;
	right: clamp(20px, 5vw, 60px);
	transform: translateY(-50%);
	width: 360px;
	height: 344px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	z-index: 10;
}

.manganese-ore-slider .slide-overlay-card__header,
.slider-section .slide-overlay-card__header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.manganese-ore-slider .slide-overlay-card__icon,
.slider-section .slide-overlay-card__icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.manganese-ore-slider .slide-overlay-card__title,
.slider-section .slide-overlay-card__title {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-text-primary);
	margin: 0;
}

.manganese-ore-slider .slide-overlay-card__content,
.slider-section .slide-overlay-card__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 0.5;
	height: 37px;
	width: auto;
}

.manganese-ore-slider .slide-overlay-card__caption,
.slider-section .slide-overlay-card__caption {
	font-family: var(--font-family-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #4F6478;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.manganese-ore-slider .slide-overlay-card__description,
.slider-section .slide-overlay-card__description {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-text-primary);
	margin: 0;
}

/* Slider Controls */
.manganese-ore-slider .slider-controls {
	position: absolute;
	bottom: clamp(20px, 4vw, 40px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
}

.manganese-ore-slider .slider-dots {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 12px 24px;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.manganese-ore-slider .slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background: rgba(79, 100, 120, 0.3);
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
	padding: 0;
}

.manganese-ore-slider .slider-dot:hover {
	background: rgba(79, 100, 120, 0.5);
	transform: scale(1.2);
}

.manganese-ore-slider .slider-dot.active {
	background: var(--color-sky-pulse);
	transform: scale(1.3);
}

/* Animation classes */
.manganese-ore-slider .slide-media,
.manganese-ore-slider .slide-overlay-card,
.manganese-ore-slider .slider-controls {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.manganese-ore-slider.animated .slide-media {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.1s;
}

.manganese-ore-slider.animated .slide-overlay-card {
	opacity: 1;
	transform: translateY(-50%);
	transition-delay: 0.2s;
}

.manganese-ore-slider.animated .slider-controls {
	opacity: 1;
	transform: translateX(-50%);
	transition-delay: 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
	.manganese-ore-slider .slide-overlay-card {
		width: 280px;
		height: 280px;
		padding: 24px;
		right: 20px;
	}
	
	.manganese-ore-slider .slide-overlay-card__title {
		font-size: 20px;
	}
	
	.manganese-ore-slider .slide-overlay-card__description {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.manganese-ore-slider {
		padding: clamp(40px, 8vw, 100px) 0;
	}
	
	.manganese-ore-slider .slide-media {
		height: clamp(300px, 50vw, 600px);
	}
	
	.manganese-ore-slider .slide-overlay-card {
		position: relative;
		top: auto;
		right: auto;
		transform: none;
		width: 100%;
		max-width: 334px;
		height: auto;
		min-height: 200px;
		margin: 20px auto 0;
	}
	
	.manganese-ore-slider .slider-controls {
		position: relative;
		bottom: auto;
		left: auto;
		transform: none;
		margin-top: 24px;
	}
}

@media (max-width: 320px) {
	.manganese-ore-slider .slide-media,
	.slider-section .slide-media {
		width: 100%;
		height: 290px;
		margin: 0 auto;
		border-radius: 10px;
		overflow: hidden;
		box-shadow: 0 clamp(5px, 1vw, 10px) clamp(20px, 3vw, 40px) rgba(0, 0, 0, 0.1);
		transform: translateZ(0);
		will-change: contents;
		backface-visibility: hidden;
	}
	
	.manganese-ore-slider .slide-overlay-card,
	.slider-section .slide-overlay-card {
		position: absolute;
		top: 50%;
		right: 0;
		transform: translateY(-50%);
		width: 90%;
		height: auto;
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border-radius: 10px;
		border: 1px solid rgba(255, 255, 255, 0.8);
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
		padding: 14px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 24px;
		z-index: 10;
		margin: 0 auto;
		left: 0;
	}
	
	.manganese-ore-slider .slide-overlay-card__description,
	.slider-section .slide-overlay-card__description {
		font-family: var(--font-heading);
		font-size: 18px;
		font-weight: 500;
		line-height: 1.5;
		color: var(--color-text-primary);
		margin: 0;
	}
}
