/**
 * Mutlu Müşteriler - Customer Review Slider
 * Ön yüz stil dosyası
 *
 * Tasarım dili: Mavi-beyaz kurumsal, modern, premium, yüksek dönüşüm odaklı.
 * Tüm renkler WPBakery panelinden CSS değişkenleri (custom properties)
 * üzerinden özelleştirilebilir; buradaki tonlar varsayılan/fallback değerlerdir.
 */

.crs-review-slider-section {
	/* Varsayılan (fallback) tasarım değişkenleri */
	--crs-bg-color: #f5f9ff;
	--crs-card-color: #ffffff;
	--crs-title-color: #0b2447;
	--crs-star-color: #ffb400;
	--crs-font-family: inherit;
	--crs-radius: 16px;
	--crs-space-between: 24px;
	--crs-card-height: auto;
	--crs-accent: #1a56db;
	--crs-accent-light: #e8f0fe;
	--crs-text-muted: #5b6b82;

	box-sizing: border-box;
	background-color: var(--crs-bg-color);
	font-family: var(--crs-font-family);
	overflow: hidden;
	position: relative;
}

.crs-review-slider-section *,
.crs-review-slider-section *::before,
.crs-review-slider-section *::after {
	box-sizing: border-box;
}

.crs-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
}

/* ------------------------------------------------------------------ */
/* ÜST ALAN: Başlık, alt başlık, ortalama puan özeti                   */
/* ------------------------------------------------------------------ */
.crs-header {
	text-align: center;
	margin-bottom: 44px;
}

.crs-title {
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 800;
	color: var(--crs-title-color);
	margin: 0 0 12px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.crs-subtitle {
	font-size: 16px;
	color: var(--crs-text-muted);
	max-width: 620px;
	margin: 0 auto 20px;
	line-height: 1.6;
}

.crs-rating-summary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	background: var(--crs-accent-light);
	border: 1px solid rgba(26, 86, 219, 0.15);
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--crs-title-color);
}

.crs-summary-stars {
	display: inline-flex;
	gap: 2px;
	font-size: 16px;
	line-height: 1;
}

.crs-summary-divider {
	color: rgba(11, 36, 71, 0.25);
}

.crs-summary-average,
.crs-summary-count {
	white-space: nowrap;
}

/* Yıldız renklendirme */
.crs-star {
	color: var(--crs-star-color);
	line-height: 1;
}
.crs-star-empty {
	color: rgba(0, 0, 0, 0.15);
}
.crs-star-half {
	background: linear-gradient(90deg, var(--crs-star-color) 50%, rgba(0, 0, 0, 0.15) 50%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* ------------------------------------------------------------------ */
/* SLIDER ÇERÇEVESİ                                                     */
/* ------------------------------------------------------------------ */
.crs-slider-wrapper {
	position: relative;
	padding: 0 8px;
}

.crs-swiper {
	overflow: hidden;
	padding: 8px 4px 48px;
}

.swiper-wrapper {
	align-items: stretch;
}

/* ------------------------------------------------------------------ */
/* YORUM KARTLARI                                                       */
/* ------------------------------------------------------------------ */
.crs-card {
	background: var(--crs-card-color);
	border-radius: var(--crs-radius);
	height: var(--crs-card-height);
	min-height: 100%;
	padding: 28px;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(11, 36, 71, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	position: relative;
}

.crs-card:hover {
	transform: translateY(-6px) scale(1.015);
	border-color: rgba(26, 86, 219, 0.25);
}

/* Gölge varyantları (WPBakery ayarından gelir) */
.crs-shadow-light {
	box-shadow: 0 4px 14px rgba(11, 36, 71, 0.06);
}
.crs-shadow-light:hover {
	box-shadow: 0 10px 26px rgba(11, 36, 71, 0.12);
}
.crs-shadow-medium {
	box-shadow: 0 8px 24px rgba(11, 36, 71, 0.08);
}
.crs-shadow-medium:hover {
	box-shadow: 0 18px 38px rgba(26, 86, 219, 0.16);
}
.crs-shadow-strong {
	box-shadow: 0 14px 34px rgba(11, 36, 71, 0.14);
}
.crs-shadow-strong:hover {
	box-shadow: 0 24px 48px rgba(26, 86, 219, 0.22);
}

.crs-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.crs-card-stars {
	display: inline-flex;
	gap: 2px;
	font-size: 15px;
}

.crs-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(22, 163, 74, 0.1);
	color: #16a34a;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 999px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.crs-card-content {
	color: #2c3a4f;
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 20px;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.crs-card-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid rgba(11, 36, 71, 0.08);
	margin-top: auto;
}

.crs-card-product-thumb {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	overflow: hidden;
	display: block;
	border: 1px solid rgba(11, 36, 71, 0.08);
}

.crs-card-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.crs-card-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.crs-card-author {
	font-weight: 700;
	font-size: 14px;
	color: var(--crs-title-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crs-card-product-name {
	font-size: 12.5px;
	color: var(--crs-accent);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crs-card-product-name:hover {
	text-decoration: underline;
}

.crs-card-date {
	font-size: 11.5px;
	color: var(--crs-text-muted);
}

/* ------------------------------------------------------------------ */
/* OKLAR (ARROWS)                                                       */
/* ------------------------------------------------------------------ */
.crs-arrow {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(11, 36, 71, 0.1);
	box-shadow: 0 6px 18px rgba(11, 36, 71, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--crs-accent);
	cursor: pointer;
	z-index: 10;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.crs-arrow:hover {
	background: var(--crs-accent);
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(26, 86, 219, 0.28);
}

.crs-arrow-prev {
	left: -6px;
}

.crs-arrow-next {
	right: -6px;
}

.crs-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* PAGINATION (NOKTALAR)                                                */
/* ------------------------------------------------------------------ */
.crs-pagination {
	bottom: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.crs-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: rgba(11, 36, 71, 0.2);
	opacity: 1;
	border-radius: 999px;
	transition: width 0.25s ease, background 0.25s ease;
}

.crs-pagination .swiper-pagination-bullet-active {
	width: 24px;
	background: var(--crs-accent);
}

/* ------------------------------------------------------------------ */
/* YÜKLENİYOR DURUMU (AJAX)                                             */
/* ------------------------------------------------------------------ */
.crs-loading-placeholder {
	display: flex;
	gap: var(--crs-space-between, 24px);
	padding: 20px 0 60px;
	overflow: hidden;
}

.crs-skeleton-card {
	flex: 1 0 260px;
	height: 280px;
	border-radius: var(--crs-radius, 16px);
	background: linear-gradient(90deg, #eef3fb 25%, #f7fafe 37%, #eef3fb 63%);
	background-size: 400% 100%;
	animation: crs-skeleton-loading 1.4s ease infinite;
}

@keyframes crs-skeleton-loading {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE DÜZENLEMELER                                              */
/* ------------------------------------------------------------------ */
@media (max-width: 782px) {
	.crs-header {
		margin-bottom: 30px;
	}
	.crs-card {
		padding: 22px;
	}
	.crs-arrow {
		width: 38px;
		height: 38px;
	}
	.crs-arrow-prev {
		left: 2px;
	}
	.crs-arrow-next {
		right: 2px;
	}
}

@media (max-width: 480px) {
	.crs-rating-summary {
		font-size: 12.5px;
		padding: 8px 16px;
	}
	.crs-card-content {
		font-size: 14px;
	}
}
