/* =============================================
   HEALTH REVIEWS — ARCHIVE / REVIEWS PAGE
   ============================================= */

/* === VARIABLES === */

.hr-archive {
	--hr-bg:           #ffffff;
	--hr-bg-alt:       #f6f9fc;
	--hr-text:         #0f172a;
	--hr-muted:        #475569;
	--hr-line:         #e2e8f0;
	--hr-primary:      #0f4ea8;
	--hr-primary-dark: #0b3a7c;
	--hr-accent:       #1d6fe8;
	--hr-white:        #ffffff;
	--hr-blue-50:      #eff6ff;
	--hr-blue-100:     #dbeafe;
	--hr-blue-200:     #bfdbfe;
	--hr-grad:         linear-gradient(135deg, #0f4ea8 0%, #1d6fe8 100%);
	--hr-shadow-sm:    0 2px 8px rgba(15, 23, 42, 0.06);
	--hr-shadow-blue:  0 12px 32px -4px rgba(15, 78, 168, 0.18);
	--hr-radius:       20px;
	--hr-radius-sm:    12px;
	--hr-max:          1200px;

	color: var(--hr-text);
}

.hr-archive * {
	box-sizing: border-box;
}

.hr-archive img {
	display: block;
	height: auto;
	max-width: 100%;
}

.hr-archive a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* === CONTAINER === */

.hr-arc-container {
	margin-inline: auto;
	width: min(100% - 40px, var(--hr-max));
}

/* =============================================
   ARCHIVE HEADER
   ============================================= */

.hr-arc-header {
	background: linear-gradient(180deg, var(--hr-bg-alt) 0%, #ffffff 100%);
	border-bottom: 1px solid var(--hr-line);
	padding: 56px 0 48px;
}

.hr-arc-eyebrow {
	align-items: center;
	color: var(--hr-muted);
	display: flex;
	font-size: 0.85rem;
	gap: 8px;
	margin: 0 0 14px;
}

.hr-arc-eyebrow a {
	color: var(--hr-accent);
	font-weight: 600;
	text-decoration: none;
}

.hr-arc-eyebrow a:hover {
	text-decoration: underline;
}

.hr-arc-header h1 {
	font-size: clamp(1.9rem, 3.2vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.08;
	margin: 0 0 14px;

	/* Gradient text */
	background: var(--hr-grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hr-arc-intro {
	color: var(--hr-muted);
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 0;
	max-width: 680px;
}

/* =============================================
   CATEGORY FILTER BAR
   ============================================= */

.hr-arc-filter-bar {
	background: var(--hr-white);
	border-bottom: 1px solid var(--hr-line);
	padding: 14px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.hr-arc-filter {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hr-arc-filter-btn {
	background: transparent;
	border: 1.5px solid var(--hr-line);
	border-radius: 999px;
	color: var(--hr-muted);
	font-size: 0.88rem;
	font-weight: 600;
	padding: 7px 18px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hr-arc-filter-btn:hover {
	border-color: var(--hr-accent);
	color: var(--hr-accent);
}

.hr-arc-filter-btn--active {
	background: var(--hr-grad);
	border-color: transparent;
	color: var(--hr-white);
	box-shadow: 0 4px 12px rgba(29, 111, 232, 0.3);
}

.hr-arc-filter-btn--active:hover {
	color: var(--hr-white);
	filter: brightness(1.08);
}

/* =============================================
   POSTS GRID
   ============================================= */

.hr-arc-content {
	padding: 56px 0 80px;
}

.hr-arc-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =============================================
   POST CARD
   (self-contained — no dependency on home CSS)
   ============================================= */

.hr-post-card {
	background: var(--hr-white);
	border: 1px solid var(--hr-line);
	border-radius: var(--hr-radius);
	box-shadow: var(--hr-shadow-sm);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.hr-post-card:hover {
	box-shadow: var(--hr-shadow-blue);
	transform: translateY(-5px);
}

.hr-post-thumb {
	display: block;
	overflow: hidden;
}

.hr-post-thumb img,
.hr-post-thumb-placeholder {
	aspect-ratio: 16 / 9;
	display: block;
	object-fit: cover;
	transition: transform 0.4s ease;
	width: 100%;
}

.hr-post-card:hover .hr-post-thumb img {
	transform: scale(1.04);
}

.hr-post-thumb-placeholder {
	background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.hr-post-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 26px 26px;
}

.hr-post-meta-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.hr-post-meta {
	background: var(--hr-blue-50);
	border: 1px solid var(--hr-blue-100);
	border-radius: 999px;
	color: var(--hr-accent);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	padding: 3px 10px;
	text-transform: uppercase;
}

.hr-post-date {
	color: var(--hr-muted);
	font-size: 0.85rem;
}

.hr-post-body h3 {
	color: var(--hr-text);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.35;
	margin: 0 0 10px;
}

.hr-post-body h3 a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.hr-post-body h3 a:hover {
	color: var(--hr-primary);
}

.hr-post-body p {
	color: var(--hr-muted);
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0 0 16px;
}

.hr-text-link {
	color: var(--hr-primary);
	font-size: 0.9rem;
	font-weight: 700;
	margin-top: auto;
	text-decoration: none;
	transition: color 0.18s ease;
}

.hr-text-link:hover {
	color: var(--hr-accent);
	text-decoration: underline;
}

/* =============================================
   PAGINATION
   ============================================= */

.hr-arc-pagination {
	margin-top: 56px;
}

.hr-arc-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hr-arc-pagination .page-numbers li {
	margin: 0;
}

.hr-arc-pagination .page-numbers a,
.hr-arc-pagination .page-numbers span {
	align-items: center;
	border: 1.5px solid var(--hr-line);
	border-radius: var(--hr-radius-sm);
	color: var(--hr-text);
	display: flex;
	font-size: 0.92rem;
	font-weight: 600;
	height: 44px;
	justify-content: center;
	min-width: 44px;
	padding: 0 14px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hr-arc-pagination .page-numbers a:hover {
	border-color: var(--hr-accent);
	color: var(--hr-accent);
}

.hr-arc-pagination .page-numbers .current {
	background: var(--hr-grad);
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(29, 111, 232, 0.3);
	color: var(--hr-white);
}

.hr-arc-pagination .page-numbers .prev,
.hr-arc-pagination .page-numbers .next {
	padding: 0 20px;
}

/* =============================================
   EMPTY STATE
   ============================================= */

.hr-arc-empty {
	border: 1px dashed var(--hr-line);
	border-radius: var(--hr-radius);
	color: var(--hr-muted);
	font-size: 1rem;
	line-height: 1.7;
	margin-inline: auto;
	max-width: 560px;
	padding: 56px 40px;
	text-align: center;
}

.hr-arc-empty p {
	margin: 0 0 24px;
}

.hr-arc-btn-outline {
	background: transparent;
	border: 2px solid var(--hr-primary);
	border-radius: 999px;
	color: var(--hr-primary);
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 700;
	min-height: 46px;
	padding: 0 26px;
	align-items: center;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hr-arc-btn-outline:hover {
	background: var(--hr-primary);
	box-shadow: var(--hr-shadow-blue);
	color: var(--hr-white);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
	.hr-arc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.hr-arc-header {
		padding: 40px 0 32px;
	}

	.hr-arc-content {
		padding: 40px 0 56px;
	}

	.hr-arc-grid {
		grid-template-columns: 1fr;
	}

	.hr-arc-filter-bar {
		position: static;
	}

	.hr-arc-filter {
		gap: 6px;
	}

	.hr-arc-filter-btn {
		font-size: 0.83rem;
		padding: 6px 14px;
	}

	.hr-arc-pagination .page-numbers a,
	.hr-arc-pagination .page-numbers span {
		height: 40px;
		min-width: 40px;
	}
}
