/* ==========================================================================
   Reviews Carousel (.sentio-rc)
   ==========================================================================
   Extracted from frontend.css during the Batch 8 mechanical extraction
   (2026-04-18). Behavior-preserving.
   Uses Swiper (vendor: swiper + e-swiper). PHP render() emits schema.org
   JSON-LD Review/AggregateRating metadata — documented exception preserved
   verbatim in PHP. Pre-existing backlog entries (date picker, timezone bug,
   half-star alignment, sitewide star audit) preserved as-is.
   ========================================================================== */

.sentio-rc {
	position: relative;
}

.sentio-rc__swiper {
	overflow: hidden;
}

.sentio-rc__slide {
	display: flex;
	flex-direction: column;
	padding: 24px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	box-sizing: border-box;
	height: auto;
}

.swiper-slide.sentio-rc__slide {
	height: auto;
}

/* Header: avatar + meta + source */
.sentio-rc__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.sentio-rc__avatar {
	flex-shrink: 0;
}

.sentio-rc__avatar img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

/* Differentiator #6: Avatar Initials Fallback */
.sentio-rc__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #6EC1E4;
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	user-select: none;
}

.sentio-rc__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.sentio-rc__name {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
}

.sentio-rc__title {
	font-size: 13px;
	color: #999;
	line-height: 1.3;
}

/* Differentiator #1: Source Platform Badge */
.sentio-rc__source {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
	margin-left: auto;
}

.sentio-rc__source svg {
	width: 1em;
	height: 1em;
}

.sentio-rc__source--google { color: #4285F4; }
.sentio-rc__source--yelp { color: #D32323; }
.sentio-rc__source--facebook { color: #1877F2; }
.sentio-rc__source--trustpilot { color: #00B67A; }

/* Rating — stars */
.sentio-rc__rating {
	margin-bottom: 10px;
}

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

/* SVG-gradient star rendering (migrated 2026-04-21 from Unicode-overlay
   pattern — see reviews-carousel.php render_stars() comment for context).
   `--filled` and `--half` inherit the currentColor amber via the
   `color` property; `--half` additionally uses a linearGradient stop at
   50% blending currentColor with #E0E0E0. `--empty` renders a fully-gray
   star via the SVG's own fill attribute — no currentColor dependency. */
.sentio-rc__star {
	display: inline-block;
	flex-shrink: 0;
}

.sentio-rc__star--filled,
.sentio-rc__star--half {
	color: #F5A623;
}

/* Review text */
.sentio-rc__text {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 12px;
	flex: 1;
}

/* Differentiator #4: Pros & Cons */
.sentio-rc__proscons {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 13px;
}

.sentio-rc__pros,
.sentio-rc__cons {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.sentio-rc__pros { color: #2E7D32; }
.sentio-rc__cons { color: #C62828; }

.sentio-rc__pc-icon {
	flex-shrink: 0;
	font-weight: 700;
}

/* Footer: verified + date + helpful */
.sentio-rc__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
	font-size: 12px;
}

/* Differentiator #2: Verified Badge */
.sentio-rc__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	background-color: #E8F5E9;
	color: #2E7D32;
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	white-space: nowrap;
}

/* Differentiator #3: Date */
.sentio-rc__date {
	color: #999;
	font-size: 12px;
}

/* Differentiator #5: Helpful Count */
.sentio-rc__helpful {
	color: #666;
	font-size: 12px;
	margin-left: auto;
}

/* Differentiator #7: Aggregate Rating Header */
.sentio-rc__aggregate {
	display: flex;
	gap: 30px;
	padding: 20px 24px;
	margin-bottom: 20px;
	border-radius: 8px;
	background: #FAFAFA;
	align-items: center;
}

.sentio-rc__agg-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 120px;
}

.sentio-rc__agg-score {
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 6px;
}

.sentio-rc__agg-stars {
	margin-bottom: 6px;
}

.sentio-rc__agg-count {
	font-size: 13px;
	color: #999;
	text-align: center;
}

.sentio-rc__agg-right {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sentio-rc__agg-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sentio-rc__agg-label {
	font-size: 13px;
	font-weight: 600;
	min-width: 36px;
	text-align: right;
	white-space: nowrap;
}

.sentio-rc__agg-bar-track {
	flex: 1;
	height: 8px;
	background-color: #E0E0E0;
	border-radius: 4px;
	overflow: hidden;
}

.sentio-rc__agg-bar-fill {
	height: 100%;
	background-color: #F5A623;
	border-radius: 4px;
	transition: width 0.6s ease;
}

.sentio-rc__agg-pct {
	font-size: 12px;
	color: #999;
	min-width: 36px;
}

/* Navigation */
.sentio-rc__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: rgba(255,255,255,0.9);
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	color: #333;
	transition: background-color 0.3s, color 0.3s;
	padding: 0;
	line-height: 1;
}

.sentio-rc__arrow:hover {
	background: #fff;
	color: #000;
}

.sentio-rc__arrow--prev { left: -18px; }
.sentio-rc__arrow--next { right: -18px; }

.sentio-rc__arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.sentio-rc__dots {
	text-align: center;
	margin-top: 16px;
}

.sentio-rc__dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 4px;
	opacity: 0.4;
	transition: opacity 0.3s;
}

.sentio-rc__dots .swiper-pagination-bullet-active {
	opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
	.sentio-rc__aggregate {
		flex-direction: column;
		gap: 16px;
	}
	.sentio-rc__arrow { display: none; }
}

