/*
 * Minisites (2026-10-19) - header badge + Minisite Hero module.
 * Loaded only inside a minisite (wgn_minisite_enqueue_assets()).
 * Figma file 7NMKzWkNz0av29wJ3JGOMk: header 551:65526 / 609:58355,
 * hero 554:68238 (desktop) / 609:58117 (mobile).
 * Logical properties (inset-inline-*) keep the RTL layout mirrored for EN.
 */

:root {
	--wgn-ms-accent: #5F8695;
	--wgn-ms-font-title: 'Fredoka', 'Noto Sans Hebrew', sans-serif;
	--wgn-ms-font-text: 'Noto Sans Hebrew New', 'Noto Sans Hebrew', sans-serif;
}

/* Minisite header = main header without the top bar (Figma 551:65526). */
.is-minisite .new_header .top-row {
	display: none;
}

/* ------------------------------------------------------------------
 * Header badge ("פסטיבל חורף מס׳ 13")
 * ------------------------------------------------------------------ */

.is-minisite .new_header,
.is-minisite .new_header .main-row,
.is-minisite .mobile-header-new {
	position: relative;
}

.wgn-ms-badge {
	position: absolute;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wgn-ms-accent);
	color: #fff;
	font-family: var(--wgn-ms-font-text);
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
}

.wgn-ms-badge:hover,
.wgn-ms-badge:focus {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.08);
}

/* Desktop: tab hanging from the top edge, just next to the main logo. */
.wgn-ms-badge--desktop {
	top: 0;
	inset-inline-start: 245px;
	padding: 8px 16px;
	border-radius: 0 0 8px 8px;
	font-size: 24px;
}

/* Mobile: small tab sitting on the bottom edge of the header, centered. */
.wgn-ms-badge--mobile {
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 8px;
	border-radius: 8px 8px 0 0;
	font-size: 12px;
}

@media (max-width: 1199px) {
	.wgn-ms-badge--desktop {
		font-size: 18px;
		padding: 6px 12px;
		inset-inline-start: 210px;
	}
}

/* ------------------------------------------------------------------
 * Minisite Hero
 * ------------------------------------------------------------------ */

.module-wrap:has(> .wgn-ms-hero) {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.wgn-ms-hero {
	position: relative;
	width: 100%;
	margin: 0 0 48px;
	font-family: var(--wgn-ms-font-text);
}

.wgn-ms-hero__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 582;
	min-height: 360px;
	max-height: 640px;
	overflow: hidden;
	background: #1d2a33;
}

.wgn-ms-hero__picture,
.wgn-ms-hero__image {
	display: block;
	width: 100%;
	height: 100%;
}

.wgn-ms-hero__image {
	object-fit: cover;
	object-position: center;
}

/* WGN logo - desktop: start side (right in RTL), lower half. */
.wgn-ms-hero__logo {
	position: absolute;
	z-index: 2;
	inset-inline-start: 6.4%;
	bottom: 27%;
	width: 252px;
	max-width: 22%;
	height: auto;
}

/* Dates + location - desktop: end side (left in RTL). */
.wgn-ms-hero__when {
	position: absolute;
	z-index: 2;
	inset-inline-end: 8.85%;
	bottom: 27%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: #fff;
	font-weight: 500;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.wgn-ms-hero__dates {
	font-size: 46px;
	line-height: 1.33;
}

.wgn-ms-hero__location {
	font-size: 28px;
	line-height: 1.33;
}

/* ------------------------------------------------------------------
 * Festival Days Card (Figma 547:65394) - reusable: inside the hero
 * (--hero, overlaps the image) or standalone (--block: page module,
 * minisite event pages).
 * ------------------------------------------------------------------ */

.wgn-ms-days-card {
	position: relative;
	z-index: 3;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
	max-width: 1692px;
	margin: 32px auto;
	padding: 28px;
	border-radius: 24px;
	background: var(--wgn-ms-card-color, var(--wgn-ms-accent));
	color: #fff;
}

.wgn-ms-days-card--hero {
	width: calc(100% - 228px);
	margin: -83px auto 0;
}

.wgn-ms-days-card-wrap {
	padding: 0 60px;
}

.wgn-ms-days-card__text {
	display: flex;
	align-items: center;
	gap: 24px;
	min-width: 0;
}

.wgn-ms-days-card__title {
	flex: 0 1 410px;
	margin: 0;
	font-family: var(--wgn-ms-font-title);
	font-size: 48px;
	font-weight: 500;
	line-height: 1.15;
	color: #fff;
}

.wgn-ms-days-card__subtitle {
	flex: 0 1 444px;
	align-self: stretch;
	display: flex;
	align-items: center;
	margin: 0;
	padding-inline-start: 24px;
	border-inline-start: 1px solid #fff;
	font-size: 30px;
	font-weight: 500;
	line-height: 40px;
	color: #fff;
}

.wgn-ms-days-card__days {
	display: flex;
	flex-wrap: wrap;
	gap: 21px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wgn-ms-days-card__item {
	margin: 0;
	padding: 0;
}

.wgn-ms-days-card__day {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 133px;
	height: 110px;
	padding: 16px;
	border-radius: 16px;
	background: var(--wgn-day-bg, #284759);
	color: var(--wgn-day-color, #fff);
	box-shadow: 0 0 6.3px rgba(0, 0, 0, .15);
	font-family: var(--wgn-ms-font-title);
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

a.wgn-ms-days-card__day:hover,
a.wgn-ms-days-card__day:focus-visible {
	color: var(--wgn-day-color, #fff);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

a.wgn-ms-days-card__day:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.wgn-ms-days-card__day-date {
	font-size: 40px;
	line-height: 1;
}

.wgn-ms-days-card__day-name {
	margin-top: 6px;
	font-size: 22px;
	line-height: 1;
	white-space: nowrap;
}

/* ---------- Laptop ---------- */
@media (max-width: 1499px) {

	.wgn-ms-days-card--hero {
		width: calc(100% - 64px);
	}

	.wgn-ms-days-card__title {
		font-size: 38px;
	}

	.wgn-ms-days-card__subtitle {
		font-size: 22px;
		line-height: 1.4;
	}

	.wgn-ms-days-card__day {
		width: 112px;
		height: 96px;
	}

	.wgn-ms-days-card__day-date {
		font-size: 32px;
	}

	.wgn-ms-days-card__day-name {
		font-size: 18px;
	}

	.wgn-ms-hero__dates {
		font-size: 36px;
	}

	.wgn-ms-hero__location {
		font-size: 22px;
	}
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {

	.wgn-ms-days-card {
		flex-direction: column;
		align-items: stretch;
	}

	.wgn-ms-days-card--hero {
		margin-top: -60px;
	}

	.wgn-ms-days-card-wrap {
		padding: 0 18px;
	}

	.wgn-ms-days-card__text {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		text-align: center;
	}

	.wgn-ms-days-card__title,
	.wgn-ms-days-card__subtitle {
		flex: none;
	}

	.wgn-ms-days-card__subtitle {
		justify-content: center;
		padding-inline-start: 0;
		border-inline-start: 0;
	}

	.wgn-ms-days-card__days {
		justify-content: center;
	}
}

/* ---------- Mobile (Figma 375) ---------- */
@media (max-width: 767px) {

	.wgn-ms-hero {
		margin-bottom: 24px;
	}

	.wgn-ms-hero__media {
		aspect-ratio: 375 / 524;
		min-height: 0;
		max-height: none;
	}

	/* Logo: top corner, dates text is part of the mobile image. */
	.wgn-ms-hero__logo {
		top: 3.6%;
		bottom: auto;
		inset-inline-start: auto;
		inset-inline-end: 5%;
		width: 47%;
		max-width: 176px;
	}

	.wgn-ms-hero__when {
		display: none;
	}

	.wgn-ms-days-card {
		padding: 24px;
		gap: 24px;
	}

	.wgn-ms-days-card--hero {
		width: calc(100% - 41px);
		max-width: 334px;
		margin-top: -146px;
	}

	.wgn-ms-days-card__title {
		font-size: 34px;
		line-height: 1.2;
	}

	.wgn-ms-days-card__subtitle {
		font-size: 22px;
		line-height: 1.4;
	}

	.wgn-ms-days-card__days {
		gap: 16px;
	}

	.wgn-ms-days-card__day {
		width: 84px;
		height: 67px;
		padding: 10px;
		border-radius: 10px;
		border: .634px solid rgba(134, 184, 40, .35);
	}

	.wgn-ms-days-card__day-date {
		font-size: 25px;
	}

	.wgn-ms-days-card__day-name {
		margin-top: 4px;
		font-size: 14px;
	}
}

/* ------------------------------------------------------------------
 * Minisite event page blocks (days card + festival modules), Figma 589:20388
 * ------------------------------------------------------------------ */

.wgn-ms-event-modules {
	margin-top: 32px;
}

/* ------------------------------------------------------------------
 * Hero = image only (2026-10-21): the days card is the NEXT module
 * (own .module-wrap) and still overlaps the bottom of the image.
 * ------------------------------------------------------------------ */

.module-wrap:has(> .wgn-ms-hero):has(+ .module-wrap > .wgn-ms-days-card--hero) .wgn-ms-hero {
	margin-bottom: 0;
}

.module-wrap:has(> .wgn-ms-days-card--hero) {
	z-index: 3;
}

.module-wrap > .wgn-ms-days-card--hero {
	width: calc(100% - 108px);
	margin-bottom: 48px;
}

@media (max-width: 1499px) {
	.module-wrap > .wgn-ms-days-card--hero {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.module-wrap > .wgn-ms-days-card--hero {
		width: calc(100% - 5px);
		margin-bottom: 24px;
	}
}
