/**
 * Mobilize Google Reviews — matches Laravel home reviews section.
 */

.mgr-reviews {
	--mgr-brand-300: #d3a8e3;
	--mgr-brand-600: #7e338f;
	--mgr-brand-700: #5e1375;
	--mgr-surface: #ffffff;
	--mgr-surface-soft: #faf9fc;
	--mgr-text: #14101a;
	--mgr-secondary: #6b6575;
	--mgr-border: #e4e0eb;
	--mgr-glow: rgba(94, 19, 117, 0.18);
	--mgr-star: #fbbf24;
	--mgr-avatar-bg: rgba(94, 19, 117, 0.1);
	--mgr-avatar-color: #5e1375;
	--mgr-cta-text: #ffffff;
	--mgr-badge-bg: #ffffff;
	--mgr-card-shadow: 0 20px 40px -20px rgba(20, 16, 26, 0.18);
	--mgr-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
	--mgr-accent-font: "Caveat", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

	color: var(--mgr-text);
	font-family: var(--mgr-font);
	-webkit-font-smoothing: antialiased;
}

/* Explicit dark theme */
.mgr-reviews--dark {
	--mgr-brand-300: #d3a8e3;
	--mgr-brand-600: #b875cf;
	--mgr-brand-700: #d3a8e3;
	--mgr-surface: #121018;
	--mgr-surface-soft: #18141f;
	--mgr-text: #f4f1f8;
	--mgr-secondary: #a39aaf;
	--mgr-border: #2a2433;
	--mgr-glow: rgba(94, 19, 117, 0.45);
	--mgr-avatar-bg: rgba(211, 168, 227, 0.14);
	--mgr-avatar-color: #d3a8e3;
	--mgr-cta-text: #14101a;
	--mgr-badge-bg: rgba(255, 255, 255, 0.95);
	--mgr-card-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
}

/* Auto: follow system / parent dark class */
@media (prefers-color-scheme: dark) {
	.mgr-reviews--auto {
		--mgr-brand-300: #d3a8e3;
		--mgr-brand-600: #b875cf;
		--mgr-brand-700: #d3a8e3;
		--mgr-surface: #121018;
		--mgr-surface-soft: #18141f;
		--mgr-text: #f4f1f8;
		--mgr-secondary: #a39aaf;
		--mgr-border: #2a2433;
		--mgr-glow: rgba(94, 19, 117, 0.45);
		--mgr-avatar-bg: rgba(211, 168, 227, 0.14);
		--mgr-avatar-color: #d3a8e3;
		--mgr-cta-text: #14101a;
		--mgr-badge-bg: rgba(255, 255, 255, 0.95);
		--mgr-card-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
	}
}

html.dark .mgr-reviews--auto,
.dark .mgr-reviews--auto,
.theme-dark .mgr-reviews--auto,
.elementor-kit-dark .mgr-reviews--auto {
	--mgr-brand-300: #d3a8e3;
	--mgr-brand-600: #b875cf;
	--mgr-brand-700: #d3a8e3;
	--mgr-surface: #121018;
	--mgr-surface-soft: #18141f;
	--mgr-text: #f4f1f8;
	--mgr-secondary: #a39aaf;
	--mgr-border: #2a2433;
	--mgr-glow: rgba(94, 19, 117, 0.45);
	--mgr-avatar-bg: rgba(211, 168, 227, 0.14);
	--mgr-avatar-color: #d3a8e3;
	--mgr-cta-text: #14101a;
	--mgr-badge-bg: rgba(255, 255, 255, 0.95);
	--mgr-card-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
}

.mgr-reviews__container {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding: 0;
}

.mgr-reviews__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.mgr-reviews__eyebrow {
	margin: 0 0 0.25rem;
	font-family: var(--mgr-accent-font);
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--mgr-brand-700);
}

.mgr-reviews__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: var(--mgr-text);
}

@media (min-width: 640px) {
	.mgr-reviews__title {
		font-size: 1.875rem;
	}
}

.mgr-reviews__subtitle {
	margin: 0.5rem 0 0;
	max-width: 28rem;
	color: var(--mgr-secondary);
	font-size: 1rem;
	line-height: 1.5;
}

.mgr-reviews__see-all {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--mgr-brand-700);
	text-decoration: none;
	transform: none;
	transition: color 0.2s ease;
}

.mgr-reviews__see-all:hover {
	color: var(--mgr-brand-600);
	transform: none;
}

.mgr-reviews__see-all .mgr-arrow {
	width: 1rem;
	height: 1rem;
}

.mgr-reviews__summary {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	padding: 1.5rem;
	border: 1px solid var(--mgr-border);
	border-radius: 1.5rem;
	background: var(--mgr-surface);
}

@media (min-width: 640px) {
	.mgr-reviews__summary {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 2rem;
	}
}

.mgr-reviews__summary-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.mgr-reviews__google-badge {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	background: var(--mgr-badge-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.mgr-reviews__google-badge .mgr-google-icon {
	width: 2rem;
	height: 2rem;
}

.mgr-reviews__rating-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.mgr-reviews__rating-value {
	font-size: 1.875rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1;
	color: var(--mgr-text);
}

.mgr-reviews__rating-meta {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: var(--mgr-secondary);
}

.mgr-reviews__rating-meta span {
	font-weight: 600;
	color: var(--mgr-brand-700);
}

.mgr-reviews__cta {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	background: var(--mgr-brand-700);
	color: var(--mgr-cta-text);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 10px 30px -12px var(--mgr-glow);
	transform: none;
	transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.mgr-reviews__cta:hover {
	background: var(--mgr-brand-600);
	transform: none;
	box-shadow: 0 14px 36px -10px var(--mgr-glow);
	color: var(--mgr-cta-text);
}

.mgr-reviews__cta .mgr-arrow {
	width: 1rem;
	height: 1rem;
}

.mgr-reviews__grid {
	display: grid;
	gap: 1rem;
	align-items: stretch;
}

@media (min-width: 640px) {
	.mgr-reviews__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.mgr-reviews__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.mgr-reviews__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--mgr-border);
	border-radius: 1rem;
	background: var(--mgr-surface);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.mgr-reviews__card:hover {
	transform: translateY(-0.25rem);
	box-shadow: var(--mgr-card-shadow);
}

.mgr-reviews__card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.mgr-reviews__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.mgr-reviews__avatar {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background: var(--mgr-avatar-bg);
	color: var(--mgr-avatar-color);
	font-size: 0.875rem;
	font-weight: 700;
}

.mgr-reviews__avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mgr-reviews__avatar-initials {
	line-height: 1;
}

.mgr-reviews__name {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--mgr-text);
}

.mgr-reviews__date {
	margin: 0;
	font-size: 0.75rem;
	color: var(--mgr-secondary);
}

.mgr-reviews__card-top .mgr-google-icon {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
}

.mgr-reviews__stars {
	display: flex;
	align-items: center;
	gap: 0.125rem;
	color: var(--mgr-star);
}

.mgr-reviews__stars--lg svg {
	width: 1.25rem;
	height: 1.25rem;
}

.mgr-reviews__stars--sm {
	margin-bottom: 0.75rem;
}

.mgr-reviews__stars--sm svg {
	width: 0.875rem;
	height: 0.875rem;
}

.mgr-reviews__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	min-height: 0;
	text-align: left;
}

.mgr-reviews__text {
	margin: 0;
	width: 100%;
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--mgr-secondary);
}

.mgr-reviews__text.is-collapsed {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--mgr-clamp-lines, 4);
	line-clamp: var(--mgr-clamp-lines, 4);
}

.mgr-reviews__toggle,
.mgr-reviews__toggle:hover,
.mgr-reviews__toggle:focus,
.mgr-reviews__toggle:focus-visible,
.mgr-reviews__toggle:active {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	align-self: flex-start !important;
	width: auto !important;
	max-width: max-content;
	margin-top: auto !important;
	margin-right: auto !important;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	color: var(--mgr-brand-700) !important;
	font: inherit;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer;
	transform: none !important;
	transition: color 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.mgr-reviews__toggle:hover,
.mgr-reviews__toggle:focus,
.mgr-reviews__toggle:focus-visible {
	color: var(--mgr-brand-600) !important;
	background: transparent !important;
	transform: none !important;
}

.mgr-reviews__toggle[hidden] {
	display: none !important;
}

.mgr-reviews__notice {
	padding: 1rem 1.25rem;
	border: 1px solid var(--mgr-border);
	border-radius: 1rem;
	background: var(--mgr-surface-soft);
	color: var(--mgr-secondary);
	font-size: 0.875rem;
}
