/* ===== NAVBAR STYLES ===== */

.top-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: nowrap;
	padding: 16px 18px;
	background: rgba(20, 9, 6, 0.34);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 223, 189, 0.16);
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(16, 6, 4, 0.18);
	margin-top: 12px;
	position: sticky;
	top: 12px;
	z-index: 50;
	will-change: transform;
	transform: translateZ(0);
	backface-visibility: hidden;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: "Bebas Neue", sans-serif;
	font-size: 1.8rem;
	color: var(--paper);
	text-decoration: none;
	letter-spacing: 0.05em;
}

.brand-logo {
	width: 38px;
	height: 38px;
	object-fit: contain;
	flex: none;
	display: block;
	will-change: transform;
	transform: translateZ(0);
	image-rendering: -webkit-optimize-contrast;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	color: var(--paper);
	text-decoration: none;
	border: 1px solid var(--line);
	padding: 8px 16px;
	border-radius: 999px;
	transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	will-change: transform, background, border-color, box-shadow;
}

.nav-link:hover {
	background: rgba(255, 228, 198, 0.08);
	border-color: rgba(255, 223, 189, 0.4);
	box-shadow: 0 4px 12px rgba(255, 135, 44, 0.15);
	transform: translateY(-1px);
}

.nav-links {
	display: flex;
	gap: 10px;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 223, 189, 0.28);
	border-radius: 999px;
	background: rgba(52, 19, 9, 0.46);
	color: var(--paper);
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	padding: 0;
	flex: none;
	will-change: background, transform;
}

.nav-toggle:active {
	transform: scale(0.98);
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: background-color 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	will-change: background-color;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), top 0.3s cubic-bezier(0.23, 1, 0.32, 1), bottom 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	will-change: transform;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	bottom: -6px;
}

.top-nav.is-open {
	background: rgba(20, 9, 6, 0.95);
}

.top-nav.is-open .nav-links {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: rgba(20, 9, 6, 0.95);
	border: 1px solid rgba(255, 223, 189, 0.16);
	border-top: none;
	border-radius: 0 0 15px 15px;
	padding: 12px;
	margin-top: 8px;
	width: 100%;
	z-index: 40;
	gap: 8px;
}

/* Mobile menu styles */
@media (max-width: 900px) {
	.nav-links {
		display: none;
	}

	.top-nav.is-open .nav-links {
		display: flex;
	}

	.nav-toggle {
		display: flex;
	}

	.brand-logo {
		width: 32px;
		height: 32px;
	}

	.brand {
		font-size: 1.4rem;
	}
}
