/* ==========================================================================
   BKA 2026 v5 · PAGE · 2026 adventi adományozás (template-parts/v5/page-groups/advent.php)
   Brand hero with the 2025 garland and the gift-box tree · statement + hanging gift ornaments ·
   seven gift cards with a red gift tag (the largest one as the wide red card) · gift card dialog
   with the in-card payment. v5 tokens only: red is the one brand colour, mist / white surfaces.
   ========================================================================== */

/* Hero --------------------------------------------------------------------- */
.v5-advent-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(60rem 36rem at 88% 12%, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, 0) 62%),
		radial-gradient(70rem 40rem at -10% 110%, rgba(122, 11, 38, .42) 0%, rgba(122, 11, 38, 0) 60%),
		linear-gradient(140deg, var(--v5-red) 0%, var(--v5-red-600) 100%);
	isolation: isolate;
}
/* Falling-snow dots, fading in below the garland. */
.v5-advent-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image:
		radial-gradient(rgba(255, 255, 255, .2) 1.3px, transparent 1.8px),
		radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.5px);
	background-size: 52px 52px, 86px 86px;
	background-position: 0 0, 26px 40px;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
}
.v5-advent-hero__garland {
	position: absolute;
	z-index: 0;
	top: 0;
	left: 50%;
	width: max(100%, 64rem);
	transform: translateX(-50%);
	pointer-events: none;
}
.v5-advent-hero__garland img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(64, 0, 18, .38)); }

.v5-advent-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	align-items: center;
	gap: 2.5rem clamp(2rem, 5vw, 6rem);
	min-height: clamp(38rem, 28rem + 20vw, 52rem);
	padding-block: clamp(10rem, 6rem + 11vw, 17rem) clamp(4rem, 3rem + 4vw, 7rem);
}
.v5-advent-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin: 0 0 1.1rem;
	color: #fff;
	font-family: var(--v5-font-display);
	font-size: clamp(1rem, .88rem + .42vw, 1.3rem);
	font-weight: var(--v5-w-display);
	line-height: 1.2;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.v5-advent-hero__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 1.1em;
	height: 1.1em;
	background: #fff;
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.v5-advent-hero__title {
	max-width: 13ch;
	margin: 0;
	color: #fff;
	font-size: var(--v5-fs-hero);
	line-height: 1.02;
	text-wrap: balance;
	text-shadow: 0 2px 30px rgba(64, 0, 18, .25);
}
.v5-advent-hero__lead {
	max-width: 34ch;
	margin: 1.4rem 0 0;
	color: var(--v5-on-red-soft);
	font-family: var(--v5-font-display);
	font-size: clamp(1.25rem, 1.05rem + .75vw, 1.75rem);
	line-height: 1.3;
}
.v5-advent-hero__action { margin: 2.25rem 0 0; }
.v5-advent-hero__action .v5-icon { transform: rotate(90deg); }

/* The gift-box tree on a white disc with two soft halo rings. */
.v5-advent-hero__art {
	position: relative;
	justify-self: center;
	display: grid;
	place-items: center;
	width: min(100%, 31rem);
	aspect-ratio: 1;
	margin: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 40%, #fff 0%, #fff 58%, var(--v5-red-50) 100%);
	box-shadow:
		0 0 0 clamp(.75rem, 1.4vw, 1.25rem) rgba(255, 255, 255, .14),
		0 0 0 clamp(1.6rem, 3vw, 2.75rem) rgba(255, 255, 255, .07),
		0 50px 100px -30px rgba(64, 0, 18, .65);
}
.v5-advent-hero__art img { width: 70%; height: auto; transform: translateY(1%); }

/* Sparkles: white four-point stars that twinkle (static with reduced motion). */
.v5-advent-hero__sparkles { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.v5-advent-hero__sparkles i {
	position: absolute;
	width: var(--s, 14px);
	aspect-ratio: 1;
	background: #fff;
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
	opacity: .55;
}
.v5-advent-hero__sparkles i:nth-child(1) { top: 42%; left: 4%; --s: 12px; }
.v5-advent-hero__sparkles i:nth-child(2) { top: 64%; left: 44%; --s: 18px; }
.v5-advent-hero__sparkles i:nth-child(3) { top: 86%; left: 12%; --s: 10px; }
.v5-advent-hero__sparkles i:nth-child(4) { top: 30%; left: 52%; --s: 9px; }
.v5-advent-hero__sparkles i:nth-child(5) { top: 74%; left: 94%; --s: 16px; }
.v5-advent-hero__sparkles i:nth-child(6) { top: 46%; left: 96%; --s: 10px; }
.v5-advent-hero__sparkles i:nth-child(7) { top: 90%; left: 58%; --s: 12px; }
.v5-advent-hero__sparkles i:nth-child(8) { top: 56%; left: 26%; --s: 8px; }
.v5-advent-hero__sparkles i:nth-child(9) { top: 34%; left: 88%; --s: 20px; }

/* Statement + hanging gift ornaments --------------------------------------- */
.v5-advent-intro__inner { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.v5-advent-intro__statement {
	max-width: 52rem;
	margin: 0;
	color: var(--v5-ink);
	font-family: var(--v5-font-display);
	font-size: clamp(1.5rem, 1.05rem + 1.45vw, 2.375rem);
	font-weight: var(--v5-w-display);
	line-height: 1.24;
	text-wrap: balance;
}
.v5-advent-intro__text { max-width: 46rem; margin: 0; color: var(--v5-ink-soft); font-size: var(--v5-fs-lead); line-height: 1.65; }
.v5-advent-ornaments {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 clamp(.6rem, 1.8vw, 1.75rem);
	margin: clamp(1.25rem, 1rem + 1vw, 2.25rem) 0 0;
	padding: 0;
	list-style: none;
}
/* The line the ornaments hang from (strings of three lengths). */
.v5-advent-ornaments::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(249, 192, 203, 0) 0%, var(--v5-red-200) 12%, var(--v5-red-200) 88%, rgba(249, 192, 203, 0) 100%);
}
.v5-advent-ornaments__item {
	--v5-string: 1.6rem;
	position: relative;
	margin: 0;
	padding-top: var(--v5-string);
	transform-origin: 50% 0;
}
.v5-advent-ornaments__item:nth-child(3n + 2) { --v5-string: 2.7rem; }
.v5-advent-ornaments__item:nth-child(3n) { --v5-string: 2.1rem; }
.v5-advent-ornaments__item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: calc(var(--v5-string) - .3rem);
	margin-left: -1px;
	background: var(--v5-red-200);
}
.v5-advent-ornaments__link {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(4.25rem, 3.5rem + 2vw, 5.5rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 38%, #fff 0%, var(--v5-red-50) 50%, var(--v5-red-100) 100%);
	box-shadow: 0 10px 22px -12px rgba(var(--v5-red-rgb), .55), inset 0 0 0 1px var(--v5-red-100);
	transition: transform var(--v5-dur) var(--v5-ease), box-shadow var(--v5-dur) var(--v5-ease);
}
/* The ornament cap. */
.v5-advent-ornaments__link::before {
	content: "";
	position: absolute;
	top: -.35rem;
	left: 50%;
	width: .9rem;
	height: .5rem;
	margin-left: -.45rem;
	border-radius: 3px 3px 1px 1px;
	background: var(--v5-red);
}
.v5-advent-ornaments__link img { width: 76%; height: auto; }
.v5-advent-ornaments__link:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 30px -12px rgba(var(--v5-red-rgb), .6), inset 0 0 0 1px var(--v5-red-200); }

/* Gifts ---------------------------------------------------------------------- */
.v5-advent-gifts { overflow: hidden; scroll-margin-top: var(--v5-header-h); }
.v5-advent-gifts__snow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(var(--v5-red-rgb), .07) 1.6px, transparent 2.1px);
	background-size: 36px 36px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}
.v5-advent-gifts > .v5-shell { position: relative; }
.v5-advent-gifts__heading .v5-heading__title { max-width: 20ch; }
.v5-advent-gifts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, .8rem + 1.6vw, 2.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.v5-gift {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: clamp(1.5rem, 1.1rem + 1vw, 2.25rem);
	border-radius: var(--v5-radius-lg);
	background: #fff;
	box-shadow: var(--v5-shadow-card);
	scroll-margin-top: calc(var(--v5-header-h) + 1.5rem);
	transition: transform var(--v5-dur) var(--v5-ease), box-shadow var(--v5-dur) var(--v5-ease);
}
.v5-gift:hover { transform: translateY(-4px); box-shadow: var(--v5-shadow-lift); }
.v5-gift:target { box-shadow: 0 0 0 3px var(--v5-red), var(--v5-shadow-lift); }
.v5-gift__art {
	display: grid;
	place-items: center;
	width: min(12rem, 72%);
	aspect-ratio: 1;
	margin: .75rem auto 1.75rem;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 38%, #fff 0%, var(--v5-red-50) 48%, var(--v5-red-100) 100%);
}
.v5-gift__art img { width: 84%; height: auto; transition: transform .6s var(--v5-ease); }
.v5-gift:hover .v5-gift__art img { transform: rotate(-6deg) scale(1.05); }
.v5-gift__body { display: flex; flex: 1; flex-direction: column; }

/* The amount on a red gift tag: pointed end with a punched hole, hung slightly askew. */
.v5-gift__tag {
	position: absolute;
	top: 1.35rem;
	right: 1.1rem;
	display: inline-flex;
	align-items: baseline;
	gap: .3rem;
	margin: 0;
	padding: .55rem 1rem .55rem 1.75rem;
	background: var(--v5-red);
	color: #fff;
	font-family: var(--v5-font-display);
	line-height: 1;
	white-space: nowrap;
	clip-path: polygon(1.05rem 0, 100% 0, 100% 100%, 1.05rem 100%, 0 50%);
	border-radius: 0 var(--v5-radius-xs) var(--v5-radius-xs) 0;
	filter: drop-shadow(0 8px 10px rgba(var(--v5-red-rgb), .35));
	transform: rotate(-6deg);
	transform-origin: 100% 0;
}
.v5-gift__tag::before {
	content: "";
	position: absolute;
	top: 50%;
	left: .8rem;
	width: .45rem;
	height: .45rem;
	margin-top: -.225rem;
	border-radius: 50%;
	background: #fff;
}
.v5-gift__amount { font-size: 1.5rem; font-weight: var(--v5-w-display); letter-spacing: .01em; }
.v5-gift__currency { font-size: .95rem; }
.v5-gift__title {
	margin: 0 0 .75rem;
	color: var(--v5-ink);
	font-size: clamp(1.25rem, 1.08rem + .45vw, 1.5rem);
	line-height: 1.18;
	text-wrap: balance;
}
.v5-gift__text { margin: 0 0 1.75rem; color: var(--v5-muted); font-size: .9375rem; line-height: 1.65; }
.v5-gift__button { width: 100%; margin-top: auto; }
.v5-gift__button .v5-icon { width: 1.2em; height: 1.2em; }

/* The largest gift: the wide red card. */
.v5-gift--featured {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4.5rem);
	padding: clamp(2rem, 1.4rem + 2.4vw, 3.75rem);
	color: #fff;
	background:
		radial-gradient(42rem 22rem at 0% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(135deg, var(--v5-red) 0%, var(--v5-red-600) 100%);
	box-shadow: var(--v5-shadow-red);
}
.v5-gift--featured:hover { box-shadow: 0 26px 50px -22px rgba(var(--v5-red-rgb), .7); }
.v5-gift--featured .v5-gift__art {
	flex: 0 0 auto;
	width: clamp(11rem, 8rem + 9vw, 16rem);
	margin: 0;
	background: radial-gradient(circle at 50% 40%, #fff 0%, #fff 60%, var(--v5-red-50) 100%);
	box-shadow: 0 0 0 .9rem rgba(255, 255, 255, .14), 0 0 0 1.9rem rgba(255, 255, 255, .07);
}
.v5-gift--featured .v5-gift__body { align-items: flex-start; }
.v5-gift--featured .v5-gift__tag {
	position: static;
	align-self: flex-start;
	margin: 0 0 1.25rem;
	background: #fff;
	color: var(--v5-red);
	filter: drop-shadow(0 8px 12px rgba(64, 0, 18, .3));
	transform: rotate(-3deg);
	transform-origin: 0 50%;
}
.v5-gift--featured .v5-gift__tag::before { background: var(--v5-red); }
.v5-gift--featured .v5-gift__title { max-width: 24ch; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.375rem); line-height: 1.1; }
.v5-gift--featured .v5-gift__text { max-width: 46rem; color: var(--v5-on-red-soft); font-size: 1rem; }
.v5-gift--featured .v5-gift__button { width: auto; margin-top: 0; }
.v5-gift--featured:target { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--v5-red), var(--v5-shadow-red); }

/* Locked view (password, until approved) ----------------------------------- */
.v5-advent-lock__card {
	padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
	border-radius: var(--v5-radius-lg);
	background: #fff;
	box-shadow: var(--v5-shadow-card);
	text-align: center;
}
.v5-advent-lock__card .post-password-form > p:first-child { margin: 0 0 1.5rem; color: var(--v5-ink-soft); font-size: var(--v5-fs-lead); }
.v5-advent-lock__card .post-password-form > p:last-child { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: .75rem; margin: 0; }
.v5-advent-lock__card label { display: grid; gap: .4rem; min-width: min(100%, 18rem); color: var(--v5-ink); font-size: .875rem; font-weight: var(--v5-w-bold); text-align: left; }
.v5-advent-lock__card input[type="password"] {
	width: 100%;
	min-height: 3.25rem;
	padding: .75rem 1rem;
	border: 1.5px solid var(--v5-line-strong);
	border-radius: var(--v5-radius-sm);
	background: #fff;
	color: var(--v5-ink);
	font-size: 1rem;
}
.v5-advent-lock__card input[type="password"]:focus { border-color: var(--v5-red); outline: none; box-shadow: var(--v5-field-focus); }
.v5-advent-lock__card input[type="submit"] {
	min-height: 3.25rem;
	padding: .85rem 1.75rem;
	border: 2px solid var(--v5-red);
	border-radius: var(--v5-radius-pill);
	background: var(--v5-red);
	color: #fff;
	font-size: .9375rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .06em;
	text-transform: uppercase;
	box-shadow: var(--v5-shadow-red);
	cursor: pointer;
}
.v5-advent-lock__card input[type="submit"]:hover { background: var(--v5-red-600); border-color: var(--v5-red-600); }

/* Gift card dialog (assets/js/v5/pages/advent.js) ---------------------------- */
.v5-gift-dialog {
	width: min(31rem, calc(100vw - 1.5rem));
	max-width: none;
	max-height: calc(100dvh - 1.5rem);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--v5-radius-lg);
	background: #fff;
	color: var(--v5-ink);
	box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
}
.v5-gift-dialog::backdrop { background: rgba(var(--v5-scrim), .74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.v5-gift-dialog__card { display: flex; flex-direction: column; max-height: calc(100dvh - 1.5rem); }
.v5-gift-dialog__head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 4.25rem 1.1rem 1.25rem;
	background:
		radial-gradient(20rem 10rem at 0% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(135deg, var(--v5-red) 0%, var(--v5-red-600) 100%);
	color: #fff;
}
.v5-gift-dialog__art {
	display: grid;
	flex: 0 0 4.25rem;
	place-items: center;
	height: 4.25rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 .4rem rgba(255, 255, 255, .16);
}
.v5-gift-dialog__art img { width: 80%; height: auto; }
.v5-gift-dialog__title { margin: 0; color: #fff; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.2; text-wrap: balance; }
.v5-gift-dialog__close {
	position: absolute;
	top: 50%;
	right: 1rem;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: -1.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	color: #fff;
	cursor: pointer;
	transition: background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
.v5-gift-dialog__close:hover { background: #fff; color: var(--v5-red); }
.v5-gift-dialog__close:focus-visible { outline: none; box-shadow: var(--v5-focus-on-red); }
.v5-gift-dialog__close .v5-icon { width: 1.2rem; height: 1.2rem; }
.v5-gift-dialog__body { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 1rem 1rem 1.25rem; }
.v5-gift-dialog__frame { display: block; width: 100%; min-height: 24rem; border: 0; background: transparent; }

/* Motion (only when the visitor allows it) --------------------------------- */
@keyframes v5-advent-twinkle { 0%, 100% { opacity: .15; transform: scale(.55) rotate(0deg); } 50% { opacity: .9; transform: scale(1) rotate(45deg); } }
@keyframes v5-advent-float { 0%, 100% { transform: translateY(1%); } 50% { transform: translateY(-2.5%); } }
@keyframes v5-advent-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes v5-advent-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes v5-advent-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
	.v5-advent-hero__sparkles i { animation: v5-advent-twinkle 4.6s ease-in-out infinite; }
	.v5-advent-hero__sparkles i:nth-child(2n) { animation-duration: 5.8s; animation-delay: -1.7s; }
	.v5-advent-hero__sparkles i:nth-child(3n) { animation-duration: 6.4s; animation-delay: -3.1s; }
	.v5-advent-hero__art img { animation: v5-advent-float 7s ease-in-out infinite; }
	.v5-advent-ornaments__item { animation: v5-advent-swing 5.5s ease-in-out infinite; animation-delay: calc(var(--v5-ornament) * -.8s); }
	.v5-gift-dialog[open] { animation: v5-advent-pop .34s var(--v5-ease) both; }
	.v5-gift-dialog[open]::backdrop { animation: v5-advent-fade .34s ease both; }
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 64rem) {
	.v5-advent-gifts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
	.v5-advent-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: clamp(9rem, 26vw, 12rem) clamp(3.5rem, 8vw, 5rem); }
	.v5-advent-hero__art { width: min(78vw, 24rem); }
	.v5-gift--featured { flex-direction: column; align-items: stretch; text-align: left; }
	.v5-gift--featured .v5-gift__art { align-self: center; margin-bottom: .5rem; }
	html:has(.v5-gift-dialog[open]) { overflow: hidden; }
}
@media (max-width: 40rem) {
	.v5-advent-hero__garland { width: max(100%, 40rem); }
	.v5-advent-hero__inner { padding-top: clamp(7.5rem, 34vw, 9rem); }
	.v5-advent-gifts__grid { grid-template-columns: minmax(0, 1fr); }
	.v5-advent-ornaments { gap: .75rem .6rem; }
	.v5-advent-ornaments::before { display: none; }
	.v5-advent-ornaments__item { --v5-string: .5rem; }
	.v5-advent-ornaments__item::before { display: none; }
	.v5-gift--featured .v5-gift__button { width: 100%; }
	.v5-gift-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); border-radius: var(--v5-radius); }
	.v5-gift-dialog__card { max-height: calc(100dvh - 1rem); }
	.v5-gift-dialog__head { padding: .9rem 3.75rem .9rem 1rem; }
	.v5-gift-dialog__art { flex-basis: 3.5rem; height: 3.5rem; }
	.v5-gift-dialog__body { padding: .75rem .75rem 1rem; }
}
