/**
 * Professional Carousel — Base structural styles with modern design
 */

/* ===== Root Variables ===== */
:root {
	--pro-carousel-bg: #ffffff;
	--pro-carousel-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	--pro-carousel-radius: 12px;
	--pro-carousel-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--pro-carousel-content-padding: 24px;
	--pro-carousel-title-size: 20px;
	--pro-carousel-desc-size: 14px;
	--pro-carousel-gap: 8px;
}

/* ===== Wrapper ===== */
.pro-carousel-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 0;
}

.pro-carousel-wrapper * {
	box-sizing: border-box;
}

/* ===== Swiper Container ===== */
.pro-carousel-swiper {
	width: 100%;
	overflow: hidden;
	padding: 5px 0 15px;
}

/* ===== Individual Slide ===== */
.pro-carousel-slide {
	display: flex;
	flex-direction: column;
	height: auto;
	background: var(--pro-carousel-bg);
	border-radius: var(--pro-carousel-radius);
	overflow: hidden;
	box-shadow: var(--pro-carousel-shadow);
	transition: var(--pro-carousel-transition);
	position: relative;
}

.pro-carousel-slide:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ===== Slide Image ===== */
.pro-carousel-slide__image {
	width: 100%;
	overflow: hidden;
	line-height: 0;
	background: #f0f0f0;
	position: relative;
}

.pro-carousel-slide__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-carousel-slide:hover .pro-carousel-slide__image img {
	transform: scale(1.05);
}

/* ===== Slide Content ===== */
.pro-carousel-slide__content {
	display: flex;
	flex-direction: column;
	padding: var(--pro-carousel-content-padding);
	flex: 1;
	background: var(--pro-carousel-bg);
	gap: var(--pro-carousel-gap);
}

/* ===== Title ===== */
.pro-carousel-slide__title {
	margin: 0 0 8px;
	font-size: var(--pro-carousel-title-size);
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a2e;
	letter-spacing: -0.02em;
}

.pro-carousel-slide__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.pro-carousel-slide__title a:hover {
	color: #e94560;
}

/* ===== Description ===== */
.pro-carousel-slide__description {
	margin: 0 0 15px;
	font-size: var(--pro-carousel-desc-size);
	line-height: 1.6;
	color: #6c6c7a;
	flex: 1;
}

.pro-carousel-slide__description p:last-child {
	margin-bottom: 0;
}

.pro-carousel-slide__description p {
	margin: 0 0 10px;
}

/* ===== Button ===== */
.pro-carousel-slide__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	background: linear-gradient(135deg, #e94560, #c23152);
	color: #ffffff !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border-radius: 50px;
	border: none;
	cursor: pointer;
	transition: var(--pro-carousel-transition);
	width: fit-content;
	min-width: 120px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.pro-carousel-slide__button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.pro-carousel-slide__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(233, 69, 96, 0.4);
	background: linear-gradient(135deg, #c23152, #a82947);
	color: #ffffff !important;
}

.pro-carousel-slide__button:hover::before {
	left: 100%;
}

.pro-carousel-slide__button svg,
.pro-carousel-slide__button i {
	font-size: 1.1em;
	width: 1.1em;
	height: 1.1em;
	transition: transform 0.3s ease;
}

.pro-carousel-slide__button:hover svg,
.pro-carousel-slide__button:hover i {
	transform: translateX(4px);
}

/* ===== Navigation Arrows ===== */
.pro-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #1a1a2e;
	font-size: 20px;
	user-select: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	transition: var(--pro-carousel-transition);
	border: 2px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
}

.pro-carousel-arrow:hover {
	background: #ffffff;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
	transform: translateY(-50%) scale(1.1);
	color: #e94560;
}

.pro-carousel-arrow svg,
.pro-carousel-arrow i {
	width: 0.6em;
	height: 0.6em;
	transition: transform 0.3s ease;
}

.pro-carousel-arrow--prev {
	left: -24px;
}

.pro-carousel-arrow--next {
	right: -24px;
}

.pro-carousel-arrow--prev:hover svg {
	transform: translateX(-3px);
}

.pro-carousel-arrow--next:hover svg {
	transform: translateX(3px);
}

/* RTL Support */
.pro-carousel-wrapper[dir="rtl"] .pro-carousel-arrow--prev {
	left: auto;
	right: -24px;
}

.pro-carousel-wrapper[dir="rtl"] .pro-carousel-arrow--next {
	right: auto;
	left: -24px;
}

.pro-carousel-wrapper[dir="rtl"] .pro-carousel-arrow--prev:hover svg {
	transform: translateX(3px);
}

.pro-carousel-wrapper[dir="rtl"] .pro-carousel-arrow--next:hover svg {
	transform: translateX(-3px);
}

/* ===== Pagination ===== */
.pro-carousel-swiper .swiper-pagination {
	position: relative;
	margin-top: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.pro-carousel-swiper .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: #d1d1d6;
	opacity: 1;
	border-radius: 50%;
	transition: var(--pro-carousel-transition);
	cursor: pointer;
}

.pro-carousel-swiper .swiper-pagination-bullet:hover {
	transform: scale(1.2);
	background: #e94560;
}

.pro-carousel-swiper .swiper-pagination-bullet-active {
	background: #e94560;
	width: 32px;
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(233, 69, 96, 0.4);
}

/* ===== Scrollbar ===== */
.pro-carousel-swiper .swiper-scrollbar {
	position: relative;
	margin-top: 15px;
	height: 4px;
	background: #e9e9ef;
	border-radius: 2px;
}

.pro-carousel-swiper .swiper-scrollbar-drag {
	background: linear-gradient(90deg, #e94560, #c23152);
	border-radius: 2px;
	cursor: grab;
}

.pro-carousel-swiper .swiper-scrollbar-drag:hover {
	cursor: grabbing;
}

/* ===== Empty State ===== */
.pro-carousel-empty {
	padding: 40px 20px;
	text-align: center;
	background: #f8f9fa;
	border-radius: var(--pro-carousel-radius);
	border: 2px dashed #dee2e6;
	color: #6c757d;
	font-size: 16px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
	:root {
		--pro-carousel-content-padding: 18px;
		--pro-carousel-title-size: 17px;
		--pro-carousel-desc-size: 13px;
	}

	.pro-carousel-arrow {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}

	.pro-carousel-arrow--prev {
		left: -12px;
	}

	.pro-carousel-arrow--next {
		right: -12px;
	}

	.pro-carousel-slide__button {
		padding: 10px 20px;
		font-size: 13px;
		min-width: 100px;
	}

	.pro-carousel-swiper .swiper-pagination-bullet {
		width: 10px;
		height: 10px;
	}

	.pro-carousel-swiper .swiper-pagination-bullet-active {
		width: 24px;
	}
}

@media (max-width: 480px) {
	:root {
		--pro-carousel-content-padding: 14px;
		--pro-carousel-title-size: 15px;
		--pro-carousel-desc-size: 12px;
	}

	.pro-carousel-arrow {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.pro-carousel-arrow--prev {
		left: -8px;
	}

	.pro-carousel-arrow--next {
		right: -8px;
	}

	.pro-carousel-slide__button {
		padding: 8px 16px;
		font-size: 12px;
		min-width: 80px;
	}

	.pro-carousel-slide__content {
		padding: 14px;
	}
}

/* ===== Animation for Slide Entrance ===== */
@keyframes proCarouselSlideIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.pro-carousel-slide {
	animation: proCarouselSlideIn 0.4s ease forwards;
}

.pro-carousel-slide:nth-child(2) {
	animation-delay: 0.1s;
}

.pro-carousel-slide:nth-child(3) {
	animation-delay: 0.2s;
}

.pro-carousel-slide:nth-child(4) {
	animation-delay: 0.3s;
}

.pro-carousel-slide:nth-child(5) {
	animation-delay: 0.4s;
}

/* ===== Hover Effects - Badge/Overlay ===== */
.pro-carousel-slide__image::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.pro-carousel-slide:hover .pro-carousel-slide__image::after {
	opacity: 1;
}

/* ===== Focus States for Accessibility ===== */
.pro-carousel-arrow:focus-visible,
.pro-carousel-slide__button:focus-visible {
	outline: 3px solid #e94560;
	outline-offset: 3px;
}

.pro-carousel-arrow:focus-visible:not(:hover) {
	background: #ffffff;
}

/* ===== RTL Swiper Fix ===== */
.pro-carousel-wrapper[dir="rtl"] .swiper {
	direction: rtl;
}

/* ===== Print Styles ===== */
@media print {
	.pro-carousel-slide__button {
		display: none;
	}
	
	.pro-carousel-arrow {
		display: none;
	}
	
	.pro-carousel-slide {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}