/*
 * BetBond header (23 Oct 2026, owner's pick "Tabs" from the header preview).
 * Logo, layout and PLAY NOW unchanged. Desktop: full-height tabs with SVG icons; a 2px bar on the header's
 * bottom edge marks the current section and slides to the hovered tab (navigation.js). Bar: solid at the top,
 * light glass while scrolled (blur max 6px, was 14px). Phones: icon rows with a short description, red close,
 * dimmed page behind. Markup for icons/labels comes from inc/header-nav.php.
 * Also here: page-to-page crossfade (view transitions) and removal of the old load-in animations.
 */
:root {
	--hd-bar: 11 14 23;          /* #0b0e17 */
	--hd-mute: rgba(236, 238, 245, 0.68);
	--hd-faint: #7d8296;
	--hd-brand: #993de1;
	--hd-brand-2: #b77cff;
	--hd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header {
	background: rgb(var(--hd-bar) / calc(1 - 0.12 * var(--hp, 0)));
	-webkit-backdrop-filter: blur(calc(6px * var(--hp, 0)));
	backdrop-filter: blur(calc(6px * var(--hp, 0)));
	border-bottom: 1px solid rgb(255 255 255 / calc(0.06 + 0.03 * var(--hp, 0)));
	box-shadow: 0 14px 30px -22px rgb(0 0 0 / calc(0.95 * var(--hp, 0)));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.site-header { background: rgb(var(--hd-bar) / 0.97); }
}
@media (prefers-reduced-transparency: reduce) {
	.site-header { background: rgb(var(--hd-bar)); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header::after { display: none; }
.site-nav a::after { content: none !important; display: none !important; }

.site-header .site-nav a {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--hd-mute);
	font: 600 14.5px/1 "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", ui-sans-serif, system-ui, sans-serif;
	letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}
.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible,
.site-header .site-nav .is-section > a { color: #fff; background: none; }
.site-header .site-nav a:focus-visible { outline: 2px solid var(--hd-brand-2); outline-offset: -4px; border-radius: 8px; }
.nav-ico { flex: none; width: 17px; height: 17px; color: var(--hd-faint); transition: color 0.2s ease; }
.nav-ico svg, .nav-chev svg { display: block; width: 100%; height: 100%; }
.site-nav a:hover .nav-ico,
.site-nav .is-section > a .nav-ico { color: var(--hd-brand-2); }
.nav-desc, .nav-chev { display: none; }
.site-nav ul { position: relative; }

/* the current-section bar: drawn in CSS until navigation.js takes over with the sliding one */
.nav-ind {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: var(--w, 0);
	height: 2px;
	background: var(--hd-brand-2);
	border-radius: 2px 2px 0 0;
	transform: translateX(var(--x, 0));
	opacity: var(--o, 0);
	pointer-events: none;
	transition: transform 0.38s var(--hd-ease), width 0.38s var(--hd-ease), opacity 0.2s ease;
}
.nav-ind.no-anim { transition: none; }

@media (min-width: 901px) {
	.site-header .site-header__inner { align-items: stretch; min-height: 76px; }
	.site-header .site-brand,
	.site-header .header-cta { align-self: center; }
	.site-header .site-nav { display: flex; align-self: stretch; }
	.site-header .site-nav ul { height: 100%; margin-left: auto; align-items: stretch; gap: 4px; }
	.site-header .site-nav li { display: flex; }
	.site-header .site-nav .is-section > a::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -1px;
		height: 2px;
		background: var(--hd-brand-2);
		border-radius: 2px 2px 0 0;
	}
	.site-header .site-nav ul.has-ind .is-section > a::before { display: none; }
	.site-nav .nav-ind { display: block; }
}
@media (min-width: 901px) and (max-width: 1180px) {
	.site-header .site-nav a { padding: 0 10px; font-size: 14px; }
	.site-header .site-header__inner { gap: 16px; }
}
@media (min-width: 901px) and (max-width: 1040px) {
	.nav-ico { display: none; }
}

/* ---------------------------------------------------------------- phones: icon rows, red close */
@media (max-width: 900px) {
	.site-header { background: rgb(var(--hd-bar)); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.nav-ind { display: none; }
	.site-header .nav-toggle__bar { background: currentColor; }
	.site-header .nav-toggle { border-color: #262d42 !important; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
	.site-header .nav-toggle:focus:not(:focus-visible) { outline: none !important; }
	.site-header.is-open .nav-toggle {
		border-color: rgba(225, 61, 61, 0.55) !important;
		background-color: rgba(225, 61, 61, 0.1) !important;
		color: #ff6b6b !important;
	}
	.site-header.is-open .nav-toggle:focus-visible { outline-color: #ff6b6b !important; }
	/* page behind the open menu dims (no blur); tapping it closes the menu */
	.site-header .nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(5, 7, 12, 0.6);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.28s ease, visibility 0.28s ease;
	}
	.site-header.is-open .nav-backdrop { opacity: 1; visibility: visible; }
	.site-header .site-brand { position: relative; z-index: 1003; }
	.site-header .site-menu {
		gap: 0;
		padding: 10px 14px 16px;
		background-color: #0e1220 !important;
		border-top: 1px solid rgba(255, 255, 255, 0.07);
	}
	.site-header .site-nav ul { gap: 4px; }
	.site-header .site-nav a {
		display: grid;
		grid-template-columns: 38px minmax(0, 1fr) 18px;
		grid-template-rows: auto auto;
		column-gap: 12px;
		align-items: center;
		padding: 9px 12px 9px 9px;
		border: 1px solid transparent;
		border-radius: 13px;
		color: #fff;
		font-size: 16px;
	}
	.site-header .site-nav a:active { background: rgba(255, 255, 255, 0.04); }
	.nav-ico {
		grid-row: 1 / span 2;
		width: 38px;
		height: 38px;
		padding: 10px;
		box-sizing: border-box;
		border: 1px solid #262d43;
		border-radius: 11px;
		background: #141929;
		color: var(--hd-brand-2);
	}
	.nav-label { align-self: end; line-height: 1.2; }
	.nav-desc { display: block; align-self: start; margin-top: 2px; color: var(--hd-faint); font: 500 12.5px/1.25 "DM Sans", "DM Sans Fallback", ui-sans-serif, system-ui, sans-serif; }
	.nav-chev { display: block; grid-column: 3; grid-row: 1 / span 2; width: 18px; height: 18px; color: #565c70; }
	.site-nav .is-section > a { background: rgba(153, 61, 225, 0.1); border-color: rgba(153, 61, 225, 0.32); }
	.site-nav .is-section > a .nav-ico { background: var(--hd-brand); border-color: var(--hd-brand); color: #fff; }
	.site-header.is-open .site-nav li,
	.site-header.is-open .site-menu .header-cta { animation: hdRow 0.42s var(--hd-ease) both; }
	.site-header.is-open .site-nav li:nth-child(2) { animation-delay: 45ms; }
	.site-header.is-open .site-nav li:nth-child(3) { animation-delay: 90ms; }
	.site-header.is-open .site-nav li:nth-child(4) { animation-delay: 135ms; }
	.site-header.is-open .site-nav li:nth-child(5) { animation-delay: 180ms; }
	.site-header.is-open .site-nav li:nth-child(n + 6) { animation-delay: 225ms; }
	.site-header.is-open .site-menu .header-cta { animation-delay: 250ms; }
	.site-menu .header-cta { margin-top: 12px; }
}
@keyframes hdRow { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------- loading */
/* No piece-by-piece load-in: the hero and the casino cards used to fade/rise in one after another. */
.home-elementor .home-hero__content,
.hero--article > *,
.casino-grid > .casino-card--elementor { animation: none !important; }

/* navigation.js hides a not-yet-loaded image and fades it in when it arrives */
.bb-img-wait { opacity: 0; }

/* Moving between BetBond pages: a short crossfade, the header stays put (Chrome/Edge 126+, Safari 18.2+). */
@view-transition { navigation: auto; }
.site-header { view-transition-name: bb-header; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.2s; animation-timing-function: ease; }
::view-transition-group(bb-header) { animation-duration: 0s; }

@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	.nav-ind, .nav-ico, .site-header .site-nav a { transition: none; }
	.site-header.is-open .site-nav li, .site-header.is-open .site-menu .header-cta { animation: none; }
}
