/* ============================================================
   Creator Reviews Carousel — Public Styles
   Author: Aqdas Rehman  |  Version: 1.0.0
   ============================================================ */

/* ---------- Reset ---------- */
.crc-section *,
.crc-section *::before,
.crc-section *::after { box-sizing: border-box; }

/* ---------- Section — transparent, no background ---------- */
.crc-section {
	--crc-accent:    #000435;
	--crc-dot-color: #000435;
	--crc-card-bg:   #ffffff;
	--crc-text:      #1a1a1a;
	--crc-radius:    16px;
	--crc-shadow:    0 4px 32px rgba(0,0,0,.08);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--crc-text);
	background: transparent !important;
	background-color: transparent !important;
	padding: 56px 24px 40px;
	overflow: hidden;
}

/* ---------- Section Header ---------- */
.crc-section-header {
	text-align: center;
	margin-bottom: 48px;
}

.crc-eyebrow {
	display: inline-block;
	font-size: 11px;
	letter-spacing: .18em;
	font-weight: 600;
	color: var(--crc-accent);
	text-transform: uppercase;
	margin-bottom: 14px;
	position: relative;
}

.crc-eyebrow::before,
.crc-eyebrow::after {
	content: '';
	display: inline-block;
	vertical-align: middle;
	width: 28px;
	height: 1px;
	background: var(--crc-accent);
	margin: 0 10px;
}

.crc-section-title {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.1;
	color: #1a1a1a;
	margin: 0 0 16px;
}

.crc-section-desc {
	font-size: 16px;
	color: #6b7280;
	margin: 0 auto;
	max-width: 520px;
	line-height: 1.65;
}

/* ---------- Carousel Wrapper — no arrows, full width ---------- */
.crc-carousel-wrapper {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
}

.crc-track-container {
	overflow: hidden;
}

.crc-track {
	display: flex;
	transition: transform .48s cubic-bezier(.25,.46,.45,.94);
	will-change: transform;
	align-items: stretch;
}

/* ---------- Slide ---------- */
.crc-slide {
	flex: 0 0 calc(100% / var(--crc-per, 3));
	padding: 16px 12px;
	transition: transform .4s ease, opacity .4s ease;
}

/* ---------- Card — clean white, no border ---------- */
.crc-card {
	background: var(--crc-card-bg);
	border-radius: var(--crc-radius);
	box-shadow: var(--crc-shadow);
	border: none;
	outline: none;
	padding: 36px 24px 32px;
	text-align: center;
	position: relative;
	transition: transform .3s ease, box-shadow .3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	height: 100%;
}

.crc-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 48px rgba(0,0,0,.13);
}

/* ---------- Avatar ---------- */
.crc-avatar-wrap {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
}

/* Avatar ring — clean neutral border, no gradient */
.crc-avatar--gradient {
	padding: 3px;
	background: #e5e7eb;
	border-radius: 50%;
}

.crc-avatar--gradient .crc-avatar-img {
	border: 3px solid #fff;
}

.crc-avatar-img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	overflow: hidden;
}

.crc-avatar--gradient .crc-avatar-img {
	width: 82px;
	height: 82px;
}

.crc-avatar-placeholder {
	width: 82px;
	height: 82px;
	border-radius: 50%;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.crc-avatar-placeholder svg {
	width: 38px;
	height: 38px;
	fill: #9ca3af;
}

/* ---------- Identity ---------- */
.crc-identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.crc-name-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex-wrap: wrap;
}

.crc-reviewer-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--crc-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	transition: color .2s;
	line-height: 1.2;
}

a.crc-reviewer-name:hover { color: var(--crc-accent); }

/* Verified tick — blue circle with white checkmark, properly aligned */
.crc-verified {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
	vertical-align: middle;
}

.crc-verified svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* Social icon */
.crc-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #6b7280;
	text-decoration: none;
	transition: color .2s;
	flex-shrink: 0;
	vertical-align: middle;
}

.crc-social-icon:hover { color: var(--crc-accent); }

.crc-social-icon svg {
	width: 18px;
	height: 18px;
}

.crc-custom-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.crc-username {
	font-size: 13px;
	color: #9ca3af;
	font-weight: 400;
}

/* ---------- Sponsored Badge ---------- */
.crc-collab-badge {
	display: inline-block;
	background: #f9f5ee;
	color: #000435;
	border: 1px solid #e8d9c0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .01em;
	padding: 4px 14px;
	border-radius: 100px;
}

/* ---------- Stars ---------- */
.crc-stars {
	display: flex;
	gap: 1px;
	justify-content: center;
}

.crc-star {
	font-size: 19px;
	line-height: 1;
}

.crc-star--filled { color: #f5c842; }
.crc-star--empty  { color: #e5e7eb; }

/* ---------- Review Text ---------- */
.crc-review-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--crc-text);
	margin: 4px 0 0;
	line-height: 1.4;
}

.crc-review-text {
	font-size: 13.5px;
	line-height: 1.75;
	color: #555;
	margin: 0;
	font-style: italic;
}

.crc-review-text::before { content: '\201C'; }
.crc-review-text::after  { content: '\201D'; }

/* ---------- Dots only (no arrows) ---------- */
.crc-dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 28px;
}

.crc-dot {
	width: 10px !important;
	height: 10px !important;
	min-width: 10px !important;
	min-height: 10px !important;
	max-width: 10px !important;
	max-height: 10px !important;
	border-radius: 50% !important;
	background: #d1d5db !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	display: inline-block !important;
	flex-shrink: 0 !important;
	box-sizing: content-box !important;
	transition: background .25s, transform .25s;
}

.crc-dot.crc-dot--active {
	background: var(--crc-dot-color) !important;
	transform: scale(1.3);
}

/* ---------- No Reviews ---------- */
.crc-no-reviews {
	text-align: center;
	color: #9ca3af;
	padding: 40px;
	font-size: 15px;
}

/* ---------- Responsive — Tablet (≤1024px) ---------- */
@media ( max-width: 1024px ) {
	.crc-slide { flex: 0 0 calc(100% / var(--crc-per-tablet, 2)); }

	.crc-section {
		padding: 44px 20px 36px;
	}

	.crc-section-title {
		font-size: clamp(24px, 3.5vw, 38px);
	}

	.crc-card {
		padding: 32px 20px 28px;
	}
}

/* ---------- Responsive — Mobile (≤640px) ---------- */
@media ( max-width: 640px ) {

	/* Section */
	.crc-section {
		padding: 32px 16px 28px;
		overflow-x: hidden;
	}

	/* Header */
	.crc-section-header {
		margin-bottom: 28px;
	}

	.crc-eyebrow {
		font-size: 10px;
		letter-spacing: .14em;
	}

	.crc-eyebrow::before,
	.crc-eyebrow::after {
		width: 18px;
		margin: 0 7px;
	}

	.crc-section-title {
		font-size: clamp(22px, 6vw, 30px);
		letter-spacing: -.01em;
		margin: 0 0 10px;
	}

	.crc-section-desc {
		font-size: 14px;
		line-height: 1.6;
	}

	/* Slide — full width on mobile */
	.crc-slide {
		flex: 0 0 calc(100% / var(--crc-per-mobile, 1));
		padding: 10px 8px;
	}

	/* Card */
	.crc-card {
		padding: 24px 18px 22px;
		gap: 8px;
		border-radius: 14px;
		/* Disable hover lift on touch devices */
		transform: none !important;
	}

	.crc-card:hover {
		transform: none;
		box-shadow: var(--crc-shadow);
	}

	/* Avatar — slightly smaller on mobile */
	.crc-avatar-wrap {
		width: 72px;
		height: 72px;
	}

	.crc-avatar-img {
		width: 72px;
		height: 72px;
	}

	.crc-avatar--gradient .crc-avatar-img {
		width: 66px;
		height: 66px;
	}

	.crc-avatar-placeholder {
		width: 66px;
		height: 66px;
	}

	/* Identity */
	.crc-reviewer-name {
		font-size: 15px;
	}

	.crc-username {
		font-size: 12px;
	}

	.crc-verified svg {
		width: 16px;
		height: 16px;
	}

	.crc-social-icon {
		width: 28px;   /* larger touch target */
		height: 28px;
	}

	/* Badge */
	.crc-collab-badge {
		font-size: 10px;
		padding: 4px 12px;
	}

	/* Stars */
	.crc-star {
		font-size: 17px;
	}

	/* Review text */
	.crc-review-title {
		font-size: 13px;
	}

	.crc-review-text {
		font-size: 13px;
		line-height: 1.7;
	}

	/* Dots — larger touch targets */
	.crc-dots {
		gap: 10px;
		margin-top: 20px;
		padding: 8px 0;  /* extra padding for touch */
	}

	.crc-dot {
		width: 12px;
		height: 12px;
		/* Invisible padding for 44px minimum touch target */
		padding: 10px;
		background-clip: content-box;
		-webkit-background-clip: content-box;
	}

	.crc-dot.crc-dot--active {
		width: 12px;
		background-clip: content-box;
		-webkit-background-clip: content-box;
	}
}

/* ---------- Responsive — Small mobile (≤380px) ---------- */
@media ( max-width: 380px ) {
	.crc-section {
		padding: 24px 12px 20px;
	}

	.crc-card {
		padding: 20px 14px 18px;
	}

	.crc-section-title {
		font-size: 20px;
	}
}

/* ---------- Reduced Motion ---------- */
@media ( prefers-reduced-motion: reduce ) {
	.crc-track, .crc-card, .crc-slide { transition: none !important; }
}

/* ---------- Touch device — disable hover effects ---------- */
@media ( hover: none ) and ( pointer: coarse ) {
	.crc-card:hover {
		transform: none;
		box-shadow: var(--crc-shadow);
	}

	.crc-track-container {
		-webkit-overflow-scrolling: touch;
		cursor: grab;
	}
}
