/**
 * Hero Slider Block Styles
 * 
 * @package SH_Local_Content_Companion
 */

/* Hero Slider Container */
.sh-hero-slider-block {
	position: relative;
	width: 100%;
	height: 500px;
	min-height: 500px;
	overflow: hidden;
}

.sh-hero-slider-block .swiper {
	width: 100%;
	height: 100%;
}

.sh-hero-slider-block .swiper-slide {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Slide Background */
.slide-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

/* Slide Overlay */
.slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

/* Slide Content */
.slide-content {
	position: relative;
	z-index: 3;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.slide-content-inner {
	max-width: 1200px;
	width: 100%;
	text-align: center;
}

/* Slide Headline */
.slide-headline {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1.5rem 0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Slide Description */
.slide-description {
	font-size: 1.25rem;
	line-height: 1.6;
	margin: 0 0 2rem 0;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	color: #ffffff;
}

/* Slide CTA */
.slide-cta {
	margin-top: 2rem;
}

.slide-button {
	width: unset;
}

/* Swiper Navigation */
.sh-hero-slider-block .swiper-button-next,
.sh-hero-slider-block .swiper-button-prev {
	color: white;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	width: 60px;
	height: 60px;
	margin-top: -30px;
	transition: all 0.3s ease;
}

.sh-hero-slider-block .swiper-button-next:after,
.sh-hero-slider-block .swiper-button-prev:after {
	font-size: 24px;
	font-weight: 900;
}

.sh-hero-slider-block .swiper-button-next:hover,
.sh-hero-slider-block .swiper-button-prev:hover {
	background: rgba(0, 0, 0, 0.6);
	transform: scale(1.1);
}

/* Swiper Pagination */
.sh-hero-slider-block .swiper-pagination {
	bottom: 30px;
}

.sh-hero-slider-block .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: rgba(255, 255, 255, 0.5);
	border: 2px solid white;
	opacity: 1;
	transition: all 0.3s ease;
}

.sh-hero-slider-block .swiper-pagination-bullet-active {
	background: #007cba;
	border-color: #007cba;
	transform: scale(1.2);
}

/* Empty State */
.sh-hero-slider-block-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 400px;
	background-color: #f8f9fa;
	border: 2px dashed #dee2e6;
	color: #6c757d;
	font-size: 1.1rem;
	text-align: center;
	padding: 2rem;
}

/* Loading State */
.sh-hero-slider-block.loading {
	opacity: 0.7;
}

.sh-hero-slider-block.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #007cba;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 10;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Responsive Design */
@media (max-width: 1200px) {
	.slide-headline {
		font-size: 3rem;
	}

	.slide-description {
		font-size: 1.1rem;
	}
}

@media (max-width: 768px) {
	.sh-hero-slider-block {
		height: 70vh;
		min-height: 400px;
	}

	.slide-content {
		padding: 1.5rem;
	}

	.slide-headline {
		font-size: 2.5rem;
		margin-bottom: 1rem;
	}

	.slide-description {
		font-size: 1rem;
		margin-bottom: 1.5rem;
	}

	.slide-button {
		padding: 0.8rem 1.5rem;
		font-size: 1rem;
	}

	.sh-hero-slider-block .swiper-button-next,
	.sh-hero-slider-block .swiper-button-prev {
		width: 50px;
		height: 50px;
		margin-top: -25px;
	}

	.sh-hero-slider-block .swiper-button-next:after,
	.sh-hero-slider-block .swiper-button-prev:after {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.sh-hero-slider-block {
		height: 60vh;
		min-height: 350px;
	}

	.slide-content {
		padding: 1rem;
	}

	.slide-headline {
		font-size: 2rem;
	}

	.slide-description {
		font-size: 0.9rem;
	}

	.slide-button {
		padding: 0.7rem 1.2rem;
		font-size: 0.9rem;
	}

	.sh-hero-slider-block .swiper-pagination {
		bottom: 20px;
	}

	.sh-hero-slider-block .swiper-pagination-bullet {
		width: 10px;
		height: 10px;
	}
}