/**
 * Testimonials_Widget styles
 *
 * Ported from the concept-1 prototype reviews section
 * (.rating-badge / .review-card / .review-stars / .review-author).
 * Colours reference the theme design tokens with hard-coded fallbacks so
 * the widget still renders correctly if the theme token sheet is absent.
 * The token defaults here are what cleared Style controls fall back to
 * (Req 3.7).
 *
 * @package Rhino_Boxing_Widgets
 */

.rhino-testimonials {
	width: 100%;
}

.rhino-testimonials__head {
	text-align: center;
	margin-bottom: 24px;
}

.rhino-testimonials__head .rhino-heading {
	font-family: var(--font-display, 'Anton', sans-serif);
	text-transform: uppercase;
	color: var(--text, #FFFFFF);
	margin: 0;
}

/* === Aggregate rating badge (Req 9.5) === */
.rhino-testimonials__badge-wrap {
	text-align: center;
	margin: 0 auto 40px;
}

.rhino-testimonials .rating-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--atmo2, #141414);
	border: 1px solid var(--border, #2A2A2A);
	border-radius: var(--radius-pill, 9999px);
	padding: 10px 22px;
}

.rhino-testimonials .rating-badge .big {
	font-family: var(--font-display, 'Anton', sans-serif);
	font-size: 28px;
	color: var(--brand, #E59744);
	line-height: 1;
}

.rhino-testimonials .rating-badge .stars {
	color: var(--brand-amber, #EF9300);
	font-size: 13px;
}

.rhino-testimonials__badge-meta {
	color: var(--placeholder, #B8B8B8);
	font-size: 12px;
}

/* === Review card grid === */
.rhino-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.rhino-testimonials .review-card {
	background: var(--atmo2, #141414);
	border: 1px solid var(--border, #2A2A2A);
	border-left: 3px solid var(--brand, #E59744);
	border-radius: var(--radius-lg, 12px);
	padding: 28px;
}

.rhino-testimonials .review-stars {
	color: var(--brand-amber, #EF9300);
	margin-bottom: 14px;
	font-size: 14px;
}

.rhino-testimonials .review-card p {
	font-style: italic;
	color: #D8D8D8;
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.7;
}

/* === Author row === */
.rhino-testimonials .review-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rhino-testimonials .review-author .avatar {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-full, 50%);
	overflow: hidden;
	flex-shrink: 0;
}

.rhino-testimonials .review-author .avatar--initial {
	background: var(--brand, #E59744);
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display, 'Anton', sans-serif);
	font-size: 18px;
}

.rhino-testimonials .review-author .avatar--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rhino-testimonials .review-author .ra-name {
	font-weight: 700;
	font-size: 15px;
	color: var(--text, #FFFFFF);
}

.rhino-testimonials .review-author .ra-src {
	font-size: 12px;
	color: var(--placeholder, #B8B8B8);
}

/* === Empty state (Req 9.6) === */
.rhino-testimonials__empty {
	text-align: center;
	color: var(--placeholder, #B8B8B8);
	font-size: 16px;
	padding: 32px 0;
}

/* === Light "cream" section variant === */
.rhino-testimonials.is-cream .review-card,
.section-cream .rhino-testimonials .review-card {
	background: #fff;
}

.rhino-testimonials.is-cream .review-card p,
.section-cream .rhino-testimonials .review-card p {
	color: #3A3A3A;
}

.rhino-testimonials.is-cream .review-author .ra-name,
.section-cream .rhino-testimonials .review-author .ra-name {
	color: #000;
}

/* Heading + aggregate badge must flip to the dark-on-cream treatment too.
   These need the .section-cream prefix to out-specify the widget's own
   white-text / dark-surface defaults when placed in a cream relief band. */
.section-cream .rhino-testimonials__head .rhino-heading {
	color: #000;
}

.section-cream .rhino-testimonials .rating-badge {
	background: #fff;
	border-color: #E5DED4;
}

.section-cream .rhino-testimonials__badge-meta {
	color: #6D6D6D;
}

/* === Responsive === */
@media (max-width: 1023px) {
	.rhino-testimonials__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.rhino-testimonials__grid {
		grid-template-columns: 1fr;
	}
}

/* === Section container + vertical rhythm ===
   Constrain to the concept-1 container width and add section padding so the
   widget does not bleed edge-to-edge inside a full-width Elementor section. */
.rhino-testimonials {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding: 80px 24px;
	box-sizing: border-box;
	max-width: min(1280px, 100vw);
}
@media (max-width: 767px) {
	.rhino-testimonials { padding: 40px 12px; overflow: hidden; }
	.rhino-testimonials__grid { gap: 10px; overflow: hidden; }
	.rhino-testimonials .review-card {
		padding: 14px 12px;
		overflow: hidden;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	.rhino-testimonials .review-card p {
		font-size: 13px;
		line-height: 1.45;
		margin-bottom: 10px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	.rhino-testimonials .review-stars { margin-bottom: 8px; font-size: 12px; }
	.rhino-testimonials .review-author { gap: 8px; }
	.rhino-testimonials .review-author .avatar { width: 28px; height: 28px; font-size: 12px; }
	.rhino-testimonials .review-author .ra-name { font-size: 12px; }
	.rhino-testimonials .review-author .ra-src { font-size: 10px; }
	.rhino-testimonials__head .rhino-heading { font-size: clamp(22px, 5.5vw, 28px); margin-bottom: 0; }
	.rhino-testimonials__head { margin-bottom: 16px; }
	.rhino-testimonials .rating-badge { padding: 6px 14px; }
	.rhino-testimonials .rating-badge .big { font-size: 20px; }
	.rhino-testimonials .rating-badge .stars { font-size: 11px; }
	.rhino-testimonials__badge-wrap { margin-bottom: 16px; }
}
