/*
 * Wellcure Reviews — Frontend Styles
 * Two-row testimonial marquee inspired by the Dribbble shot,
 * with the brand colour #66bc89.
 */

.wellcure-reviews-wrapper {
	--wlc-primary:        #66bc89;
	--wlc-primary-dark:   #4ea072;
	--wlc-primary-soft:   #e8f5ee;
	--wlc-primary-faint:  #f3faf6;
	--wlc-text:           #111827;
	--wlc-text-muted:     #6b7280;
	--wlc-text-soft:      #9ca3af;
	--wlc-border:         #e5e7eb;
	--wlc-star-empty:     #e5e7eb;
	--wlc-bg:             #ffffff;
	--wlc-card-shadow:    0 4px 14px rgba(17, 24, 39, 0.04);
	--wlc-card-shadow-h:  0 12px 32px rgba(102, 188, 137, 0.18);

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	padding: 32px 0;
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--wlc-text);
	line-height: 1.5;
}

.wellcure-reviews-wrapper *,
.wellcure-reviews-wrapper *::before,
.wellcure-reviews-wrapper *::after {
	box-sizing: border-box;
}

/* --- Marquee row ------------------------------------------------------- */

.wellcure-marquee {
	overflow: hidden;
	position: relative;
	margin-bottom: 22px;
	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 100px,
		#000 calc(100% - 100px),
		transparent 100%
	);
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 100px,
		#000 calc(100% - 100px),
		transparent 100%
	);
}

.wellcure-marquee:last-child {
	margin-bottom: 0;
}

.wellcure-marquee-track {
	display: flex;
	gap: 22px;
	width: max-content;
	padding: 6px 0; /* room for hover lift */
	animation: wellcure-scroll var(--wlc-speed, 60s) linear infinite;
	will-change: transform;
}

.wellcure-marquee-right {
	animation-direction: reverse;
}

/* Pause on hover so users can read a card. */
.wellcure-marquee:hover .wellcure-marquee-track {
	animation-play-state: paused;
}

/* Respect reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
	.wellcure-marquee-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}
	.wellcure-marquee {
		mask-image: none;
		-webkit-mask-image: none;
	}
}

@keyframes wellcure-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* --- Card -------------------------------------------------------------- */

.wellcure-review-card {
	flex: 0 0 360px;
	width: 360px;
	background: var(--wlc-bg);
	border: 1px solid var(--wlc-border);
	border-radius: 18px;
	padding: 26px 24px 20px;
	box-shadow: var(--wlc-card-shadow);
	transition: transform .35s cubic-bezier(.2,.7,.2,1),
				box-shadow .35s ease,
				border-color .35s ease;
	display: flex;
	flex-direction: column;
}

.wellcure-review-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wlc-card-shadow-h);
	border-color: var(--wlc-primary);
}

/* Top star rating */
.wellcure-card-stars {
	margin-bottom: 14px;
}

/* Headline */
.wellcure-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--wlc-text);
	margin: 0 0 12px;
	letter-spacing: -0.01em;
	/* clamp to 2 lines for visual rhythm */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Body */
.wellcure-card-body {
	color: var(--wlc-text-muted);
	font-size: 14.5px;
	line-height: 1.6;
	margin-bottom: 18px;
	min-height: 48px;
}

.wellcure-card-body p {
	margin: 0 0 8px;
}

.wellcure-card-body p:last-child {
	margin-bottom: 0;
}

/* Sub-ratings box */
.wellcure-sub-ratings {
	background: var(--wlc-primary-faint);
	border: 1px solid var(--wlc-primary-soft);
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

.wellcure-sub-rating {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	font-size: 13.5px;
	color: var(--wlc-text);
}

.wellcure-sub-rating + .wellcure-sub-rating {
	border-top: 1px dashed rgba(102, 188, 137, 0.18);
}

.wellcure-sub-label {
	color: #374151;
	font-weight: 500;
}

.wellcure-sub-stars {
	white-space: nowrap;
}

/* Footer */
.wellcure-card-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--wlc-border);
	margin-top: auto;
}

.wellcure-avatar {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wlc-primary) 0%, var(--wlc-primary-dark) 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 6px rgba(102, 188, 137, 0.35);
}

.wellcure-name {
	font-weight: 600;
	color: var(--wlc-text);
	font-size: 14.5px;
	flex: 1;
}

.wellcure-date {
	font-size: 12.5px;
	color: var(--wlc-text-soft);
}

/* --- Stars ------------------------------------------------------------- */

.wellcure-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1;
}

.wellcure-star {
	display: inline-block;
	flex-shrink: 0;
}

.wellcure-star.is-filled {
	fill: var(--wlc-primary);
}

.wellcure-star.is-empty {
	fill: var(--wlc-star-empty);
}

/* Empty state */
.wellcure-no-reviews {
	text-align: center;
	color: var(--wlc-text-muted);
	padding: 40px 20px;
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 600px) {
	.wellcure-review-card {
		flex: 0 0 320px;
		width: 320px;
		padding: 20px 20px 16px;
	}
	.wellcure-card-title {
		font-size: 16.5px;
	}
	.wellcure-sub-rating {
		font-size: 12.5px;
	}
}
