/* ========================================
   NAVBAR
   ======================================== */

.navbar {
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(10px);
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 1.25rem;
	color: #f8fafc;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.navbar-brand:hover {
	opacity: 0.8;
}

.brand-logo {
	font-family: "Gotham", "Montserrat", "Avenir Next", sans-serif;
	font-weight: 700;
	font-size: 22px;
	color: currentColor;
	background: none;
	-webkit-text-fill-color: currentColor;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0;
}

.brand-text {
	color: currentColor;
	opacity: 0.72;
	font-weight: 400;
	font-size: 1.1rem;
}

.brand-festival-logo {
	height: 44px;
	width: auto;
	display: inline-block;
	filter: invert(1) brightness(1.2);
	opacity: 0.98;
}

[data-theme="light"] .navbar-brand {
	color: #111827;
}

[data-theme="light"] .brand-festival-logo {
	filter: none;
	opacity: 0.98;
}

@media (max-width: 767.98px) {
	.brand-festival-logo {
		height: 36px;
	}

	.brand-logo {
		font-size: 18px;
	}
}

.nav-actions {
	display: flex;
	gap: 0.75rem;
}

/* Navbar toggler (hamburger) */
.navbar-toggler {
	border: 1px solid #6b7280;
	padding: 0.5rem 0.75rem;
	background: rgba(107, 114, 128, 0.12);
	color: #4b5563;
	border-radius: var(--radius-md);
	transition: all var(--transition-fast);
}

.navbar-toggler i {
	font-size: 1.5rem;
}

.navbar-toggler:hover {
	background: #6b7280;
	border-color: #6b7280;
	color: #ffffff;
}

[data-theme="light"] .navbar-toggler {
	border-color: #9ca3af;
	background: rgba(156, 163, 175, 0.16);
	color: #374151;
}

[data-theme="light"] .navbar-toggler:hover {
	background: #6b7280;
	border-color: #6b7280;
	color: #ffffff;
}

.navbar-toggler:focus {
	box-shadow: none;
	outline: none;
}

/* Responsive nav-actions */
@media (max-width: 991.98px) {
	.nav-actions {
		flex-direction: column;
		align-items: flex-end;
		gap: 0.5rem;
		padding: 1rem 0;
		width: 100%;
	}

	.nav-actions .dropdown {
		width: 100%;
		justify-content: flex-end;
	}

	.nav-btn {
		justify-content: flex-end;
		width: 100%;
	}

	.btn-text {
		display: inline !important;
	}
}

/* Navbar dropdown */
.nav-actions .dropdown {
	display: flex;
}

.nav-actions .dropdown-toggle::after {
	display: none;
}

.nav-actions .dropdown-menu {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	padding: 0.5rem;
	min-width: 160px;
	transform-origin: top right;
}

.nav-actions .dropdown-menu.show {
	animation: navDropdownOpen 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes navDropdownOpen {
	0% {
		opacity: 0;
		transform: translateY(-8px) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nav-actions .dropdown-menu.show {
		animation: none;
	}
}

.nav-actions .dropdown-item {
	color: var(--text-primary);
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.15s ease;
}

.nav-actions .dropdown-item:hover {
	background: var(--bg-elevated);
	color: var(--accent-secondary);
}

.nav-actions .dropdown-item i {
	font-size: 1rem;
	opacity: 0.8;
}
