/**
 * Mükemmel — yorum kaydırıcı (yatay, kart)
 * Not: Tema genelinde article { width:100% } gibi kurallar dikey yığılmaya yol açabilir;
 * .reviews-section altında sıfırlanır.
 */

.reviews-section {
	--reviews-slide-w: clamp(260px, 30vw, 340px);
	--reviews-gold: #f4b400;
	--reviews-card-border: #e0e0e0;
	background: #f6f6f6;
	padding: 3.25rem 0 3rem;
	overflow-x: hidden;
	box-sizing: border-box;
}

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

.reviews-section--empty .reviews-section__empty {
	margin: 0;
	padding: 1rem 1.25rem;
	background: #fff8e6;
	border: 1px solid var(--latibule-gold, #b8956a);
	border-radius: 6px;
	font-size: 0.9rem;
}

.reviews-section__head {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2rem;
	padding: 0 1rem;
}

.reviews-section__title {
	margin: 0 0 0.75rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--latibule-text, #1a1a1a);
	text-transform: uppercase;
}

.reviews-section__rating-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
}

.reviews-section__stars-overall {
	position: relative;
	display: inline-block;
	line-height: 1;
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	letter-spacing: 0.06em;
}

.reviews-section__stars-bg {
	color: #e3e3e3;
	display: block;
}

.reviews-section__stars-fill {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--reviews-gold);
	width: var(--latibule-reviews-rating-pct, 100%);
	pointer-events: none;
}

.reviews-section__count {
	margin: 0.15rem 0 0;
	font-size: 0.95rem;
	color: var(--latibule-text-muted, #4a4a4a);
}

.reviews-section__google-brand {
	margin-top: 0.85rem;
	display: flex;
	justify-content: center;
}

.reviews-section__google-logo {
	display: block;
	height: 22px;
	width: auto;
	opacity: 0.95;
}

/* Tam genişlik şerit */
.reviews-section__slider-bleed {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-bottom: 0.35rem;
}

.reviews-section__slider-shell {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(6px, 1.2vw, 12px);
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 clamp(4px, 1.25vw, 14px);
}

.reviews-slider__viewport {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

/* Yatay şerit: asla sarma */
.reviews-section .reviews-slider {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: clamp(0.75rem, 1.8vw, 1.25rem);
	width: 100%;
	max-width: none;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0.5rem 0 1rem;
	outline: none;
}

.reviews-section .reviews-slider::-webkit-scrollbar {
	display: none;
}

/* Slayt: tema article/img kurallarından sıyrıl */
.reviews-section article.reviews-slide {
	display: block;
	margin: 0;
	padding: 0;
	width: var(--reviews-slide-w);
	max-width: var(--reviews-slide-w);
	min-width: 260px;
	flex: 0 0 var(--reviews-slide-w);
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}

.reviews-slider__btn {
	flex: 0 0 auto;
	align-self: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	color: #444;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.reviews-slider__btn:hover {
	background: #fafafa;
	border-color: #ccc;
}

.reviews-slider__btn:focus-visible {
	outline: 2px solid var(--latibule-gold, #b8956a);
	outline-offset: 2px;
}

.reviews-slider__dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	flex-wrap: wrap;
	padding: 0.25rem 1rem 0.5rem;
}

.reviews-slider__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #ccc;
	cursor: pointer;
}

.reviews-slider__dot.is-active {
	background: var(--latibule-gold, #b8956a);
}

/* Kart */
.reviews-card {
	background: #fff;
	border: 1px solid var(--reviews-card-border);
	border-radius: 12px;
	padding: 1.1rem 1.15rem 1rem;
	height: 100%;
	min-height: 240px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
}

.reviews-card__top {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: start;
	gap: 0.65rem;
	margin-bottom: 0.65rem;
}

.reviews-card__avatar-wrap {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.reviews-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: #eee;
}

.reviews-card__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.1rem;
	color: #555;
	background: linear-gradient(145deg, #e8e8e8, #f5f5f5);
}

.reviews-card__meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	text-align: left;
}

.reviews-card__name {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--latibule-text, #1a1a1a);
}

.reviews-card__when {
	font-size: 0.82rem;
	color: #777;
}

.reviews-card__g-icon {
	opacity: 0.95;
	line-height: 0;
	flex-shrink: 0;
}

.reviews-card__rating-row {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.5rem;
	flex-wrap: nowrap;
}

.reviews-card__stars {
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	line-height: 1;
}

.reviews-card__stars .is-on {
	color: var(--reviews-gold);
}

.reviews-card__stars .is-off {
	color: #e8e8e8;
}

.reviews-card__verified {
	display: inline-flex;
	line-height: 0;
	flex-shrink: 0;
}

.reviews-card__text {
	flex: 1 1 auto;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #333;
	text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 0;
}

.reviews-card__text p {
	margin: 0 0 0.4em;
}

.reviews-card__text p:last-child {
	margin-bottom: 0;
}

.reviews-card__more {
	margin-top: auto;
	padding-top: 0.65rem;
	font-size: 0.85rem;
	color: #888;
	text-decoration: none;
	align-self: flex-start;
}

.reviews-card__more:hover {
	color: #555;
	text-decoration: underline;
}

@media (max-width: 900px) {
	.reviews-section {
		--reviews-slide-w: min(300px, calc(100vw - 56px));
	}
}

@media (max-width: 600px) {
	.reviews-slider__btn {
		display: none;
	}

	.reviews-section__slider-shell {
		padding: 0 10px;
	}

	.reviews-section article.reviews-slide {
		min-width: min(300px, calc(100vw - 32px));
		width: min(300px, calc(100vw - 32px));
		max-width: min(300px, calc(100vw - 32px));
		flex: 0 0 min(300px, calc(100vw - 32px));
	}
}
