/**
 * File Name: testimonials.css
 * File Location: /assets/css/testimonials.css
 *
 * Purpose:
 * Premium Homepage Testimonials section styling for DAF Marketplace.
 *
 * Responsive Rules:
 * - Desktop: 3 cards per row.
 * - Tablet: 2 cards per row.
 * - Mobile: 1 card per row.
 */

/* ==========================================================================
   Section Base
   ========================================================================== */

#daf-mp-testimonials.daf-mp-testimonials-section {
	position: relative;
	overflow: hidden;
	padding: 6rem 0;
	background:
		radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.13), transparent 30%),
		radial-gradient(circle at 86% 16%, rgba(59, 130, 246, 0.10), transparent 28%),
		linear-gradient(180deg, #f8fafc 0%, #ffffff 52%, #ecfdf5 100%);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#daf-mp-testimonials::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
	pointer-events: none;
}

#daf-mp-testimonials .daf-mp-testimonials-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

#daf-mp-testimonials .daf-mp-testimonials-orb {
	position: absolute;
	display: block;
	width: 330px;
	height: 330px;
	border-radius: 999px;
	filter: blur(22px);
	opacity: 0.32;
}

#daf-mp-testimonials .daf-mp-testimonials-orb-one {
	top: -160px;
	left: -90px;
	background: rgba(16, 185, 129, 0.30);
}

#daf-mp-testimonials .daf-mp-testimonials-orb-two {
	right: -130px;
	bottom: -170px;
	background: rgba(34, 197, 94, 0.22);
}

#daf-mp-testimonials .daf-mp-testimonials-grid-pattern {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.24;
	mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 70%, transparent);
}

/* ==========================================================================
   Container + Header
   ========================================================================== */

#daf-mp-testimonials .daf-mp-testimonials-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 2rem;
	box-sizing: border-box;
}

#daf-mp-testimonials .daf-mp-testimonials-header {
	max-width: 780px;
	margin: 0 auto 3.4rem;
	text-align: center;
}

#daf-mp-testimonials .daf-mp-section-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	padding: 0.48rem 0.85rem;
	border: 1px solid rgba(16, 185, 129, 0.22);
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.09);
	color: #047857;
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

#daf-mp-testimonials .daf-mp-testimonials-title {
	margin: 0;
	color: #0f172a;
	font-size: clamp(2.15rem, 4vw, 3.55rem);
	font-weight: 950;
	line-height: 1.04;
	letter-spacing: -0.055em;
}

#daf-mp-testimonials .daf-mp-testimonials-subtitle {
	max-width: 660px;
	margin: 1rem auto 0;
	color: #64748b;
	font-size: 1rem;
	line-height: 1.75;
}

/* ==========================================================================
   Testimonials Grid
   ========================================================================== */

#daf-mp-testimonials .daf-mp-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.35rem;
	align-items: stretch;
}

/* ==========================================================================
   Testimonial Card
   ========================================================================== */

#daf-mp-testimonials .daf-mp-testimonial-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 360px;
	padding: 1.55rem;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 28px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
	box-shadow:
		0 22px 70px rgba(15, 23, 42, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(16px);
	transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
	box-sizing: border-box;
}

#daf-mp-testimonials .daf-mp-testimonial-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		linear-gradient(135deg, rgba(16, 185, 129, 0.16), transparent 42%),
		radial-gradient(circle at 85% 12%, rgba(16, 185, 129, 0.12), transparent 30%);
	opacity: 0;
	transition: opacity 240ms ease;
	pointer-events: none;
}

#daf-mp-testimonials .daf-mp-testimonial-card:hover {
	transform: translateY(-6px);
	border-color: rgba(16, 185, 129, 0.38);
	box-shadow:
		0 30px 90px rgba(15, 23, 42, 0.13),
		0 0 0 1px rgba(16, 185, 129, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#daf-mp-testimonials .daf-mp-testimonial-card:hover::before {
	opacity: 1;
}

#daf-mp-testimonials .daf-mp-testimonial-card-glow {
	position: absolute;
	top: -80px;
	right: -80px;
	width: 180px;
	height: 180px;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.16);
	filter: blur(20px);
	pointer-events: none;
}

#daf-mp-testimonials .daf-mp-testimonial-top,
#daf-mp-testimonials .daf-mp-testimonial-content,
#daf-mp-testimonials .daf-mp-testimonial-author {
	position: relative;
	z-index: 1;
}

#daf-mp-testimonials .daf-mp-testimonial-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.35rem;
}

#daf-mp-testimonials .daf-mp-testimonial-rating {
	display: inline-flex;
	align-items: center;
	gap: 0.22rem;
	padding: 0.48rem 0.65rem;
	border: 1px solid rgba(251, 191, 36, 0.25);
	border-radius: 999px;
	background: rgba(255, 251, 235, 0.92);
}

#daf-mp-testimonials .daf-mp-star {
	font-size: 1rem;
	line-height: 1;
}

#daf-mp-testimonials .daf-mp-star.is-active {
	color: #f59e0b;
}

#daf-mp-testimonials .daf-mp-star.is-muted {
	color: #e5e7eb;
}

#daf-mp-testimonials .daf-mp-testimonial-quote-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 16px;
	background: #064e3b;
	color: #a7f3d0;
	font-family: Georgia, serif;
	font-size: 2.4rem;
	line-height: 1;
	box-shadow: 0 16px 35px rgba(6, 78, 59, 0.2);
}

#daf-mp-testimonials .daf-mp-testimonial-content {
	flex: 1;
	margin: 0 0 1.75rem;
	color: #334155;
	font-size: 0.98rem;
	font-weight: 520;
	line-height: 1.82;
}

#daf-mp-testimonials .daf-mp-testimonial-author {
	display: flex;
	align-items: center;
	gap: 0.95rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgba(148, 163, 184, 0.18);
}

#daf-mp-testimonials .daf-mp-testimonial-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	min-width: 52px;
	border-radius: 18px;
	background: linear-gradient(145deg, #ecfdf5, #d1fae5);
	font-size: 1.75rem;
	box-shadow:
		0 12px 28px rgba(16, 185, 129, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#daf-mp-testimonials .daf-mp-testimonial-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 0.16rem;
}

#daf-mp-testimonials .daf-mp-testimonial-name {
	color: #0f172a;
	font-size: 0.98rem;
	font-weight: 850;
	line-height: 1.3;
}

#daf-mp-testimonials .daf-mp-testimonial-role {
	color: #64748b;
	font-size: 0.83rem;
	font-weight: 650;
}

/* ==========================================================================
   Trust Row
   ========================================================================== */

#daf-mp-testimonials .daf-mp-testimonials-trust-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem;
}

#daf-mp-testimonials .daf-mp-testimonials-trust-row span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid rgba(16, 185, 129, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: #047857;
	font-size: 0.82rem;
	font-weight: 800;
	box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

#daf-mp-testimonials .daf-mp-testimonials-trust-row span::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
	font-size: 0.7rem;
	font-weight: 900;
}

/* ==========================================================================
   Tablet: 2 Cards Per Row
   ========================================================================== */

@media (min-width: 721px) and (max-width: 1024px) {
	#daf-mp-testimonials.daf-mp-testimonials-section {
		padding: 5rem 0;
	}

	#daf-mp-testimonials .daf-mp-testimonials-container {
		max-width: 940px;
		padding: 0 1.75rem;
	}

	#daf-mp-testimonials .daf-mp-testimonials-header {
		margin-bottom: 2.7rem;
	}

	#daf-mp-testimonials .daf-mp-testimonials-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}

	#daf-mp-testimonials .daf-mp-testimonial-card {
		min-height: 340px;
		padding: 1.35rem;
		border-radius: 26px;
	}
}

/* ==========================================================================
   Mobile: 1 Card Per Row
   ========================================================================== */

@media (max-width: 720px) {
	#daf-mp-testimonials.daf-mp-testimonials-section {
		padding: 4rem 0;
	}

	#daf-mp-testimonials .daf-mp-testimonials-container {
		max-width: 100%;
		padding: 0 1.1rem;
	}

	#daf-mp-testimonials .daf-mp-testimonials-header {
		margin-bottom: 2.3rem;
	}

	#daf-mp-testimonials .daf-mp-testimonials-title {
		font-size: 2rem;
		letter-spacing: -0.045em;
	}

	#daf-mp-testimonials .daf-mp-testimonials-subtitle {
		font-size: 0.94rem;
		line-height: 1.7;
	}

	#daf-mp-testimonials .daf-mp-testimonials-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	#daf-mp-testimonials .daf-mp-testimonial-card {
		width: 100%;
		min-height: auto;
		padding: 1.25rem;
		border-radius: 24px;
	}

	#daf-mp-testimonials .daf-mp-testimonial-content {
		font-size: 0.94rem;
		line-height: 1.75;
	}

	#daf-mp-testimonials .daf-mp-testimonials-trust-row {
		justify-content: flex-start;
	}
}

@media (max-width: 420px) {
	#daf-mp-testimonials .daf-mp-testimonial-top {
		align-items: flex-start;
		flex-direction: column;
	}

	#daf-mp-testimonials .daf-mp-testimonial-quote-mark {
		width: 38px;
		height: 38px;
		font-size: 2.1rem;
	}

	#daf-mp-testimonials .daf-mp-testimonial-author {
		align-items: flex-start;
	}

	#daf-mp-testimonials .daf-mp-testimonials-title {
		font-size: 1.9rem;
	}

	#daf-mp-testimonials .daf-mp-testimonials-trust-row span {
		width: 100%;
		justify-content: center;
	}
}