/**
 * LDWD Testimonial Carousel — frontend styles
 * Author: LDWD Team
 */

.ldwd-testimonial-carousel {
	--ldwd-tc-spread: 100px;
	width: 100%;
}

.ldwd-tc-stage {
	position: relative;
	max-width: 780px;
	margin: 0 auto;
	padding: 60px 150px;
	box-sizing: border-box;
}

/* ---------- Central content ---------- */

.ldwd-tc-content-wrap {
	position: relative;
	z-index: 5;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ldwd-tc-badge {
	display: inline-block;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.ldwd-tc-stars {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: opacity var(--ldwd-tc-anim, 400ms) ease;
}

.ldwd-tc-stars .is-filled,
.ldwd-tc-stars .is-empty {
	display: inline-block;
}

.ldwd-tc-text-slides {
	position: relative;
	width: 100%;
}

.ldwd-tc-text {
	margin: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--ldwd-tc-anim, 400ms) ease, transform var(--ldwd-tc-anim, 400ms) ease;
	pointer-events: none;
}

.ldwd-tc-text.is-active {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ldwd-tc-nav {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ldwd-tc-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.ldwd-tc-nav-btn:active {
	transform: scale(0.94);
}

.ldwd-tc-nav-btn svg {
	width: 40%;
	height: 40%;
}

/* ---------- Profile scatter layout ---------- */

.ldwd-tc-profiles {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.ldwd-tc-profile {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	box-sizing: border-box;
	pointer-events: auto;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.ldwd-tc-profile-avatar {
	object-fit: cover;
	display: block;
}

.ldwd-tc-profile-name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* Six predefined scatter slots around the central quote (desktop).
   Position 1–6 cycle for any additional testimonials beyond six. */

.ldwd-tc-pos-1 { top: calc(-1 * var(--ldwd-tc-spread) * 0.35); left: calc(-1 * var(--ldwd-tc-spread) * 0.55); }
.ldwd-tc-pos-2 { top: calc(-1 * var(--ldwd-tc-spread) * 0.35); right: calc(-1 * var(--ldwd-tc-spread) * 0.55); }
.ldwd-tc-pos-3 { top: 50%; left: calc(-1 * var(--ldwd-tc-spread) * 1); transform: translateY(-30%); }
.ldwd-tc-pos-4 { top: 50%; right: calc(-1 * var(--ldwd-tc-spread) * 0.9); transform: translateY(10%); }
.ldwd-tc-pos-5 { bottom: calc(-1 * var(--ldwd-tc-spread) * 0.6); left: 50%; transform: translateX(-50%); }
.ldwd-tc-pos-6 { bottom: calc(-1 * var(--ldwd-tc-spread) * 0.3); left: 20%; transform: translateX(-50%); }

/* ---------- Responsive: single active profile pinned bottom-center ---------- */

@media (max-width: 1024px) {

	.ldwd-tc-stage {
		padding: 30px 16px 140px;
	}

	.ldwd-tc-profile {
		display: none !important;
	}

	.ldwd-tc-profile.is-active {
		display: flex !important;
		position: absolute;
		bottom: 0;
		left: 50%;
		top: auto;
		right: auto;
		transform: translateX(-50%) !important;
	}
}
