/* Splide PDF Viewer styles */

/* Container */
.splide-pdf-viewer {
	margin: 2rem 0;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	overflow: hidden;
	background: #f9fafb;
}

/* Carousel — Splide core CSS handles track/list/slide layout and transitions */
.splide-pdf-carousel {
	position: relative;
}

/* Reset blog typography inherited by slides */
.splide-pdf-carousel .splide__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.splide-pdf-carousel .splide__slide {
	list-style: none;
	margin: 0;
	text-indent: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
}

.splide-pdf-carousel .splide__slide::before,
.splide-pdf-carousel .splide__slide::marker {
	content: none;
	display: none;
}

.splide-pdf-carousel .splide__slide img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 0.25rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Arrow buttons */
.splide-pdf-carousel .splide__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #d1d5db;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s, box-shadow 0.2s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.splide-pdf-carousel .splide__arrow:hover {
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.splide-pdf-carousel .splide__arrow--prev {
	left: 0.75rem;
	transform: translateY(-50%) scaleX(-1);
}

.splide-pdf-carousel .splide__arrow--next {
	right: 0.75rem;
}

.splide-pdf-carousel .splide__arrow svg {
	width: 1rem;
	height: 1rem;
	fill: #374151;
}

.splide-pdf-carousel .splide__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

/* Controls bar */
.splide-pdf-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: #fff;
	border-top: 1px solid #e5e7eb;
}

.splide-pdf-counter {
	font-size: 0.875rem;
	color: #6b7280;
	font-variant-numeric: tabular-nums;
}

.splide-pdf-download {
	display: inline-flex;
	align-items: center;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #159451;
	background: transparent;
	border: 1px solid #159451;
	border-radius: 0.375rem;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.splide-pdf-download:hover {
	background: #159451;
	color: #fff;
}

/* Error state */
.splide-pdf-error {
	padding: 2rem;
	text-align: center;
	color: #6b7280;
	font-size: 0.875rem;
}

.splide-pdf-error a {
	color: #159451;
	text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 640px) {
	.splide-pdf-carousel .splide__slide {
		padding: 0.5rem;
	}

	.splide-pdf-carousel .splide__arrow {
		width: 2rem;
		height: 2rem;
	}

	.splide-pdf-carousel .splide__arrow--prev {
		left: 0.25rem;
	}

	.splide-pdf-carousel .splide__arrow--next {
		right: 0.25rem;
	}
}
