/* ==========================================================================
   Hosting Review Hub — taxonomy-reviews.php
   ========================================================================== */

.review-hub-hero {
	position: relative;
	background: radial-gradient(700px 400px at 15% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
		linear-gradient(120deg, rgba(74, 31, 138, 0.94) 0%, rgba(43, 0, 117, 0.94) 55%, rgba(28, 0, 86, 0.94) 100%),
		var(--hero-bg-image, none) no-repeat center center/cover;
	padding: 10px 20px 10px;
	text-align: center;
	color: #fff;
}

.review-hub-breadcrumb {
	text-align: center;
	margin-bottom: 16px;
	font-size: 13px;
}

.review-hub-breadcrumb,
.review-hub-breadcrumb a {
	color: rgba(255, 255, 255, 0.65);
}

.review-hub-breadcrumb a:hover {
	color: #fff;
}

.review-hub-title {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	margin: 0 0 8px;
	color: #fff;
}

.review-hub-desc {
	max-width: 560px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.review-hub-stats {
	display: flex;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.review-hub-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 120px;
}

.review-hub-stat-value {
	font-size: 30px;
	font-weight: 800;
	color: #ffb85c;
	line-height: 1.2;
}

.review-hub-stat-label {
	font-size: 13px;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.75);
	margin-top: 4px;
	text-transform: uppercase;
}

/* Search
   ========================================================================== */

.review-hub-search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 520px;
	margin: 26px auto 0;
	background: rgba(255, 255, 255, 0.97);
	border-radius: 999px;
	padding: 6px 6px 6px 18px;
	box-shadow: 0 12px 28px -10px rgba(15, 0, 46, 0.45);
}

.review-hub-search-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: #9089ab;
}

.review-hub-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14.5px;
	color: #221049;
	padding: 10px 4px;
	min-width: 0;
}

.review-hub-search-input::placeholder {
	color: #a8a1bd;
}

.review-hub-search-btn {
	background: var(--primary, #ff8a17);
	color: #fff;
	border: none;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 999px;
	cursor: pointer;
	flex-shrink: 0;
	transition: filter 0.15s ease;
}

.review-hub-search-btn:hover {
	filter: brightness(1.08);
}

/* Featured / Top Rated strip
   ========================================================================== */

.review-hub-featured {
	padding: 44px 20px 8px;
	background: #faf9fc;
}

.review-hub-section-title {
	font-size: 22px;
	font-weight: 700;
	color: #221049;
	margin: 0 0 20px;
}

.review-hub-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.review-hub-featured-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border: 1px solid #ece8f5;
	border-radius: 16px;
	padding: 28px 20px 22px;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.review-hub-featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px -12px rgba(43, 0, 117, 0.25);
	border-color: #d9cff2;
}

.review-hub-rank {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--primary, #ff8a17);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}

.review-hub-featured-logo {
	width: 160px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.review-hub-featured-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.review-hub-featured-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.review-hub-featured-score {
	font-weight: 700;
	color: #221049;
	font-size: 15px;
}

.review-hub-featured-count {
	font-size: 13px;
	color: #7a7390;
}

/* Toolbar / sort
   ========================================================================== */

.review-hub-grid-section {
	padding-top: 36px;
}

.review-hub-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 24px;
}

.review-hub-toolbar .review-hub-section-title {
	margin: 0;
}

.review-hub-sort {
	display: inline-flex;
	background: #f2eef9;
	border-radius: 999px;
	padding: 4px;
	gap: 2px;
}

.review-hub-sort-btn {
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #5a5270;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.review-hub-sort-btn:hover {
	color: #2b0075;
}

.review-hub-sort-btn.is-active {
	background: #2b0075;
	color: #fff;
}

.review-hub-toolbar-right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.review-hub-clear-search {
	font-size: 13.5px;
	font-weight: 600;
	color: #7a7390;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.review-hub-clear-search:hover {
	color: #2b0075;
}

/* Empty state
   ========================================================================== */

.review-hub-empty {
	text-align: center;
	padding: 56px 20px;
	max-width: 420px;
	margin: 0 auto;
}

.review-hub-empty-icon {
	width: 44px;
	height: 44px;
	color: #cabfe6;
	margin-bottom: 16px;
}

.review-hub-empty-title {
	font-size: 18px;
	font-weight: 700;
	color: #221049;
	margin: 0 0 8px;
}

.review-hub-empty-desc {
	font-size: 14px;
	color: #7a7390;
	line-height: 1.6;
	margin: 0 0 18px;
}

.review-hub-empty .review-hub-clear-search {
	display: inline-block;
	background: #f2eef9;
	padding: 9px 18px;
	border-radius: 999px;
}

/* Grid card polish
   ========================================================================== */

.review-hub-grid.posts.grid {
	gap: 22px;
}

.review-hub-grid .card-review {
	border-radius: 14px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.review-hub-grid .card-review:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px -16px rgba(43, 0, 117, 0.28);
}

/* Trust strip
   ========================================================================== */

.review-hub-trust {
	background: #faf9fc;
	padding: 24px 20px 8px;
}

.review-hub-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.review-hub-trust-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fff;
	border: 1px solid #ece8f5;
	border-radius: 12px;
	padding: 16px;
}

.review-hub-trust-item svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: #2b0075;
	margin-top: 2px;
}

.review-hub-trust-item strong {
	display: block;
	font-size: 13.5px;
	color: #221049;
	margin-bottom: 3px;
}

.review-hub-trust-item span {
	display: block;
	font-size: 12px;
	line-height: 1.5;
	color: #7a7390;
}

/* Editorial independence disclosure is rendered via the shared
   gh_render_disclaimer() component (see functions.php), which carries its
   own inline styles — no page-specific CSS needed here. */

/* FAQ
   ========================================================================== */

.review-hub-faq {
	padding: 8px 20px 4px;
	background: #faf9fc;
}

/* This stylesheet only loads on the reviews taxonomy page (see functions.php
   enqueue), so this safely trims the shared gh-disclaimer component's
   top spacing here without affecting it on any other page. */
.gh-disclaimer {
	padding-top: 16px !important;
}

.review-hub-faq-list {
	max-width: 620px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.review-hub-faq-item {
	background: #fff;
	border: 1px solid #ece8f5;
	border-radius: 12px;
	padding: 16px 20px;
}

.review-hub-faq-item summary {
	font-weight: 700;
	font-size: 15px;
	color: #221049;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 28px;
}

.review-hub-faq-item summary::-webkit-details-marker {
	display: none;
}

.review-hub-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -2px;
	font-size: 20px;
	font-weight: 400;
	color: #7a7390;
	transition: transform 0.15s ease;
}

.review-hub-faq-item[open] summary::after {
	transform: rotate(45deg);
}

.review-hub-faq-item p {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #5a5270;
}

/* Responsive
   ========================================================================== */

@media (max-width: 782px) {
	.review-hub-hero {
		padding: 26px 16px 22px;
	}

	.review-hub-stats {
		gap: 24px;
	}

	.review-hub-featured-grid {
		grid-template-columns: 1fr;
	}

	.review-hub-trust-grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.review-hub-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.review-hub-sort {
		width: 100%;
		overflow-x: auto;
	}

	.review-hub-search {
		margin-top: 20px;
		padding-left: 14px;
	}

	.review-hub-search-btn {
		padding: 10px 14px;
	}

	.review-hub-toolbar-right {
		width: 100%;
		justify-content: space-between;
	}
}

@media (min-width: 783px) and (max-width: 1024px) {
	.review-hub-featured-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

/* AJAX sort/pagination loading state
   ========================================================================== */

#review-hub-results {
	transition: opacity 0.15s ease;
}

#review-hub-results.is-loading {
	opacity: 0.45;
	pointer-events: none;
}
