/* Locution Reviews — front-end styles
   Scoped under .lr-widget so it won't collide with your theme. */

.lr-widget {
	--lr-star: #fbbc05;
	--lr-star-off: #d8dadf;
	--lr-text: #1f2733;
	--lr-muted: #667085;
	--lr-border: #e6e8ec;
	--lr-card-bg: #ffffff;
	--lr-radius: 14px;
	--lr-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);

	color: var(--lr-text);
	font-family: inherit;
	line-height: 1.55;
	margin: 1.5rem 0;
	max-width: 100%;
}

/* ---------- Header ---------- */
.lr-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--lr-border);
}
.lr-header__brand {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-weight: 600;
}
.lr-google-g { display: block; }
.lr-header__title { font-size: 1.05rem; }
.lr-header__summary {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
}
.lr-header__rating {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
}
.lr-header__count { color: var(--lr-muted); font-size: .9rem; }
.lr-header__link {
	margin-left: auto;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.lr-header__link:hover { text-decoration: underline; }

/* ---------- Stars ---------- */
.lr-stars { display: inline-flex; line-height: 1; letter-spacing: 1px; }
.lr-star { color: var(--lr-star-off); font-size: 1rem; }
.lr-star--on { color: var(--lr-star); }

/* ---------- Cards ---------- */
.lr-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lr-card {
	background: var(--lr-card-bg);
	border: 1px solid var(--lr-border);
	border-radius: var(--lr-radius);
	box-shadow: var(--lr-shadow);
	padding: 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .6rem;
}
.lr-card__head {
	display: flex;
	align-items: center;
	gap: .7rem;
}
.lr-card__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: #eef0f4;
}
.lr-card__avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #fff;
	background: #3a6ea5;
	font-size: 1.1rem;
	text-transform: uppercase;
}
.lr-card__meta { display: flex; flex-direction: column; min-width: 0; }
.lr-card__author { font-weight: 600; }
.lr-card__sub {
	display: inline-flex;
	gap: .4rem;
	color: var(--lr-muted);
	font-size: .82rem;
}
.lr-card__source::before { content: "· "; }
.lr-card__text {
	margin: 0;
	color: var(--lr-text);
}

/* "View full review" toggle (added by locution-reviews.js) */
.lr-card__toggle {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	font-weight: 600;
	color: #3a6ea5;
	cursor: pointer;
	white-space: nowrap;
}
.lr-card__toggle:hover,
.lr-card__toggle:focus-visible { text-decoration: underline; }

/* ---------- Grid layout (three across, responsive) ---------- */
.lr-layout-grid .lr-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
@media (max-width: 900px) {
	.lr-layout-grid .lr-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.lr-layout-grid .lr-list { grid-template-columns: 1fr; }
}

/* ---------- List layout ---------- */
.lr-layout-list .lr-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 720px;
}

/* ---------- Badge layout (header only) ---------- */
.lr-layout-badge { margin: 1rem 0; }
.lr-layout-badge .lr-header {
	border-bottom: none;
	padding: .9rem 1.1rem;
	margin: 0;
	border: 1px solid var(--lr-border);
	border-radius: var(--lr-radius);
	box-shadow: var(--lr-shadow);
	display: inline-flex;
	width: auto;
}

/* ---------- Admin notice (only visible to logged-in admins) ---------- */
.lr-notice {
	border: 1px dashed #c0c4cc;
	background: #fbfbfc;
	color: #555;
	padding: .75rem 1rem;
	border-radius: 8px;
	font-size: .9rem;
}

/* ---------- Dark background friendliness ---------- */
@media (prefers-color-scheme: dark) {
	.lr-widget.lr-adapt-dark {
		--lr-text: #e7eaf0;
		--lr-muted: #9aa4b2;
		--lr-border: #2b313b;
		--lr-card-bg: #161a20;
		--lr-star-off: #3a4048;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.lr-header__link { margin-left: 0; width: 100%; }
}
