/* Mobile navigation */

.mobile-nav,
.mobile-nav * {
	box-sizing: border-box;
}

.mobile-nav__toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	margin-right: 16px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.mobile-nav__toggle:focus-visible {
	outline: 2px solid #2196F3;
	outline-offset: 2px;
}

.mobile-nav__bar {
	display: block;
	position: absolute;
	left: 10px;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.mobile-nav__bar:nth-child(1) { top: 14px; }
.mobile-nav__bar:nth-child(2) { top: 21px; }
.mobile-nav__bar:nth-child(3) { top: 28px; }

.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__bar:nth-child(1) {
	top: 21px;
	transform: rotate(45deg);
}

.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__bar:nth-child(2) {
	opacity: 0;
}

.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__bar:nth-child(3) {
	top: 21px;
	transform: rotate(-45deg);
}

.mobile-nav {
	visibility: hidden;
	pointer-events: none;
}

.mobile-nav.is-open {
	visibility: visible;
	pointer-events: auto;
}

.mobile-nav__overlay {
	position: fixed;
	inset: 0;
	z-index: 1100;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.mobile-nav.is-open .mobile-nav__overlay {
	opacity: 1;
}

.mobile-nav__panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1101;
	display: flex;
	flex-direction: column;
	width: min(320px, 100vw);
	max-width: 100%;
	height: 100%;
	height: 100dvh;
	min-height: 0;
	padding: 0;
	background: #1e1e1e;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.mobile-nav.is-open .mobile-nav__panel {
	transform: translateX(0);
}

.mobile-nav__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-shrink: 0;
	padding: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__brand {
	color: #fff;
	font-family: 'Bebas Neue', cursive;
	font-size: 18px;
	letter-spacing: 1px;
	text-decoration: none;
	line-height: 1.2;
}

.mobile-nav__close {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.mobile-nav__close:hover {
	background: rgba(255, 255, 255, 0.14);
}

.mobile-nav__close:focus-visible {
	outline: 2px solid #2196F3;
	outline-offset: 2px;
}

.mobile-nav__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 0;
}

.mobile-nav__list {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-nav__list li {
	display: block;
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__list a {
	display: block;
	width: 100%;
	padding: 18px 20px;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav__list a:hover,
.mobile-nav__list a:focus {
	color: #2196F3;
	background: rgba(255, 255, 255, 0.04);
}

.mobile-nav__footer {
	flex-shrink: 0;
	padding: 16px 20px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: #1e1e1e;
}

.mobile-nav .mobile-nav__give {
	display: block;
	width: 100%;
	margin: 0;
	padding: 16px 24px;
	border: none;
	border-radius: 8px;
	background: #2196F3;
	color: #fff !important;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s ease;
}

.mobile-nav .mobile-nav__give:hover,
.mobile-nav .mobile-nav__give:focus {
	background: #1a7fd4;
	color: #fff !important;
}

body.mobile-nav-open {
	overflow: hidden;
}

body.admin-bar .mobile-nav__panel {
	top: 32px;
	height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .mobile-nav__panel {
		top: 46px;
		height: calc(100dvh - 46px);
	}
}

@media all and (max-width: 1020px) {
	header > nav {
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		padding: 0;
	}

	.mobile-nav__toggle {
		display: block;
	}
}

@media all and (max-width: 680px) {
	.mobile-nav__toggle {
		margin-right: 10px;
	}

	.mobile-nav__panel {
		width: 100vw;
	}
}
