/**
 * Frontend styles for Main Categories Carousel.
 *
 * @package Transporter_Core
 */

/* ─── Section ─── */
.mcc-carousel-section {
	width: 100%;
	position: relative;
	padding: 0;
	overflow: hidden;
}

.mcc-carousel-section .swiper {
	width: 100%;
	padding: 0;
}

.mcc-carousel-section .swiper-slide {
	height: auto;
	display: flex;
}

/* ─── Card ─── */
.mcc-card {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	isolation: isolate;
	text-decoration: none;
	display: block;
}

.mcc-card-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	z-index: 1;
}

.mcc-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.15) 0%,
		rgba(0, 0, 0, 0) 35%,
		rgba(0, 0, 0, 0) 45%,
		rgba(0, 0, 0, 0.85) 100%
	);
	z-index: 2;
	transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mcc-card:hover .mcc-card-bg {
	transform: scale(1.1);
}

.mcc-card:hover .mcc-card-overlay {
	opacity: 0.6;
}

.mcc-card-title {
	position: absolute;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 20px;
	z-index: 3;
	color: #fff;
	font-family: 'Bebas', 'FiraGO', sans-serif;
	font-weight: 900;
	font-size: 1.35rem;
	letter-spacing: 0.5px;
	line-height: 1.2;
	user-select: none;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
}

/* ─── Navigation arrows ─── */
.mcc-carousel-section .swiper-button-prev,
.mcc-carousel-section .swiper-button-next {
	color: #fff;
	background: none;
	backdrop-filter: none;
	border-radius: 0;
	width: 44px;
	height: 44px;
	transition: opacity 0.3s, transform 0.2s;
	opacity: 0;
}

.mcc-carousel-section:hover .swiper-button-prev,
.mcc-carousel-section:hover .swiper-button-next {
	opacity: 1;
}

.mcc-carousel-section .swiper-button-prev:hover,
.mcc-carousel-section .swiper-button-next:hover {
	transform: scale(1.2);
}

.mcc-carousel-section .swiper-button-prev::after,
.mcc-carousel-section .swiper-button-next::after {
	font-size: 24px;
	font-weight: 100;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
	.mcc-card-title {
		padding: 10px;
		font-size: 0.95rem;
	}
}
