/* Carousel Container - Full width */
.carousel-container {
	position: relative;
	width: 100vw;
	height: 600px;
	margin-left: calc(-50vw + 50%);
	overflow: hidden;
	background: #000;
}

.carousel-container.carousel-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
	background: #f3f4f6;
}

/* Carousel Wrapper */
.carousel-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
	touch-action: pan-y;
}

/* Carousel Track - Horizontal layout */
.carousel-track {
	display: flex;
	width: 100%;
	height: 100%;
	will-change: transform;
	transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.carousel-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Image Container - Prevent layout shift */
.slide-image-container {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Slide Image - Responsive cover */
.slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Dark overlay for better text readability */
.slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.7) 0%,
		rgba(0, 0, 0, 0.3) 50%,
		rgba(0, 0, 0, 0.1) 100%
	);
}

/* Content Overlay */
.slide-content {
	position: relative;
	z-index: 10;
	max-width: 1200px;
	width: 90%;
	padding: 2rem;
	color: white;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-self: flex-end;
	margin-bottom: 5rem;
}

/* Publication Date */
.slide-date {
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.9;
	color: #e5e7eb;
}

/* Slide Title */
.slide-title {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Title Link */
.slide-link {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.slide-link:hover,
.slide-link:focus {
	opacity: 0.8;
	outline: 2px solid white;
	outline-offset: 4px;
}

/* Author Name */
.slide-author {
	font-size: 1.125rem;
	font-weight: 400;
	opacity: 0.85;
	margin: 0;
}

/* Navigation Arrows */
.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #1f2937;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
	background: white;
	transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:focus {
	outline: 2px solid white;
	outline-offset: 4px;
}

.carousel-arrow:active {
	transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
	left: 2rem;
}

.carousel-arrow-next {
	right: 2rem;
}

/* Pagination Dots */
.carousel-pagination {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid white;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.carousel-dot:hover {
	background: rgba(255, 255, 255, 0.5);
	transform: scale(1.2);
}

.carousel-dot:focus {
	outline: 2px solid white;
	outline-offset: 4px;
}

.carousel-dot.active {
	background: white;
	transform: scale(1.3);
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
	.carousel-container {
		height: 500px;
	}

	.slide-title {
		font-size: 2.5rem;
	}

	.carousel-arrow {
		width: 48px;
		height: 48px;
	}

	.carousel-arrow-prev {
		left: 1rem;
	}

	.carousel-arrow-next {
		right: 1rem;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.carousel-container {
		height: 400px;
	}

	.slide-content {
		width: 85%;
		padding: 1.5rem;
		margin-bottom: 4rem;
	}

	.slide-title {
		font-size: 1.75rem!important;
	}

	.slide-date {
		font-size: 0.75rem;
	}

	.slide-author {
		font-size: 1rem;
	}

	.carousel-arrow {
		width: 40px;
		height: 40px;
	}

	.carousel-arrow-prev {
		left: 0.5rem;
	}

	.carousel-arrow-next {
		right: 0.5rem;
	}

	.carousel-pagination {
		bottom: 1rem;
	}

	.carousel-dot {
		width: 10px;
		height: 10px;
	}
}

/* Extra small mobile */
@media (max-width: 480px) {
	.carousel-container {
		height: 350px;
	}

	.slide-title {
		font-size: 1.5rem!important;
	}

	.carousel-arrow {
		width: 36px;
		height: 36px;
	}
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.carousel-track {
		transition: none !important;
	}

	.carousel-arrow,
	.carousel-dot {
		transition: none;
	}
}
