/**
 * Hupacha Featured Reviews — Frontend Styles  v1.6.1
 *
 * Kleuren via CSS-variabelen uit base.css met fallback-waarden.
 * Afbeeldingsregels gebruiken hogere specificiteit (.hfr-section .selector)
 * en waar nodig !important om thema-overrides te voorkomen.
 */

/* =============================================
   SECTIE — SPACING & ACHTERGRONDEN
   ============================================= */

.hfr-section {
	padding: 80px 0;
}

@media (min-width: 768px) {
	.hfr-section {
		padding: 120px 0;
	}
}

.hfr-bg-white { background-color: #ffffff; }
.hfr-bg-cream { background-color: var(--color-cream, #F5F0EB); }
.hfr-bg-navy  { background: var(--color-section-dark, linear-gradient(135deg, #1e2d3a 0%, #2a3f4f 100%)); }

/* =============================================
   SECTION HEADER
   ============================================= */

.hfr-section .section-header,
.hfr-section-header {
	text-align: center;
	margin-bottom: 60px;
}

.hfr-bg-navy .section-header h2,
.hfr-bg-navy .hfr-section-header h2 {
	color: #ffffff;
}

/* =============================================
   CONTAINER FALLBACK
   (landing-container is gedefinieerd in home.css;
   dit zorgt voor correct gedrag op andere pagina's)
   ============================================= */

.hfr-section .landing-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* =============================================
   GRID — 1 kolom mobiel, 3 kolommen desktop
   ============================================= */

.hfr-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 768px) {
	.hfr-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 30px;
	}
}

/* =============================================
   REVIEW-KAART
   ============================================= */

.hfr-card {
	background: #ffffff;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	border: 1px solid rgba(197, 163, 82, 0.18);

	/* Scroll-animatie begintoestand */
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s ease, transform 0.45s ease, box-shadow 0.25s ease;
}

.hfr-card.hfr-visible {
	opacity: 1;
	transform: translateY(0);
}

.hfr-card.hfr-visible:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 44px rgba(93, 74, 55, 0.1);
}

.hfr-bg-navy .hfr-card {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(197, 163, 82, 0.28);
}

.hfr-bg-navy .hfr-card.hfr-visible:hover {
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

/* =============================================
   IDENTITEIT-BLOK
   Horizontale rij: links (naam + verified + sterren)
   staat naast rechts (review-foto).
   De foto neemt de volledige hoogte van het linker
   blok in, zodat beide visueel goed uitlijnen.
   ============================================= */

.hfr-card-identity {
	display: flex;
	flex-direction: row;
	align-items: stretch; /* foto strekt mee met de hoogte van .hfr-card-left */
	justify-content: space-between;
	gap: 14px;
}

/* Links: naam + verified + sterren gestapeld */
.hfr-card-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

/* Sterren */
.hfr-stars {
	display: flex;
	align-items: center;
	gap: 3px;
	flex-shrink: 0;
}

.hfr-star {
	font-size: 1.1rem;
	color: rgba(197, 163, 82, 0.28);
	line-height: 1;
}

.hfr-star--filled {
	color: var(--color-gold, #C5A352);
}

/* Review-foto: rechts, vult de volle hoogte van het identiteitsblok */
.hfr-thumb-wrap {
	flex-shrink: 0;
	width: 72px;
	min-height: 72px; /* minimale hoogte, strekt mee via align-items: stretch */
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid rgba(197, 163, 82, 0.32);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.hfr-thumb-wrap:hover,
.hfr-thumb-wrap:focus-visible {
	border-color: var(--color-gold, #C5A352);
	transform: scale(1.04);
	outline: none;
}

/* Hoge specificiteit + !important om thema img-rules te winnen.
   height: 100% zodat de foto de volle hoogte van de wrapper vult. */
.hfr-section .hfr-thumb-wrap img.hfr-thumb {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 72px !important;
	max-width: 72px !important;
	object-fit: cover !important;
	pointer-events: none;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
}

/* =============================================
   LAAG 2 — REVIEW TEKST
   ============================================= */

.hfr-text {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1rem;
	line-height: 1.78;
	color: var(--color-anthracite, #2F2F2F);
	margin: 0;
	flex: 1;
}

.hfr-bg-navy .hfr-text {
	color: var(--color-cream, #F5F0EB);
	opacity: 0.92;
}

/* =============================================
   LAAG 3 — FOOTER: AUTEUR + PRODUCT
   Twee duidelijk gescheiden rijen met eigen
   visuele hiërarchie.
   ============================================= */

.hfr-footer {
	padding-top: 14px;
	border-top: 1px solid rgba(197, 163, 82, 0.18);
	margin-top: auto;
}

.hfr-bg-navy .hfr-footer {
	border-color: rgba(255, 255, 255, 0.1);
}

/* --- Auteur (zit nu in hfr-card-identity, geen bottom padding nodig) --- */

.hfr-author {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hfr-author-name {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-warm-oak, #5D4A37);
	line-height: 1.3;
}

.hfr-bg-navy .hfr-author-name {
	color: #ffffff;
}

.hfr-verified {
	font-size: 0.76rem;
	color: #999999;
	font-style: italic;
	font-family: Georgia, serif;
	line-height: 1.3;
}

.hfr-bg-navy .hfr-verified {
	color: rgba(255, 255, 255, 0.45);
}

/* --- Producttag --- */

/* De hele producttag is één klikbare <a>, zodat zowel
   de foto als de naam naar het product linken. */
.hfr-product-tag {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	text-decoration: none;
	cursor: pointer;
}

.hfr-product-tag:hover,
.hfr-product-tag:focus-visible {
	text-decoration: none;
	outline: none;
}

/* Productfoto — hoogte vast, breedte volgt originele aspect ratio.
   'medium' size uit WP is niet gecropped, dus aspect ratio klopt altijd.
   Hoge specificiteit + !important wint van thema img-regels. */
.hfr-section .hfr-product-tag img.hfr-product-img {
	display: block !important;
	width: auto !important;
	height: 64px !important;
	min-width: unset !important;
	min-height: unset !important;
	max-width: 120px !important;
	max-height: 64px !important;
	object-fit: contain !important;
	border-radius: 3px !important;
	flex-shrink: 0;
	border: 1px solid rgba(197, 163, 82, 0.28) !important;
	margin: 0 !important;
	padding: 0 !important;
	background: rgba(245, 240, 235, 0.5);
	transition: transform 0.2s ease !important;
}

/* Hover-zoom op de foto, gelijk aan de review-foto */
.hfr-product-tag:hover img.hfr-product-img {
	transform: scale(1.07) !important;
}

/* Productnaam */
.hfr-product-name {
	font-size: 0.92rem;
	color: var(--color-gold, #C5A352);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
	min-width: 0;
}

.hfr-product-tag:hover .hfr-product-name,
.hfr-product-tag:focus-visible .hfr-product-name {
	color: var(--color-warm-oak, #5D4A37);
	text-decoration: underline;
}

.hfr-bg-navy .hfr-product-name                        { color: var(--color-gold, #C5A352); }
.hfr-bg-navy .hfr-product-tag:hover .hfr-product-name { color: #ffffff; }

/* =============================================
   EXTRA FOTO'S — horizontale strip
   Getoond tussen de reviewtekst en de footer.
   ============================================= */

.hfr-photo-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hfr-photo-strip-item {
	width: 56px;
	height: 56px;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	flex-shrink: 0;
	border: 2px solid rgba(197, 163, 82, 0.28);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.hfr-photo-strip-item:hover,
.hfr-photo-strip-item:focus-visible {
	border-color: var(--color-gold, #C5A352);
	transform: scale(1.06);
	outline: none;
}

.hfr-section .hfr-photo-strip-item img {
	display: block !important;
	width: 56px !important;
	height: 56px !important;
	object-fit: cover !important;
	pointer-events: none;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

/* =============================================
   CTA-KNOP
   ============================================= */

.hfr-cta {
	text-align: center;
	margin-top: 52px;
}

.hfr-bg-navy .hfr-cta .btn-secondary {
	border-color: rgba(255, 255, 255, 0.6);
	color: #ffffff;
}

.hfr-bg-navy .hfr-cta .btn-secondary:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

/* =============================================
   SCROLL-ANIMATIE — stagger per positie in rij
   ============================================= */

.hfr-card:nth-child(3n+2) { transition-delay: 0.1s; }
.hfr-card:nth-child(3n+3) { transition-delay: 0.2s; }

/* =============================================
   LIGHTBOX
   ============================================= */

.hfr-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.hfr-lightbox.hfr-lightbox--open {
	display: flex;
}

.hfr-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.78);
	cursor: pointer;
	animation: hfrFadeIn 0.2s ease;
}

.hfr-lightbox-close {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 2;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	color: #ffffff;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
	font-family: sans-serif;
}

.hfr-lightbox-close:hover,
.hfr-lightbox-close:focus-visible {
	background: rgba(255, 255, 255, 0.26);
	outline: none;
}

.hfr-lightbox-img {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 4px;
	cursor: pointer;
	animation: hfrScaleIn 0.22s ease;
}

@keyframes hfrFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes hfrScaleIn {
	from { opacity: 0; transform: scale(0.94); }
	to   { opacity: 1; transform: scale(1); }
}
