/*
 * Podim platform header (2027) — used by the ticket-shop front page and the login page.
 * Design: XD "PODIM navbar in login" (Dušan, 2026-12-01). Geist comes from podim-fonts (--podim-font).
 * Desktop: 24 px red ticker + 68 px black bar, 1400 px content. Mobile (≤ 900 px): 30 px ticker + 60 px bar.
 */

.pui-header,
.pui-header *,
.pui-header *::before,
.pui-header *::after {
	box-sizing: border-box;
}

.pui-header {
	position: relative;
	z-index: 50;
	width: 100%;
	background: #000;
	color: #fff;
	font-family: var(--podim-font, "Geist", system-ui, sans-serif);
	font-size: 16px;
	line-height: 1.2;
}

.pui-header :where(a) {
	color: inherit;
	text-decoration: none;
}

.pui-header ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pui-header .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pui-header :focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ------------------------------------------------------------------ ticker */

.pui-ticker {
	height: 24px;
	overflow: hidden;
	background: #ff003b;
	color: #000;
}

.pui-ticker__track {
	display: flex;
	width: max-content;
	height: 100%;
	animation: pui-ticker 70s linear infinite;
}

.pui-ticker__group {
	display: flex;
	flex: none;
}

.pui-ticker__item {
	display: flex;
	flex: none;
	align-items: center;
	width: 268px;
	padding-left: 52px;
	white-space: nowrap;
}

.pui-ticker__date {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.pui-ticker__tag {
	margin-left: 19px;
	padding: 2px 5px;
	border: 1px solid #6c1212;
	color: #6c1212;
	font-size: 8px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.04em;
}

@keyframes pui-ticker {
	to {
		transform: translateX(-50%);
	}
}

/* ------------------------------------------------------------------ bar */

.pui-bar {
	height: 68px;
	background: #000;
}

.pui-bar__inner {
	position: relative;
	display: flex;
	align-items: center;
	width: min(1400px, calc(100% - 40px));
	height: 100%;
	margin-inline: auto;
}

.pui-logo {
	display: inline-flex;
	flex: none;
}

.pui-logo img {
	display: block;
	width: 110px;
	height: auto;
}

.pui-logo--platform img {
	width: 180px;
}

/* ------------------------------------------------------------------ menu */

.pui-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
	margin-right: 37px;
}

.pui-menu {
	display: flex;
	align-items: center;
	gap: 30px;
}

.pui-menu__item {
	position: relative;
}

.pui-menu__top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: #bebebe;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s ease;
}

.pui-menu__top::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #afafaf;
	transition: transform 0.2s ease;
}

/* hover, keyboard focus and "open" are all the white state from the design */
.pui-menu__item:hover > .pui-menu__top,
.pui-menu__item:focus-within > .pui-menu__top,
.pui-menu__item.is-open > .pui-menu__top {
	color: #fff;
}

.pui-menu__sub {
	position: absolute;
	top: 100%;
	left: -16px;
	display: none;
	min-width: 230px;
	padding: 10px 8px;
	border-radius: 12px;
	background: #111;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.pui-menu__item:hover > .pui-menu__sub,
.pui-menu__item:focus-within > .pui-menu__sub,
.pui-menu__item.is-open > .pui-menu__sub {
	display: block;
}

.pui-menu__sub a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: #bebebe;
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s ease, background 0.2s ease;
}

.pui-menu__sub a:hover,
.pui-menu__sub a:focus-visible {
	background: #1d1d1d;
	color: #fff;
}

.pui-nav__account {
	display: none;
}

/* login-page nav: the single "PODIM website" link */
.pui-nav__link {
	color: #bebebe;
	font-weight: 600;
	transition: color 0.2s ease;
}

.pui-nav__link:hover,
.pui-nav__link:focus-visible {
	color: #fff;
}

/* ------------------------------------------------------------------ pills */

.pui-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.pui-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 32px;
	padding: 0 20px;
	border-radius: 20px;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.pui-pill--white {
	min-width: 94px;
	background: #fff;
	color: #000;
}

.pui-pill--white:hover,
.pui-pill--white:focus-visible {
	background: #ff003b;
	color: #fff;
}

.pui-pill--dark {
	background: #262626;
	color: #bebebe;
	font-size: 14px;
	font-weight: 400;
}

.pui-pill--dark:hover,
.pui-pill--dark:focus-visible {
	background: #3a3a3a;
	color: #fff;
}

.pui-pill--login {
	padding: 0 12px 0 11px;
}

.pui-pill--bag {
	position: relative;
	width: 44px;
	padding: 0;
}

.pui-pill--bag img,
.pui-pill--login img {
	display: block;
	flex: none;
}

.pui-bag-count {
	position: absolute;
	top: -6px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #ff003b;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

/* ------------------------------------------------------------------ burger (mobile only) */

.pui-burger {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 37px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #262626;
	color: #bebebe;
	cursor: pointer;
}

.pui-burger svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 900px) {
	.pui-ticker {
		height: 30px;
	}

	.pui-ticker__item {
		width: 221px;
		padding-left: 20px;
	}

	.pui-bar {
		height: 60px;
	}

	.pui-bar__inner {
		gap: 8px;
	}

	.pui-actions {
		gap: 8px;
		margin-left: auto;
	}

	.pui-pill--white {
		min-width: 0;
		padding: 0 16px;
	}

	.pui-pill--bag {
		width: 38px;
	}

	.pui-actions .pui-account--desktop {
		display: none;
	}

	.pui-burger {
		display: inline-flex;
	}

	/* the menu becomes a panel under the bar */
	.pui-nav {
		position: absolute;
		top: 100%;
		left: -20px;
		right: -20px;
		z-index: 60;
		display: none;
		flex-direction: column;
		align-items: stretch;
		max-height: calc(100vh - 100px);
		margin: 0;
		padding: 8px 20px 24px;
		overflow-y: auto;
		background: #000;
		box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
	}

	.pui-header.is-menu-open .pui-nav {
		display: flex;
	}

	.pui-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.pui-menu__top {
		justify-content: space-between;
		width: 100%;
		min-height: 48px;
		border-bottom: 1px solid #1d1d1d;
	}

	/* hover must not open anything on touch; only the tap (is-open) does */
	.pui-menu__item:hover > .pui-menu__sub,
	.pui-menu__item:focus-within > .pui-menu__sub {
		display: none;
	}

	.pui-menu__item.is-open > .pui-menu__sub {
		display: block;
	}

	.pui-menu__item:hover > .pui-menu__top,
	.pui-menu__item:focus-within > .pui-menu__top {
		color: #bebebe;
	}

	.pui-menu__item.is-open > .pui-menu__top {
		color: #fff;
	}

	.pui-menu__item.is-open > .pui-menu__top::after {
		transform: rotate(180deg);
	}

	.pui-menu__sub {
		position: static;
		min-width: 0;
		padding: 4px 0 8px 12px;
		border-radius: 0;
		background: none;
		box-shadow: none;
	}

	.pui-nav__account {
		display: flex;
		gap: 8px;
		margin-top: 18px;
	}

	.pui-nav__account .pui-pill {
		flex: 1 1 0;
		height: 40px;
	}

	/* login-page panel: just the website link */
	.pui-nav--login .pui-nav__link {
		display: block;
		padding: 14px 0;
	}
}

@media (max-width: 380px) {
	.pui-logo img {
		width: 96px;
	}

	.pui-logo--platform img {
		width: 140px;
	}

	.pui-pill--white {
		padding: 0 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pui-ticker__track {
		animation: none;
	}

	.pui-pill,
	.pui-menu__top,
	.pui-menu__sub a {
		transition: none;
	}
}
