/**
 * GRZ Reviews Suite — public reviews archive ("hub") page.
 *
 * Approved reference design: ONE flat bordered container per area with
 * square corners and blue-tinted edges, dense 10–11px type, 2-column flat
 * review rows, bold-blue text tabs (no underline), tiny helpful pills and
 * a compact blue-tinted store-reply box. No shadows, no nested sections.
 * Colors come from the GRZ Gaming theme tokens with safe fallbacks.
 */

.grz-hub {
	font-family: var(--grz-font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	color: var(--grz-ink, #111827);
	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 0 48px;
	font-size: 13px;
	line-height: 1.55;

	/* Local aliases — the reference's primary-alpha tints. */
	--grz-hub-blue: var(--grz-blue, #0868f2);
	--grz-hub-blue-dark: var(--grz-blue-dark, #064ec4);
	--grz-hub-blue-border: rgba(8, 104, 242, 0.15);
	--grz-hub-blue-bg: rgba(8, 104, 242, 0.05);
	--grz-hub-blue-track: rgba(8, 104, 242, 0.10);
	--grz-hub-blue-divider: rgba(8, 104, 242, 0.20);
	--grz-hub-blue-masthead: rgba(8, 104, 242, 0.25);
	--grz-hub-ink: var(--grz-ink, #111827);
	--grz-hub-muted: var(--grz-muted, #667085);
	--grz-hub-line: var(--grz-line, #e5e9f0);
	--grz-hub-line-soft: rgba(17, 24, 39, 0.07);
	--grz-hub-card: var(--grz-surface, #ffffff);
	--grz-hub-canvas: var(--grz-canvas, #f2f5fa);
	--grz-hub-verified: #047857;
}

@supports (color: color-mix(in srgb, red, blue)) {
	.grz-hub {
		--grz-hub-blue-border: color-mix(in srgb, var(--grz-hub-blue) 15%, transparent);
		--grz-hub-blue-bg: color-mix(in srgb, var(--grz-hub-blue) 5%, transparent);
		--grz-hub-blue-track: color-mix(in srgb, var(--grz-hub-blue) 10%, transparent);
		--grz-hub-blue-divider: color-mix(in srgb, var(--grz-hub-blue) 20%, transparent);
		--grz-hub-blue-masthead: color-mix(in srgb, var(--grz-hub-blue) 25%, transparent);
		--grz-hub-line-soft: color-mix(in srgb, var(--grz-hub-ink) 7%, transparent);
	}
}

.grz-hub *,
.grz-hub *::before,
.grz-hub *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------ Theme page frame reset */
/* The hub renders its own masthead and containers, so the theme's editorial
 * page card (bordered white box + big padding + page title) is neutralized —
 * mirrors the theme's own "system page" treatment for WooCommerce pages.
 * Only applies on the hub page via the grz-reviews-hub-page body class. */

.grz-reviews-hub-page .grz-entry {
	overflow: visible;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.grz-reviews-hub-page .grz-entry__body {
	padding: 0;
}

.grz-reviews-hub-page .grz-entry__body > .grz-entry__title {
	display: none;
}

.grz-reviews-hub-page .grz-entry__content > *:first-child {
	margin-top: 0;
}

.grz-reviews-hub-page .grz-entry__content > *:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------- Masthead */

.grz-hub__masthead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 4px 16px;
	padding-bottom: 12px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--grz-hub-blue-masthead);
}

.grz-hub__title {
	font-size: clamp(22px, 2.8vw, 28px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0;
	color: var(--grz-hub-ink);
}

.grz-hub__tagline {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 400;
	color: var(--grz-hub-muted);
}

.grz-hub__switch {
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 600;
	color: var(--grz-hub-blue);
	text-decoration: none;
}

.grz-hub__switch:hover {
	color: var(--grz-hub-blue-dark);
	text-decoration: underline;
}

/* ------------------------------------------------------------------ Layout */

.grz-hub__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

/* The single bordered container every area lives in — square corners. */
.grz-hub-box {
	background: var(--grz-hub-card);
	border: 1px solid var(--grz-hub-blue-border);
	border-radius: 0;
}

/* ----------------------------------------------------------------- Sidebar */

.grz-hub__side {
	position: sticky;
	top: 24px;
}

.grz-hub__side .grz-hub-box {
	padding: 20px;
}

.grz-hub-side__product {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--grz-hub-blue-divider);
}

.grz-hub-side__product--store {
	cursor: default;
}

.grz-hub-side__thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid var(--grz-hub-line);
	background: var(--grz-hub-canvas);
	display: block;
}

.grz-hub-side__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.grz-hub-side__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.grz-hub-side__eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--grz-hub-blue);
}

.grz-hub-side__info strong {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--grz-hub-ink);
	overflow-wrap: anywhere;
}

a.grz-hub-side__product:hover .grz-hub-side__info strong {
	color: var(--grz-hub-blue);
}

.grz-hub-side__price {
	font-size: 10px;
	font-weight: 400;
	color: var(--grz-hub-muted);
}

.grz-hub-side__price del {
	font-weight: 400;
}

/* Totals */

.grz-hub-side__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--grz-hub-line);
}

.grz-hub-side__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.grz-hub-side__stat strong {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--grz-hub-ink);
}

.grz-hub-side__stat span {
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--grz-hub-muted);
}

/* Distribution */

.grz-hub-side__dist {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 16px;
}

.grz-hub-dist {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.grz-hub-dist__label {
	font-size: 10px;
	font-weight: 400;
	color: var(--grz-hub-muted);
	white-space: nowrap;
}

.grz-hub-dist:hover .grz-hub-dist__label {
	color: var(--grz-hub-blue);
}

.grz-hub-dist__track {
	flex: 1 1 auto;
	display: block;
	height: 4px;
	background: var(--grz-hub-blue-track);
	border-radius: 999px;
	overflow: hidden;
}

.grz-hub-dist__fill {
	display: block;
	height: 100%;
	background: var(--grz-hub-blue);
	border-radius: 999px;
}

.grz-hub-dist__count {
	font-size: 10px;
	font-weight: 400;
	color: var(--grz-hub-muted);
	text-align: right;
	min-width: 18px;
}

/* ------------------------------------------- Tools header (inside the box) */
/* High-specificity resets: the theme's base.css styles raw input/select/
 * button[type=submit] elements (46px heights, full widths, gradient button
 * with shadow). Every property it sets is re-declared here, scoped tighter. */

.grz-hub .grz-hub__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px;
	border-bottom: 1px solid var(--grz-hub-blue-divider);
}

.grz-hub .grz-hub__tools .grz-hub__search {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.grz-hub .grz-hub__tools .grz-hub__search input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	font-family: inherit;
	font-size: 11px;
	line-height: 1.4;
	color: var(--grz-hub-ink);
	background: var(--grz-hub-canvas);
	border: 1px solid var(--grz-hub-line);
	border-right: 0;
	border-radius: 6px 0 0 6px;
	padding: 7px 12px;
	box-shadow: none;
}

.grz-hub .grz-hub__tools .grz-hub__search input:focus {
	outline: none;
	border-color: var(--grz-hub-blue);
	box-shadow: none;
}

.grz-hub .grz-hub__tools .grz-hub__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	appearance: none;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background: var(--grz-hub-blue);
	border: 1px solid var(--grz-hub-blue);
	border-radius: 0 6px 6px 0;
	padding: 7px 16px;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.grz-hub .grz-hub__tools .grz-hub__search-btn:hover {
	color: #fff;
	background: var(--grz-hub-blue-dark);
	box-shadow: none;
	transform: none;
}

.grz-hub .grz-hub__tools select {
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--grz-hub-ink);
	background: var(--grz-hub-canvas);
	border: 1px solid var(--grz-hub-line);
	border-radius: 6px;
	padding: 7px 8px;
	box-shadow: none;
	cursor: pointer;
}

.grz-hub .grz-hub__tools select:focus {
	border-color: var(--grz-hub-blue);
	box-shadow: none;
}

/* -------------------------------------------------- Tabs bar (inside box) */

.grz-hub__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 20px;
	padding: 2px 12px;
	border-bottom: 1px solid var(--grz-hub-line);
}

.grz-hub__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

.grz-hub__tab {
	display: inline-block;
	padding: 8px 0;
	font-size: 10px;
	font-weight: 500;
	color: var(--grz-hub-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.grz-hub__tab:hover {
	color: var(--grz-hub-blue);
}

.grz-hub__tab.is-active {
	color: var(--grz-hub-blue);
	font-weight: 700;
}

.grz-hub__withtext {
	margin: 0 0 0 auto;
}

.grz-hub__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	font-weight: 500;
	color: var(--grz-hub-muted);
	cursor: pointer;
	user-select: none;
	padding: 8px 0;
}

.grz-hub .grz-hub__check input {
	width: auto;
	min-height: 0;
	accent-color: var(--grz-hub-blue);
	margin: 0;
}

/* -------------------------------------------------------------- Entry list */

.grz-hub__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grz-hub-entry {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	padding: 12px 16px;
	border-bottom: 1px solid var(--grz-hub-line-soft);
}

.grz-hub-entry:last-child {
	border-bottom: 0;
}

.grz-hub-entry__avatar {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 600;
	color: var(--grz-hub-blue);
	background: var(--grz-hub-blue-bg);
	border: 1px solid var(--grz-hub-blue-border);
}

.grz-hub-entry__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.grz-hub-entry__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
}

.grz-hub-entry__line strong {
	font-size: 11px;
	font-weight: 600;
	color: var(--grz-hub-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.grz-hub-entry__verified {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 9px;
	font-weight: 500;
	color: var(--grz-hub-verified);
	white-space: nowrap;
}

.grz-hub-entry__verified-icon {
	width: 10px;
	height: 10px;
}

.grz-hub-entry__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}

.grz-hub-entry__meta .grz-rv-stars {
	font-size: 10px;
	letter-spacing: 1px;
}

.grz-hub-entry__meta time {
	font-size: 10px;
	color: var(--grz-hub-muted);
	white-space: nowrap;
}

/* Text + inline helpful pill (+ full-width reply box) on one wrap flow. */
.grz-hub-entry__text {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--grz-hub-ink);
}

.grz-hub-entry__text p {
	margin: 0;
}

/* Helpful pill — dense hub sizing (base styles live in frontend.css). */
.grz-hub .grz-rv-helpful {
	margin-top: 0;
	gap: 6px;
}

.grz-hub .grz-rv-helpful__btn {
	font-size: 10px;
	font-weight: 500;
	padding: 3px 9px 3px 7px;
	border-color: var(--grz-hub-line);
	background: var(--grz-hub-canvas);
	color: var(--grz-hub-muted);
	border-radius: 999px;
}

.grz-hub .grz-rv-helpful__btn::before {
	width: 10px;
	height: 10px;
	margin-right: 4px;
}

.grz-hub .grz-rv-helpful__btn:hover {
	border-color: var(--grz-hub-blue);
	color: var(--grz-hub-blue);
	background: var(--grz-hub-canvas);
}

.grz-hub .grz-rv-helpful.is-voted .grz-rv-helpful__btn {
	background: var(--grz-hub-blue);
	border-color: var(--grz-hub-blue);
	color: #fff;
	cursor: default;
}

.grz-hub .grz-rv-helpful__count {
	font-size: 10px;
	color: var(--grz-hub-muted);
}

/* Store reply — compact blue-tinted box on its own row. */
.grz-hub .grz-rv-reply {
	flex: 0 0 100%;
	margin-top: 4px;
	background: var(--grz-hub-blue-bg);
	border: 1px solid var(--grz-hub-blue-border);
	border-radius: 4px;
	padding: 7px 10px;
}

.grz-hub .grz-rv-reply__head {
	margin-bottom: 0;
	gap: 4px 8px;
}

.grz-hub .grz-rv-reply__store {
	font-size: 10px;
	font-weight: 600;
	color: var(--grz-hub-blue);
}

.grz-hub .grz-rv-reply__badge {
	font-size: 10px;
	font-weight: 400;
	color: var(--grz-hub-muted);
}

.grz-hub .grz-rv-reply__date {
	font-size: 10px;
	color: var(--grz-hub-muted);
}

.grz-hub .grz-rv-reply__text {
	margin-top: 4px;
	font-size: 10px;
	line-height: 1.5;
	color: var(--grz-hub-ink);
	opacity: 0.85;
}

/* Product link under each row (store-wide mode). */
.grz-hub-entry__product {
	align-self: flex-start;
	margin-top: 8px;
	font-size: 10px;
	font-weight: 600;
	color: var(--grz-hub-blue);
	text-decoration: none;
}

.grz-hub-entry__product:hover {
	color: var(--grz-hub-blue-dark);
	text-decoration: underline;
}

/* -------------------------------------------------------------- Pagination */

.grz-hub__pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 16px;
	border-top: 1px solid var(--grz-hub-line);
}

.grz-hub__pages-count {
	font-size: 10px;
	font-weight: 500;
	color: var(--grz-hub-muted);
	margin-right: 8px;
}

.grz-hub__pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	font-size: 11px;
	font-weight: 500;
	color: var(--grz-hub-ink);
	border: 1px solid var(--grz-hub-line);
	border-radius: 4px;
	text-decoration: none;
	background: var(--grz-hub-card);
}

.grz-hub__pages .page-numbers:hover {
	border-color: var(--grz-hub-blue);
	color: var(--grz-hub-blue);
}

.grz-hub__pages .page-numbers.current {
	background: var(--grz-hub-blue);
	border-color: var(--grz-hub-blue);
	color: #fff;
}

.grz-hub__pages .page-numbers.dots {
	border: 0;
	background: transparent;
	color: var(--grz-hub-muted);
}

/* ------------------------------------------------------------------- Empty */

.grz-hub__empty {
	padding: 40px 16px;
	text-align: center;
}

.grz-hub__empty strong {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--grz-hub-ink);
	margin-bottom: 4px;
}

.grz-hub__empty p {
	font-size: 11px;
	color: var(--grz-hub-muted);
	margin: 0;
}

/* --------------------------------------------------------------- Responsive */

@media (max-width: 900px) {
	.grz-hub__layout {
		grid-template-columns: 1fr;
	}

	.grz-hub__side {
		position: static;
	}
}

@media (max-width: 640px) {
	.grz-hub__list {
		grid-template-columns: 1fr;
	}

	.grz-hub .grz-hub__tools .grz-hub__search {
		flex-basis: 100%;
	}

	.grz-hub .grz-hub__tools select {
		width: 100%;
	}

	.grz-hub__tagline {
		display: none;
	}
}
