/**
 * Carousel Block Styles
 * 
 * @package SFRBookReviewShowcasePro
 */

.sfrbrsp-carousel {
	position: relative;
	width: 100%;
	margin: 2rem 0;
	overflow: hidden;
}

/* Override wrapper grid for carousel - use flex track instead */
.sfrbrsp-carousel.sfrbrs-wrapper {
	display: block;
	gap: 0;
}

.sfrbrsp-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	transition: transform 0.5s ease-in-out;
	will-change: transform;
	min-width: 0;
	width: 100%;
	gap: var(--sfrbrs-gap, 1.5rem);
}

.sfrbrsp-carousel-card {
	flex: 0 0 calc((100% - (var(--sfrbrs-gap, 1.5rem) * (var(--sfrbrsp-slides-to-show, 3) - 1))) / var(--sfrbrsp-slides-to-show, 3));
	padding: 0;
	box-sizing: border-box;
	position: relative;
	min-width: 0;
	width: calc((100% - (var(--sfrbrs-gap, 1.5rem) * (var(--sfrbrsp-slides-to-show, 3) - 1))) / var(--sfrbrsp-slides-to-show, 3));
	max-width: calc((100% - (var(--sfrbrs-gap, 1.5rem) * (var(--sfrbrsp-slides-to-show, 3) - 1))) / var(--sfrbrsp-slides-to-show, 3));
	flex-grow: 0;
	flex-shrink: 0;
}

/* Use free plugin's review card styling within carousel - match exact dimensions */
.sfrbrsp-carousel-card .sfrbrs-review-card {
	height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	box-shadow: none !important;
	/* Cards will inherit all styling from free plugin CSS via CSS variables */
}

/* Shadow support - same as free version with increased specificity */
.sfrbrs-wrapper.sfrbrsp-carousel.sfrbrs-has-shadow .sfrbrs-review-card,
.sfrbrs-wrapper.sfrbrsp-carousel.sfrbrs-has-shadow .sfrbrsp-carousel-card .sfrbrs-review-card {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.sfrbrsp-carousel-badge-wrapper {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
}

.sfrbrsp-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--sfrbrs-accent, #2563eb);
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 20;
	transition: all 0.2s ease;
	padding: 0;
	width: auto;
	height: auto;
}

.sfrbrsp-carousel-arrow:hover:not(.disabled) {
	color: var(--sfrbrs-accent, #2563eb);
	opacity: 0.8;
	transform: translateY(-50%) scale(1.2);
}

.sfrbrsp-carousel-arrow.disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.sfrbrsp-carousel-arrow .dashicons {
	display: none;
}

.sfrbrsp-carousel-prev {
	left: 12px;
}

.sfrbrsp-carousel-next {
	right: 12px;
}

.sfrbrsp-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	padding-top: 8px;
	clear: both;
	position: relative;
	z-index: 10;
}

.sfrbrsp-carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background: #d1d5db;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
	margin: 0;
}

.sfrbrsp-carousel-dot:hover {
	background: var(--sfrbrs-accent, #2563eb);
	transform: scale(1.2);
}

.sfrbrsp-carousel-dot.active {
	background: var(--sfrbrs-accent, #2563eb);
	width: 24px;
	border-radius: 6px;
}

.sfrbrsp-carousel-empty {
	text-align: center;
	padding: 2rem;
	color: #6b7280;
}

/* Responsive styles */
@media (max-width: 768px) {
	.sfrbrsp-carousel-card {
		flex: 0 0 100%;
	}
	
	.sfrbrsp-carousel-arrow {
		font-size: 1.5rem;
	}
	
	.sfrbrsp-carousel-prev {
		left: 8px;
	}
	
	.sfrbrsp-carousel-next {
		right: 8px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.sfrbrsp-carousel-card {
		flex: 0 0 calc(100% / 2);
	}
}



