/* Home premium styles - minimal baseline for variants
 * Design: premium, readable, subtle accents
 */
:root{
	--gnp-accent:#C89200;
	--gnp-muted:#6b7280;
	--gnp-surface:#ffffff;
	--gnp-border:#e6e9ee;
}

.gnp-home-premium{
	max-width:min(1560px, calc(100vw - 28px)) !important;
	margin:0 auto;
	padding: 0 14px 42px;
	position: relative;
	isolation: isolate;
}

/* Force true full-width feel on homepage (override legacy container constraints) */
body.home .gnp-home-premium,
body.blog .gnp-home-premium,
body.page-template-home .gnp-home-premium {
	width: calc(100vw - 10px) !important;
	max-width: 1780px !important;
	padding-left: clamp(8px, 1.2vw, 22px);
	padding-right: clamp(8px, 1.2vw, 22px);
}

.gnp-home-premium::before,
.gnp-home-premium::after{
	content:'';
	position: fixed;
	top: 0;
	bottom: 0;
	width: clamp(80px, 11vw, 200px);
	pointer-events: none;
	z-index: -2;
	opacity: .85;
}

.gnp-home-premium::before{
	left: 0;
	background:
		radial-gradient(circle at 10% 20%, rgba(200,146,0,.24), transparent 45%),
		linear-gradient(180deg, rgba(15,23,42,.06), transparent 35%, rgba(15,23,42,.05));
}

.gnp-home-premium::after{
	right: 0;
	background:
		radial-gradient(circle at 90% 30%, rgba(255,90,95,.22), transparent 42%),
		linear-gradient(180deg, rgba(15,23,42,.06), transparent 38%, rgba(15,23,42,.04));
}

.gnp-home-premium-intro{
	position: relative;
	margin: 20px 0 24px;
	padding: 34px;
	border-radius: 18px;
	background:
		radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--geeknplay-theme-accent, #c89200) 20%, transparent), transparent 35%),
		radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--geeknplay-theme-primary, #0d3884) 16%, transparent), transparent 28%),
		linear-gradient(135deg, var(--geeknplay-theme-surface, #fff), var(--geeknplay-theme-surface-alt, #f8fafc));
	border: 1px solid var(--geeknplay-theme-border, rgba(17,24,39,0.08));
	box-shadow: var(--geeknplay-theme-shadow, 0 24px 60px rgba(15,23,42,0.12));
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.9fr);
	gap: 24px;
	overflow: hidden;
}

.gnp-home-premium-intro::before{
	content: '';
	position: absolute;
	top: -80px;
	right: -60px;
	width: 260px;
	height: 260px;
	border-radius: 999px;
	background: radial-gradient(circle at center, rgba(200,146,0,0.25), rgba(200,146,0,0));
	pointer-events: none;
}

.gnp-home-premium-intro::after{
	content: '';
	position: absolute;
	left: 46%;
	top: 12%;
	bottom: 12%;
	width: 1px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--geeknplay-theme-border, #d8e0ec) 90%, transparent), transparent);
	pointer-events: none;
}

.gnp-home-premium-intro__content{
	position: relative;
	z-index: 1;
}

.gnp-home-premium-kicker{
	margin: 0 0 8px;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--geeknplay-theme-muted, #334155);
}

.gnp-home-premium-title{
	margin: 0;
	font-size: clamp(1.35rem, 2.3vw, 2.2rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--geeknplay-theme-text, #0f172a);
}

.gnp-home-premium-subtitle{
	margin: 10px 0 0;
	max-width: 66ch;
	font-size: 1rem;
	color: var(--geeknplay-theme-muted, #475569);
}

.gnp-home-premium-tags{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.gnp-home-premium-tag{
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	background: color-mix(in srgb, var(--geeknplay-theme-surface-alt, #eef2f8) 80%, transparent);
	border: 1px solid color-mix(in srgb, var(--geeknplay-theme-border, #d8e0ec) 90%, transparent);
	color: var(--geeknplay-theme-text, #0f172a);
}

.gnp-home-premium-tag--link{
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.gnp-home-premium-tag--link:hover,
.gnp-home-premium-tag--link:focus-visible{
	transform: translateY(-1px);
	background: linear-gradient(135deg, color-mix(in srgb, var(--geeknplay-theme-accent, #c89200) 18%, transparent), color-mix(in srgb, var(--geeknplay-theme-primary, #0d3884) 14%, transparent));
	border-color: color-mix(in srgb, var(--geeknplay-theme-accent, #c89200) 55%, transparent);
	box-shadow: 0 8px 16px rgba(15,23,42,0.10);
	outline: none;
}

/* Active / pressed state for category filter buttons */
.gnp-home-premium-tag--link[aria-pressed="true"],
.gnp-home-premium-tag--link.is-active{
	background: linear-gradient(135deg, var(--gnp-accent), #ff5a5f);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}

.gnp-home-premium-headlines{
	position: relative;
	z-index: 1;
	display: grid;
	gap: 10px;
	align-content: center;
}

.gnp-home-premium-headlines__title{
	margin: 0 0 4px;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--geeknplay-theme-muted, #334155);
}

.gnp-home-premium-headline{
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: center;
	padding: 12px 12px;
	text-decoration: none;
	border-radius: 10px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--geeknplay-theme-surface, #fff) 92%, transparent), color-mix(in srgb, var(--geeknplay-theme-surface-alt, #eef2f8) 88%, transparent));
	border: 1px solid color-mix(in srgb, var(--geeknplay-theme-border, #d8e0ec) 88%, transparent);
	box-shadow: 0 10px 20px rgba(15,23,42,0.05);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gnp-home-premium-headline:hover{
	transform: translateY(-2px);
	box-shadow: 0 14px 26px rgba(15,23,42,0.10);
	border-color: color-mix(in srgb, var(--geeknplay-theme-accent, #c89200) 55%, transparent);
}

.gnp-home-premium-headline__dot{
	font-size: .92rem;
	line-height: 1;
}

.gnp-home-premium-headline__text{
	font-size: .93rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--geeknplay-theme-text, #0f172a);
}

html[data-theme="dark"] .gnp-home-premium-intro {
	background:
		radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--geeknplay-theme-accent, #fccb06) 22%, transparent), transparent 40%),
		radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--geeknplay-theme-primary-alt, #154da8) 22%, transparent), transparent 34%),
		linear-gradient(135deg, var(--geeknplay-theme-surface, #131a26), var(--geeknplay-theme-surface-alt, #1a2433));
}

html[data-theme="dark"] .gnp-home-premium-headline {
	box-shadow: 0 12px 24px rgba(0,0,0,0.34);
}

html[data-theme="dark"] .gnp-home-premium-tag--link:hover,
html[data-theme="dark"] .gnp-home-premium-tag--link:focus-visible {
	box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.gnp-home-premium-stat{
	padding: 12px 14px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.92));
	border: 1px solid rgba(15,23,42,0.07);
	box-shadow: 0 10px 20px rgba(15,23,42,0.05);
	display: grid;
	gap: 4px;
}

.gnp-home-premium-stat strong{
	font-size: 1.02rem;
	line-height: 1.1;
	color: #0f172a;
}

.gnp-home-premium-stat span{
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #475569;
}

.gnp-home-premium-nav{
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 10px;
	padding: 10px;
	margin: 0 0 20px;
}
.gnp-home-premium-nav::-webkit-scrollbar { display: none; }

.gnp-home-premium-chip{
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	scroll-snap-align: center;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: .86rem;
	font-weight: 700;
	text-decoration: none;
	color: #0f172a;
	border: 1px solid rgba(148,163,184,0.35);
	background: rgba(255,255,255,0.85);
	transition: all .22s ease;
}

.gnp-home-premium-chip:hover,
.gnp-home-premium-chip.is-active{
	color: #fff;
	background: linear-gradient(135deg, #c89200, #ff5a5f);
	border-color: transparent;
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 8px 18px rgba(15,23,42,0.18);
}

/* Hero tweaks */
.gnp-hero{
	margin-bottom:38px;
	border-radius:12px;
	overflow:hidden;
	background:linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
	padding:30px;
	border: 1px solid rgba(15,23,42,0.08);
	box-shadow: 0 22px 52px rgba(15,23,42,0.10);
}
.gnp-hero__title{
	font-size:2rem;
	margin:0 0 12px 0;
}

/* Section header */
.gnp-section-header,
.gnp-home-section__header{
	display:flex;
	align-items:baseline;
	justify-content:space-between;
	margin:28px 0 12px;
}
.gnp-home-section__title{
	font-size:1.25rem;
	margin:0;
	color: var(--geeknplay-theme-text, #111827);
}

.gnp-home-section__title::before{
	content:'';
	display:inline-block;
	width:6px;
	height:18px;
	background:var(--gnp-accent);
	margin-right:10px;
	border-radius:2px;
	vertical-align:middle;
}

/* NEW: subtle geeky subtitle under title */
.gnp-home-section__intro{
	margin:6px 0 0 0;
	font-size:0.92rem;
	color: var(--geeknplay-theme-muted, var(--gnp-muted));
	font-style:italic;
}

/* Tests toggle inside section header */
.gnp-tests-toggle{
	display:inline-flex;
	align-items:center;
	gap:10px;
	margin-bottom:6px;
}
.gnp-tests-toggle__link{
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--geeknplay-theme-border, #d8e0ec) 80%, transparent);
	padding: 8px 10px;
	border-radius: 999px;
	font-weight:700;
	cursor: pointer;
	color: var(--geeknplay-theme-text, #0f172a);
}
.gnp-tests-toggle__link.is-active{
	background: linear-gradient(135deg, var(--gnp-accent), #ff5a5f);
	color: #fff;
	border-color: transparent;
}
.gnp-tests-toggle__sep{ color: color-mix(in srgb, var(--geeknplay-theme-border, #d8e0ec) 70%, transparent); }

html[data-theme="dark"] .gnp-tests-toggle__link{
	color: #e6eefc;
	border-color: rgba(255,255,255,0.06);
}
html[data-theme="dark"] .gnp-tests-toggle__link.is-active{
	background: linear-gradient(135deg, #c89200, #ff5a5f);
}

@media (max-width: 768px){
	.gnp-section-header{ flex-direction: column; align-items: flex-start; gap: 6px; }
	.gnp-tests-toggle{ width:100%; justify-content:flex-start; }
}

/* Variants baseline */
.gnp-home-section--spotlight{
	/* Use theme-aware surface colors with sensible fallbacks */
	background: linear-gradient(180deg, color-mix(in srgb, var(--geeknplay-theme-surface, #fff) 92%, rgba(255,250,240,0.4) 8%), transparent);
	padding: 18px;
	border-radius: 10px;
	border: 1px solid var(--geeknplay-theme-border, var(--gnp-border));
}

/* Dark theme override: use theme surface/darker border for contrast */
html[data-theme="dark"] .gnp-home-section--spotlight{
	background: linear-gradient(180deg, color-mix(in srgb, var(--geeknplay-theme-surface, #131a26) 92%, rgba(255,250,240,0.03) 8%), transparent);
	border: 1px solid color-mix(in srgb, var(--geeknplay-theme-border, rgba(255,255,255,0.06)) 80%, transparent);
}

/* Spotlight layout: hero + subhero + side grid */
.gnp-spotlight-layout{
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: auto auto;
	grid-template-areas:
		"hero side"
		"subhero side";
	gap: 18px;
	align-items: start;
}

.gnp-spotlight-hero__card,
.gnp-spotlight-subhero__card{
	width: 100%;
}

.gnp-spotlight-hero{ grid-area: hero; }
.gnp-spotlight-subhero{ grid-area: subhero; }
.gnp-spotlight-side{ grid-area: side; }

.gnp-spotlight-subhero__card .gnp-card__media,
.gnp-spotlight-hero__card .gnp-card__media{
	display:block;
	height: 380px;
	overflow: hidden;
}

.gnp-spotlight-side{
	grid-column: 2 / 3;
}

.gnp-spotlight-side__grid{
	display: grid;
	grid-auto-rows: minmax(120px, 1fr);
	gap: 14px;
}

.gnp-spotlight-side__item{
	position: relative;
	overflow: hidden;
	min-height: 120px;
	display: block;
}

/* Respect border-radius on side items and avoid child overflow */
.gnp-spotlight-side__item{
	border-radius: 12px;
	overflow: hidden;
}

/* Make card media fill the side item and clip diagonally */
.gnp-spotlight-side__item .gnp-card__media{
	position: absolute;
	inset: 0;
	display: block;
	height: 100%;
	width: 100%;
}

.gnp-spotlight-side__item .gnp-card__media img,
.gnp-spotlight-side__item .gnp-card__media picture{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/* diagonal clip: subtle top-right tilt */
	clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
	transition: transform .45s ease;
}

.gnp-spotlight-side__item::after{
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.28));
	mix-blend-mode: multiply;
	pointer-events: none;
}

.gnp-spotlight-side__item:hover .gnp-card__media img{
	transform: scale(1.05) translateY(-3%);
}

/* Prevent large transform on the whole card inside the side items to avoid layout shifts */
.gnp-spotlight-side__item .gnp-card{
	height: 100%;
	margin: 0;
	transform: none !important;
	box-shadow: none;
}

/* Ensure card body sits above media and has readable background */
.gnp-spotlight-side__item .gnp-card__body{
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	color: #fff;
	padding: 12px 14px;
	background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.32));
}

/* Side card variant: image left, content right */
.gnp-card--side{
	display: flex;
	align-items: stretch;
	gap: 16px;
}

.gnp-card--side .gnp-card__media{
	position: relative;
	flex: 0 0 48%;
	height: 100%;
	overflow: hidden;
}

/* Ensure side cards don't inherit hero sizing or other large heights */
.gnp-card--side{
	min-height: 120px;
	/* allow natural height to avoid cutting titles; let the image crop instead */
	max-height: none;
}

.gnp-card--side .gnp-card__media img,
.gnp-card--side .gnp-card__media picture{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/* diagonal cut on the right edge */
	clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
	-webkit-clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
	transition: transform .45s ease;
}

/* Fade the image into the content area using a mask gradient for smooth transition */
.gnp-card--side .gnp-card__media::after{
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 20%;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.36) 100%);
	mix-blend-mode: multiply;
}

.gnp-card--side .gnp-card__body{
	position: relative;
	flex: 1 1 auto;
	padding: 18px 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: transparent;
	color: var(--geeknplay-theme-text, #0f172a);
}

/* If the card contains gnp-card--hero class (from original markup), override hero-specific rules for side variant */
.gnp-card--side.gnp-card--hero{
	box-shadow: none !important;
	border: none !important;
}

/* Reduce the global hover transform for side items to avoid visual jumps */
.gnp-spotlight-side__item .gnp-card:hover{
	transform: none !important;
	box-shadow: none !important;
}

/* Dark mode tweaks for side cards */
html[data-theme="dark"] .gnp-card--side .gnp-card__body{
	color: #e6eefc;
}

html[data-theme="dark"] .gnp-card--side .gnp-card__media::after{
	background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 60%, rgba(0,0,0,0.5) 100%);
}

/* Side title color in light theme as requested */
.gnp-card--side .gnp-card__title a{
	color: var(--geeknplay-theme-text, #152033);
}

/* Ensure titles and bodies placed above the media */
.gnp-spotlight-side__item .gnp-card__body,
.gnp-spotlight-subhero__card .gnp-card__body,
.gnp-spotlight-hero__card .gnp-card__body{
	position: relative;
	z-index: 2;
	color: #fff;
}

/* Responsive stack */
@media (max-width: 900px){
	.gnp-spotlight-layout{ grid-template-columns: 1fr; }
	.gnp-spotlight-subhero{ grid-column: 1 / -1; }
	.gnp-spotlight-side{ grid-column: 1 / -1; }
	.gnp-spotlight-hero__card .gnp-card__media,
	.gnp-spotlight-subhero__card .gnp-card__media{ height: 260px; }
	.gnp-card--side{ max-height: none; }
	.gnp-card--side .gnp-card__media{ flex-basis: 40%; }
}

.gnp-home-section--featured-left .gnp-featured-layout{
	display:grid;
	grid-template-columns:2fr 1fr;
	gap:16px;
}

.gnp-home-section--grid .gnp-home-grid{
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:16px;
}

.gnp-home-section--list .gnp-home-list__item{
	border-radius:8px;
}

/* Small responsive tweaks */
@media (max-width: 768px){
	.gnp-home-section--grid .gnp-home-grid{grid-template-columns:repeat(2,1fr);}
	.gnp-home-section--featured-left .gnp-featured-layout{grid-template-columns:1fr;}
}

/* --- Visual polish & animations --- */
.gnp-card{
	transition: transform .24s ease, box-shadow .24s ease;
	will-change: transform;
}
.gnp-card:hover{
	transform: translateY(-8px) scale(1.018);
	box-shadow: 0 18px 48px rgba(15,23,42,0.20);
}

/* Compact card: show review conclusion as overlay on hover */
.gnp-card--compact{
	position: relative;
	overflow: hidden;
}

.gnp-card--compact .gnp-card__conclusion{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	display: flex;
	align-items: flex-end;
	padding: 16px;
	background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.38) 40%, rgba(0,0,0,0) 100%);
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s ease;
	z-index: 9;
}

.gnp-card--compact .gnp-card__conclusion-text{
	margin: 0;
	font-size: .95rem;
	line-height: 1.4;
	max-height: 60%;
	overflow: auto;
}

.gnp-card--compact:hover .gnp-card__conclusion{
	opacity: 1;
	pointer-events: auto;
}

.gnp-card__title a{
	text-decoration:none;
	color:inherit;
	position:relative;
}
.gnp-card__title a:after{
	content:'';
	position:absolute;
	left:0; right:0; bottom:-6px;
	height:3px; width:0;
	background:linear-gradient(90deg,var(--gnp-accent),#ff9a8b);
	transition: width .28s cubic-bezier(.2,.8,.2,1);
	border-radius:2px;
}
.gnp-card.is-hover .gnp-card__title a:after{
	width:60%;
}

/* Tests section: flip cards with score + conclusion */
.gnp-section--tests .gnp-card--review-flip,
.gnp-section--critique .gnp-card--review-flip,
.gnp-section--preview .gnp-card--review-flip{
	position: relative;
	perspective: 1200px;
	min-height: 280px;
	border: none;
	background: transparent;
	box-shadow: none;
}

.gnp-card--review-flip .gnp-card-flip__inner{
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 280px;
	transform-style: preserve-3d;
	transition: transform .8s cubic-bezier(.2,.8,.2,1);
	border-radius: 12px;
}

.gnp-card--review-flip:hover .gnp-card-flip__inner,
.gnp-card--review-flip:focus-within .gnp-card-flip__inner{
	transform: rotateY(180deg);
}

.gnp-card--review-flip .gnp-card-flip__face{
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 12px;
	overflow: hidden;
	background: color-mix(in srgb, var(--geeknplay-theme-surface, #fff) 96%, transparent);
	border: 1px solid color-mix(in srgb, var(--geeknplay-theme-border, #d8e0ec) 88%, transparent);
	box-shadow: 0 12px 24px rgba(15,23,42,0.08);
	display: flex;
	flex-direction: column;
}

.gnp-card--review-flip .gnp-card-flip__face--front{
	transform: rotateY(0deg);
}

.gnp-card--review-flip .gnp-card-flip__face--back{
	transform: rotateY(180deg);
	position: relative;
	padding: 0;
	justify-content: flex-end;
	gap: 0;
}

.gnp-card--review-flip .gnp-card-flip__back-media{
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.gnp-card--review-flip .gnp-card-flip__back-media img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.gnp-card--review-flip .gnp-card-flip__back-media::after{
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.2) 100%);
	z-index: 1;
}

.gnp-card--review-flip .gnp-card-flip__back-content{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 12px;
	background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.58) 46%, rgba(0,0,0,0.08) 100%);
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #fff;
}

.gnp-card--review-flip .gnp-card__media{
	position: absolute;
	inset: 0;
	display: block;
	min-height: 140px;
	width: 100%;
	height: 100%;
	z-index: 0 !important;
}

.gnp-card--review-flip .gnp-card__media-placeholder,
.gnp-card--review-flip .gnp-card-flip__back-media .gnp-card__media-placeholder{
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	background:
		radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--geeknplay-theme-accent, #c89200) 40%, transparent), transparent 42%),
		radial-gradient(circle at 84% 78%, color-mix(in srgb, var(--geeknplay-theme-primary, #0d3884) 45%, transparent), transparent 48%),
		linear-gradient(135deg, var(--geeknplay-theme-surface-alt, #eef2f8), var(--geeknplay-theme-surface, #ffffff));
}

html[data-theme="dark"] .gnp-card--review-flip .gnp-card__media-placeholder,
html[data-theme="dark"] .gnp-card--review-flip .gnp-card-flip__back-media .gnp-card__media-placeholder{
	background:
		radial-gradient(circle at 16% 20%, color-mix(in srgb, var(--geeknplay-theme-accent, #fccb06) 36%, transparent), transparent 44%),
		radial-gradient(circle at 86% 80%, color-mix(in srgb, var(--geeknplay-theme-primary-alt, #154da8) 50%, transparent), transparent 50%),
		linear-gradient(135deg, var(--geeknplay-theme-surface, #131a26), var(--geeknplay-theme-surface-alt, #1a2433));
}

.gnp-card--review-flip .gnp-card__media img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gnp-card--review-flip .gnp-card__media::after{
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.6) 100%);
	z-index: 1;
}

.gnp-card--review-flip .gnp-card__body{
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 999!important;
	background: linear-gradient(to top, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.14) 100%) !important;
	color: #ffffff !important;
}

.gnp-card--review-flip .gnp-card-flip__back-content{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999!important;
	background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.58) 42%, rgba(0,0,0,0.00) 100%) !important;
	color: #ffffff !important;
}

.gnp-card--review-flip .gnp-card__score{
	position: absolute;
	right: 10px;
	top: 10px;
	font-size: .85rem;
	font-weight: 800;
	padding: 6px 8px;
	border-radius: 8px;
	color: #fff;
	background: linear-gradient(135deg, var(--geeknplay-theme-accent, #c89200), var(--geeknplay-theme-primary-alt, #154da8));
	box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

.gnp-card--review-flip .gnp-card-flip__label{
	margin: 0;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .09em;
	font-weight: 800;
	color: rgba(255,255,255,.82);
	text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

.gnp-card--review-flip .gnp-card-flip__title{
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.gnp-card--review-flip .gnp-card-flip__excerpt{
	margin: 0;
	font-size: .92rem;
	line-height: 1.45;
	color: rgba(255,255,255,.9);
	text-shadow: 0 1px 3px rgba(0,0,0,.45);
	display: -webkit-box;
	-webkit-line-clamp: 10;
	line-clamp: 10;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gnp-card--review-flip .gnp-card-flip__cta{
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .82rem;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

/* Featured-left tests layout: big card + cards below main */
.gnp-featured-main-stack{
	margin-top: 12px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

/* Main feature review card: keep impact but reduce height */
.gnp-featured-main > .gnp-card--review-flip,
.gnp-featured-main > .gnp-card--review-flip .gnp-card-flip__inner{
	min-height: 180px;
}

/* Make main feature same as side: full-cover image + overlay text */
.gnp-featured-main > .gnp-card--review-flip .gnp-card-flip__face--front,
.gnp-featured-main > .gnp-card--review-flip .gnp-card-flip__face--back{
	position: relative;
	overflow: hidden;
}

.gnp-featured-main > .gnp-card--review-flip .gnp-card__media,
.gnp-featured-main > .gnp-card--review-flip .gnp-card-flip__back-media{
	position: absolute;
	inset: 0;
	min-height: 0;
	width: 100%;
	height: 100%;
	border-radius: 0;
	z-index: 0;
}

.gnp-featured-main > .gnp-card--review-flip .gnp-card__media img,
.gnp-featured-main > .gnp-card--review-flip .gnp-card-flip__back-media img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gnp-featured-main > .gnp-card--review-flip .gnp-card__media::after{
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.6) 100%);
	z-index: 1;
}

.gnp-featured-main > .gnp-card--review-flip .gnp-card-flip__back-media::after{
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.6) 100%);
	z-index: 1;
}

.gnp-featured-main > .gnp-card--review-flip .gnp-card__body,
.gnp-featured-main > .gnp-card--review-flip .gnp-card-flip__back-content{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px;
	background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.58) 46%, rgba(0,0,0,0.08) 100%);
	color: #fff;
	z-index: 2;
}

.gnp-featured-main-stack-item .gnp-card--review-flip,
.gnp-featured-side-item .gnp-card--review-flip{
	min-height: 180px;
}

.gnp-featured-main-stack-item .gnp-card--review-flip .gnp-card-flip__inner,
.gnp-featured-side-item .gnp-card--review-flip .gnp-card-flip__inner{
	min-height: 180px;
}

/* Side list: image should fill the whole card */
.gnp-featured-side-item .gnp-card--review-flip .gnp-card-flip__face--front{
	position: relative;
	overflow: hidden;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card-flip__face--back{
	position: relative;
	overflow: hidden;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card__media{
	position: absolute;
	inset: 0;
	min-height: 0;
	width: 100%;
	height: 100%;
	border-radius: 0;
	z-index: 0;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card-flip__back-media{
	position: absolute;
	inset: 0;
	min-height: 0;
	width: 100%;
	height: 100%;
	border-radius: 0;
	z-index: 0;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card__media img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card__media::after{
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.6) 100%);
	z-index: 1;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card-flip__back-media img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card-flip__back-media::after{
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.6) 100%);
	z-index: 1;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card__media-placeholder,
.gnp-featured-side-item .gnp-card--review-flip .gnp-card-flip__back-media .gnp-card__media-placeholder{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card__body{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px;
	background: linear-gradient(to top, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.58) 46%, rgba(0,0,0,0.08) 100%);
	color: #fff;
	gap: 6px;
	z-index: 2;
}

.gnp-featured-side-item .gnp-card--review-flip .gnp-card-flip__back-content{
	background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.58) 46%, rgba(0,0,0,0) 100%);
	z-index: 2;
}

@media (max-width: 900px){
	.gnp-card--review-flip,
	.gnp-card--review-flip .gnp-card-flip__inner{
		min-height: 240px;
	}

	.gnp-featured-main > .gnp-card--review-flip,
	.gnp-featured-main > .gnp-card--review-flip .gnp-card-flip__inner{
		min-height: 165px;
	}

	.gnp-featured-main-stack{
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.gnp-featured-main-stack-item .gnp-card--review-flip,
	.gnp-featured-side-item .gnp-card--review-flip,
	.gnp-featured-main-stack-item .gnp-card--review-flip .gnp-card-flip__inner,
	.gnp-featured-side-item .gnp-card--review-flip .gnp-card-flip__inner{
		min-height: 170px;
	}

	/* Avoid forced flip on touch devices */
	.gnp-card--review-flip:hover .gnp-card-flip__inner{
		transform: none;
	}

	.gnp-card--review-flip .gnp-card-flip__face{
		position: relative;
	}

	.gnp-card--review-flip .gnp-card-flip__face--back{
		display: none;
	}
}

/* Score ribbon (if card-featured contains .gnp-card__score) */
.gnp-card__score{
	position:absolute;
	right:12px; top:12px;
	background:rgba(0,0,0,0.75);
	color:#fff; padding:6px 8px; border-radius:6px; font-weight:700;
	box-shadow:0 6px 18px rgba(2,6,23,0.25);
}

/* Neutralize legacy review-flip mechanics (we now use compact cards everywhere for tests) */
.gnp-card--review-flip .gnp-card-flip__inner,
.gnp-card--review-flip .gnp-card-flip__face{
	transform: none !important;
	position: relative !important;
	inset: auto !important;
	backface-visibility: visible !important;
}
.gnp-card--review-flip .gnp-card-flip__face--back{ display: none !important; }
.gnp-card--review-flip .gnp-card__body,
.gnp-card--review-flip .gnp-card-flip__back-content{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px;
	background: linear-gradient(to top, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.14) 100%);
	color: #fff;
	z-index: 5;
}

/* Make section headers pop */
.gnp-home-section__header{ align-items:flex-end; }
.gnp-home-section__title{ font-size:1.35rem; letter-spacing:-0.02em; }
.gnp-home-section__intro{ display:block; margin-top:6px; opacity:0.95; }

/* subtle entrance animation */
@keyframes gnp-fade-up{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none; } }
.gnp-home-section{ animation: gnp-fade-up .45s ease both; }

/* hero styling improvements */
.gnp-hero{ position:relative; padding:28px; border-radius:14px; background-image:linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.01)); }
.gnp-hero article{ transition:opacity .4s ease; }
.gnp-hero article:not(.is-active){ opacity:0; position:absolute; inset:0; }
.gnp-hero article.is-active{ opacity:1; position:relative; }

/* responsive tweaks */
@media (max-width:480px){
	.gnp-home-section__title{ font-size:1.05rem; }
}

/* wrapper spacing */
.gnp-section-wrapper{
	margin-bottom:56px;
	position:relative;
	transition: transform .32s ease, opacity .32s ease;
	box-shadow: 0 22px 48px rgba(15,23,42,0.08);
}

.gnp-section-wrapper[data-reveal="true"]{
	opacity: 0;
	transform: translateY(16px);
}

.gnp-section-wrapper.is-visible{
	opacity: 1;
	transform: translateY(0);
}

.gnp-section-wrapper::after{
	content:'';
	position:absolute;
	inset:0;
	border-radius:16px;
	box-shadow:0 1px 0 rgba(0,0,0,0.02);
	pointer-events:none;
}

.gnp-section-wrapper::before{
	content:'';
	position:absolute;
	inset: -1px;
	border-radius: 18px;
	background: linear-gradient(120deg, rgba(200,146,0,.16), rgba(255,90,95,.08), transparent 58%);
	opacity: .35;
	pointer-events:none;
	z-index: -1;
}

/* HERO BLOCK */
.gnp-section--hero-block{
	border-radius:18px;
	box-shadow:
		0 30px 80px rgba(0,0,0,0.10),
		0 10px 30px rgba(0,0,0,0.05);
	transform:translateY(-2px);
}

/* Spotlight premium layout */
.gnp-home-section--spotlight .gnp-spotlight-layout{
	display:grid;
	grid-template-columns: 1.6fr 0.9fr;
	gap:22px;
	align-items:start;
}

.gnp-spotlight-hero__card .gnp-card--featured {
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	height: 100%;
	min-height: 420px;
	box-shadow: 0 30px 80px rgba(2,6,23,0.16);
}

.gnp-spotlight-hero__card .gnp-card__media img,
.gnp-spotlight-hero__card .gnp-card__media{ height:100%; width:100%; object-fit:cover; }

.gnp-spotlight-hero__card .gnp-card__body{
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 28px;
	background: linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.36) 40%, rgba(0,0,0,0.78) 100%);
	color: #fff;
	z-index: 4;
}

.gnp-spotlight-hero-card .gnp-card__title a{ font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight:800; color: #fff; }
.gnp-spotlight-hero-card .gnp-card__excerpt{ display:block; color: rgba(255,255,255,0.92); margin-top:10px; }

.gnp-spotlight-side__grid{ display:grid; grid-template-columns:1fr; gap:12px; }
.gnp-spotlight-side__item .gnp-card{ min-height:120px; border-radius:12px; overflow:hidden; display:flex; }
.gnp-spotlight-side__item .gnp-card__media{ width:40%; min-width:120px; height:100%; }
.gnp-spotlight-side__item .gnp-card__body{ width:60%; padding:12px; align-self:stretch; }
.gnp-spotlight-side-title a{ font-size:1rem; font-weight:700; }

/* Decorative accent for spotlight */
.gnp-home-section--spotlight::before{
	content:'';
	position:absolute;
	left:-40px; top:10px;
	width:260px; height:260px; border-radius:50%;
	background: radial-gradient(circle at center, rgba(200,146,0,0.12), rgba(200,146,0,0));
	pointer-events:none; z-index:0;
}

html[data-theme="dark"] .gnp-spotlight-hero__card .gnp-card__body{ background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.9) 100%); }

@media (max-width: 900px){
	.gnp-spotlight-hero__card .gnp-card--featured{ min-height:260px; }
	.gnp-spotlight-layout{ grid-template-columns:1fr; }
	.gnp-spotlight-side__item .gnp-card{ flex-direction:row; }
	.gnp-spotlight-side__item .gnp-card__media{ width:36%; }
}

/* BOXED */
.gnp-section--boxed{
	border-radius:14px;
	border:1px solid var(--gnp-border);
	box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

/* DARK SECTION */
.gnp-section--dark{
	background:
		radial-gradient(circle at 20% 20%, rgba(255,90,95,0.15), transparent 40%),
		#0f172a;
	color:#fff;
	padding:26px;
	border-radius:16px;
}

.gnp-section--dark .gnp-home-section__title{
	color:#fff;
}

.gnp-section--dark .gnp-home-section__intro{
	color:rgba(255,255,255,0.7);
}

.gnp-section--dark .gnp-card,
.gnp-section--dark .gnp-home-list__item{
	background: rgba(15,23,42,0.72);
	border-color: rgba(255,255,255,0.1);
	color: #fff;
}

/* break editorial */
.gnp-break-banner{
	text-align:center;
	margin:70px 0;
	font-weight:800;
	letter-spacing:0.12em;
	text-transform:uppercase;
	color:#111827;
	position:relative;
}

.gnp-break-banner::before,
.gnp-break-banner::after{
	content:'';
	position:absolute;
	top:50%;
	width:40%;
	height:1px;
	background:linear-gradient(to right, transparent, var(--gnp-border));
}

.gnp-break-banner::before{ left:0; }
.gnp-break-banner::after{ right:0; transform:scaleX(-1); }

@media (max-width: 900px){
	.gnp-home-premium-intro{
		padding: 18px;
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.gnp-home-premium-intro::after{ display: none; }
	.gnp-home-premium-headlines{ padding: 10px; }
	.gnp-home-premium-subtitle{ font-size: .95rem; }
	.gnp-home-premium-nav{
		top: 0;
		border-radius: 14px;
		justify-content: flex-start;
		gap: 8px;
		padding: 9px 8px;
		scroll-padding-inline: 8px;
	}
	.gnp-section-wrapper{ padding: 14px; }
	.gnp-home-section--grid .gnp-home-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
	body.home .gnp-home-premium,
	body.blog .gnp-home-premium,
	body.page-template-home .gnp-home-premium {
		width: calc(100vw - 2px) !important;
		padding-left: 6px;
		padding-right: 6px;
	}
}

@media (max-width: 640px){
	.gnp-home-premium-nav{
		gap: 6px;
		padding: 8px 6px;
		margin: 0 0 14px;
		border-radius: 12px;
	}

	.gnp-home-premium-chip{
		font-size: .78rem;
		padding: 7px 10px;
	}
}

@media (max-width: 1180px){
	.gnp-home-premium-intro{
		grid-template-columns: minmax(0,1.3fr) minmax(240px,1fr);
		gap: 18px;
		padding: 26px;
	}
	.gnp-home-premium-title{
		font-size: clamp(1.2rem, 2.4vw, 1.9rem);
	}
}

@media (max-width: 640px){
	.gnp-home-premium-intro{
		padding: 14px;
		border-radius: 14px;
	}
	.gnp-home-premium-kicker{
		font-size: .7rem;
		letter-spacing: .12em;
	}
	.gnp-home-premium-title{
		font-size: 1.1rem;
		line-height: 1.2;
	}
	.gnp-home-premium-tags{
		gap: 8px;
	}
	.gnp-home-premium-tag{
		font-size: .68rem;
		padding: 6px 10px;
	}
	.gnp-home-premium-headline{
		padding: 10px;
	}
}

@media (min-width: 1500px){
	.gnp-home-premium{ max-width:min(1780px, calc(100vw - 22px)) !important; }
	.gnp-home-section--grid .gnp-home-grid{ grid-template-columns:repeat(5,minmax(0,1fr)); }
	.gnp-home-section--featured-left .gnp-featured-layout{ grid-template-columns:2.25fr 1fr; gap:22px; }
}

/* Ensure section headers and card meta are visible in light theme
   without altering spotlight/hero or explicitly dark sections. */
html:not([data-theme="dark"]) .gnp-home-section:not(.gnp-home-section--spotlight):not(.gnp-section--hero-block):not(.gnp-section--dark) .gnp-home-section__title,
html:not([data-theme="dark"]) .gnp-home-section:not(.gnp-home-section--spotlight):not(.gnp-section--hero-block):not(.gnp-section--dark) .gnp-home-section__intro{
    color: var(--geeknplay-theme-text, #111827) !important;
}

html:not([data-theme="dark"]) .gnp-home-section:not(.gnp-home-section--spotlight):not(.gnp-section--hero-block):not(.gnp-section--dark) .gnp-card__meta,
html:not([data-theme="dark"]) .gnp-home-section:not(.gnp-home-section--spotlight):not(.gnp-section--hero-block):not(.gnp-section--dark) .gnp-card__body,
html:not([data-theme="dark"]) .gnp-home-section:not(.gnp-home-section--spotlight):not(.gnp-section--hero-block):not(.gnp-section--dark) .gnp-card .gnp-card__meta{
    color: var(--geeknplay-theme-muted, #6b7280) !important;
}

/* Grid cards: ensure meta sits at the bottom of the card body so all metas
   share the same vertical position regardless of title length. Scoped to
   grid sections to avoid touching spotlight/hero/list variants. */
.gnp-home-section--grid .gnp-home-grid .gnp-card{
	display: flex;
	flex-direction: column;
	height: 100%; /* allow card body to use flexbox space */
}
.gnp-home-section--grid .gnp-home-grid .gnp-card__body{
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0; /* prevents children from overflowing in some browsers */
}
.gnp-home-section--grid .gnp-home-grid .gnp-card__meta{
	margin-top: auto; /* pushes meta to the bottom of the body */
	align-self: flex-start;
	color: var(--geeknplay-theme-muted, #6b7280);
	font-size: .92rem;
}
.gnp-home-section--grid .gnp-home-grid .gnp-card__title{
	margin-bottom: 8px;
}

