/* ============================================
   PREMIUM NAVIGATION BAR
   Infinity2 Glass Style
   ============================================ */

.premium-navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.premium-navbar .navbar-container {
	pointer-events: auto;
}

/* Navbar Overlay - Dark gradient for readability */
.navbar-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(10, 14, 26, 0.85) 0%,
		rgba(10, 14, 26, 0.7) 50%,
		rgba(10, 14, 26, 0.5) 100%
	);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	z-index: 0;
	transition: opacity 0.3s ease;
}

/* Navbar Container */
.navbar-container {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	transition: padding 0.3s ease;
}

/* Navbar Menu */
.navbar-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	position: relative;
}

/* Nav Item */
.nav-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid transparent;
	border-radius: 25px;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
}

.nav-item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	opacity: 0;
	transition: opacity 0.2s ease;
	border-radius: 25px;
	z-index: -1;
}

/* Nav Icon */
.nav-icon {
	font-size: 16px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.nav-text {
	position: relative;
	z-index: 1;
}

.nav-external {
	font-size: 10px;
	margin-left: 4px;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

/* Hover State */
.nav-item:hover:not(.active) {
	color: var(--text-primary);
	background: rgba(138, 43, 226, 0.15);
	border-color: var(--border-accent);
	transform: translateY(-2px);
	box-shadow: 
		0 4px 12px rgba(138, 43, 226, 0.3),
		0 0 0 1px rgba(138, 43, 226, 0.2);
}

.nav-item:hover:not(.active)::before {
	opacity: 0.1;
}

.nav-item:hover:not(.active) .nav-icon {
	color: var(--accent-primary);
	transform: scale(1.1);
}

.nav-item:hover .nav-external {
	opacity: 1;
}

/* Active State */
.nav-item.active {
	color: var(--text-primary);
	background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(79, 89, 177, 0.2));
	border-color: var(--border-accent);
	box-shadow: 
		0 0 0 2px rgba(138, 43, 226, 0.4),
		0 4px 16px rgba(138, 43, 226, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	font-weight: 700;
}

.nav-item.active::before {
	opacity: 0.2;
}

.nav-item.active .nav-icon {
	color: var(--accent-primary);
	text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.nav-item.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
	border-radius: 2px;
	box-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
}

/* Shop Item - Special Highlight */
.nav-item-shop {
	position: relative;
}

.nav-item-shop::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 25px;
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: -2;
	pointer-events: none;
}

.nav-item-shop:hover:not(.active)::after {
	opacity: 1;
}

.nav-item-shop.active {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(138, 43, 226, 0.25));
	border-color: rgba(255, 215, 0, 0.5);
	box-shadow: 
		0 0 0 2px rgba(255, 215, 0, 0.4),
		0 4px 16px rgba(255, 215, 0, 0.4),
		0 4px 16px rgba(138, 43, 226, 0.4);
}

.nav-item-shop.active .nav-icon {
	color: #ffd700;
	text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Discord Item - Discord Color */
.nav-item-discord {
	position: relative;
}

.nav-item-discord:hover:not(.active) {
	background: rgba(88, 101, 242, 0.15);
	border-color: rgba(88, 101, 242, 0.4);
	box-shadow: 
		0 4px 12px rgba(88, 101, 242, 0.3),
		0 0 0 1px rgba(88, 101, 242, 0.2);
}

.nav-item-discord:hover:not(.active) .nav-icon {
	color: #5865f2;
}

/* Active Indicator Line */
.navbar-indicator {
	position: absolute;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
	border-radius: 2px;
	box-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
	transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 2;
	opacity: 0;
}

.nav-item.active ~ .navbar-indicator,
.navbar-menu:has(.nav-item.active) ~ .navbar-indicator {
	opacity: 1;
}

/* Scroll State - Compact Navbar */
.premium-navbar.navbar-scrolled {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.premium-navbar.navbar-scrolled .navbar-overlay {
	background: linear-gradient(
		to bottom,
		rgba(10, 14, 26, 0.95) 0%,
		rgba(10, 14, 26, 0.9) 100%
	);
}

.premium-navbar.navbar-scrolled .navbar-container {
	padding: 12px 24px;
}

.premium-navbar.navbar-scrolled .nav-item {
	padding: 10px 18px;
	font-size: 13px;
}

/* Mobile Menu Toggle */
.navbar-toggle {
	display: none;
	position: relative;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	margin-left: auto;
}

.navbar-toggle:hover {
	background: rgba(138, 43, 226, 0.2);
	border-color: var(--border-accent);
}

.toggle-line {
	width: 24px;
	height: 2px;
	background: var(--text-primary);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.navbar-toggle[aria-expanded="true"] .toggle-line:nth-child(1) {
	transform: rotate(45deg) translate(7px, 7px);
}

.navbar-toggle[aria-expanded="true"] .toggle-line:nth-child(2) {
	opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .toggle-line:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media (max-width: 1023px) {
	.navbar-container {
		padding: 14px 20px;
	}
	
	.navbar-menu {
		gap: 6px;
	}
	
	.nav-item {
		padding: 10px 16px;
		font-size: 13px;
	}
	
	.nav-icon {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	.premium-navbar {
		position: fixed;
	}
	
	.navbar-container {
		padding: 12px 16px;
		flex-wrap: wrap;
	}
	
	.navbar-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--bg-panel);
		backdrop-filter: var(--blur-md);
		-webkit-backdrop-filter: var(--blur-md);
		border: 1px solid var(--border-color);
		border-top: none;
		border-radius: 0 0 var(--radius-lg) var(--radius-lg);
		padding: 16px;
		gap: 8px;
		box-shadow: var(--shadow-lg);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		margin-top: 8px;
	}
	
	.premium-navbar.navbar-mobile-open .navbar-menu {
		max-height: 500px;
		opacity: 1;
		visibility: visible;
	}
	
	.nav-item {
		width: 100%;
		justify-content: flex-start;
		padding: 14px 20px;
		border-radius: var(--radius-md);
	}
	
	.navbar-toggle {
		display: flex;
	}
	
	.navbar-indicator {
		display: none;
	}
	
	.nav-item.active::after {
		display: none;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.premium-navbar,
	.nav-item,
	.nav-icon,
	.navbar-indicator,
	.navbar-toggle,
	.toggle-line {
		transition: none;
	}
	
	.nav-item:hover:not(.active) {
		transform: none;
	}
}

