/**
 * TrustPlay Testimonials block styles — carousel layout.
 *
 * @package TrustPlay_Partners
 */

.tp-testimonials {
	position: relative;
	overflow: hidden;
}

.tp-testimonials__glow {
	position: absolute;
	top: 0;
	right: 25%;
	width: 500px;
	height: 500px;
	background: hsl(280, 60%, 45%, 0.05);
	border-radius: 50%;
	filter: blur(150px);
	pointer-events: none;
}

/* Heading */
.tp-testimonials__header {
	text-align: center;
	margin-bottom: 4rem;
}

.tp-testimonials__heading {
	font-family: var(--tp-font-display);
	font-size: clamp(2rem, 5vw, 3.75rem);
	color: var(--tp-fg);
	margin: 0;
}

/* ── Carousel ─────────────────────────────────────── */

.tp-testimonials__carousel {
	position: relative;
	max-width: 48rem;
	margin: 0 auto;
}

/* Scroll track */
.tp-testimonials__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.tp-testimonials__track::-webkit-scrollbar {
	display: none;
}

/* Each slide occupies full track width */
.tp-testimonials__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	padding: 2.5rem 2rem;
	border-radius: 1rem;
	transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.tp-testimonials__slide:hover {
	border-color: hsl(43, 74%, 49%, 0.3);
	box-shadow: var(--tp-shadow-gold);
}

/* ── Arrow buttons ────────────────────────────────── */

.tp-testimonials__arrow {
	position: absolute;
	top: calc(50% - 1.5rem); /* centre vertically relative to track, above dots */
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--tp-fg);
	transition: background 0.2s, border-color 0.2s;
	z-index: 2;
}

.tp-testimonials__arrow:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--tp-gold);
}

.tp-testimonials__arrow--prev { left: -3.5rem; }
.tp-testimonials__arrow--next { right: -3.5rem; }

.tp-testimonials__arrow-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* On narrow viewports, move arrows inside */
@media (max-width: 860px) {
	.tp-testimonials__carousel {
		max-width: 100%;
	}

	.tp-testimonials__arrow--prev { left: 0.25rem; }
	.tp-testimonials__arrow--next { right: 0.25rem; }

	.tp-testimonials__slide {
		padding-left: 3.5rem;
		padding-right: 3.5rem;
	}
}

/* ── Dot indicators ───────────────────────────────── */

.tp-testimonials__dots {
	display: flex;
	justify-content: center;
	gap: 0.625rem;
	margin-top: 2rem;
}

.tp-testimonials__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.25s, transform 0.25s;
}

.tp-testimonials__dot--active,
.tp-testimonials__dot:hover {
	background: var(--tp-gold);
	transform: scale(1.4);
}

/* ── Quote icon ───────────────────────────────────── */

.tp-testimonials__quote-icon {
	margin-bottom: 1rem;
}

.tp-testimonials__icon {
	width: 2.5rem;
	height: 2.5rem;
	color: hsl(43, 74%, 49%, 0.15);
}

/* ── Blockquote ───────────────────────────────────── */

.tp-testimonials__blockquote {
	margin: 0;
	padding: 0;
}

.tp-testimonials__text {
	font-family: var(--tp-font-body);
	font-size: 0.9375rem;
	color: var(--tp-muted);
	line-height: 1.7;
	margin: 0 0 1.5rem;
}

.tp-testimonials__source {
	display: block;
}

.tp-testimonials__source-link {
	font-family: var(--tp-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--tp-gold);
	text-decoration: none;
	transition: color var(--tp-transition);
}

.tp-testimonials__source-link:hover {
	color: var(--tp-gold-light);
}
