/*-------------------------------------------------------------------------*/
/* Header & Navigation Styles
/*-------------------------------------------------------------------------*/

/* =============================================================================
   HEADER & NAVBAR
   ============================================================================= */

/* Site Header */
.site-header {
	background-color: var(--bg-darker);
	border-bottom: 0.1rem solid var(--border);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 1030;
	transition: all 0.3s ease;
}

/* Navbar scrolled state */
.site-header.navbar-scrolled {
	background-color: rgba(14, 16, 22, 0.95);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Navbar */
.site-header .navbar {
	background-color: transparent;
	padding: 0.75rem 0;
	min-height: 70px;
}

/* Navbar Brand/Logo */
.navbar-brand {
	padding: 0;
	margin-right: 0;
	display: flex;
	align-items: center;
}

.navbar-brand img {
	transition: all 0.3s ease;
	filter: brightness(1);
}

.navbar-brand:hover img {
	filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 193, 7, 0.3));
}

/* Navigation Links */
.navbar-nav .nav-link {
	color: var(--txt-secondary) !important;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0.75rem 1rem !important;
	margin: 0 0.25rem;
	transition: all 0.3s ease;
	position: relative;
}

.navbar-nav .nav-link.active {
	color: var(--txt-primary) !important;
}

.navbar-nav .nav-link i {
	margin-right: 0.5rem;
	font-size: 0.9rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
	color: var(--txt-primary) !important;
	background-color: var(--bg-dark) !important;
}

.nav-pills .nav-link:hover {
	border-radius: 0;
	color: #fff !important;
	background-color: var(--bg-darker) !important;
}

/* Dropdown Menus */
.navbar-nav .dropdown-menu {
	background-color: var(--bg-dark);
	border: 0.1rem solid var(--border);
	border-radius: 0;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
	margin-top: 0;
	padding: 0;
	min-width: 200px;
}

.navbar-nav .dropdown-item {
	color: var(--txt-secondary);
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	text-transform: uppercase;
	padding: 0.75rem 1.5rem;
	transition: all 0.3s ease;
	border: none;
}

.navbar-nav .dropdown-item:hover {
	color: var(--txt-primary);
	background-color: var(--bg-darker);
}

.navbar-nav .dropdown-item i {
	margin-right: 0.75rem;
	width: 16px;
	text-align: center;
}

/* Dropdown Toggle Arrow */
.navbar-nav .dropdown-toggle::after {
	margin-left: 0.5rem;
	transition: transform 0.3s ease;
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
	transform: rotate(180deg);
}

/* Remove focus outline from dropdown toggles */
.navbar-nav .dropdown-toggle:focus {
	box-shadow: none;
	outline: none;
}

/* User Authentication Section */
.navbar-auth {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* User Dropdown Styling - Match navbar dropdown appearance */
.navbar-auth .dropdown-menu {
	background-color: var(--bg-dark);
	border: 0.1rem solid var(--border);
	border-radius: 0;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
	margin-top: 0;
	padding: 0;
	min-width: 200px;
}

.navbar-auth .dropdown-item {
	color: var(--txt-secondary);
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	text-transform: uppercase;
	padding: 0.75rem 1.5rem;
	transition: all 0.3s ease;
	border: none;
}

.navbar-auth .dropdown-item:hover {
	color: var(--txt-primary);
	background-color: var(--bg-darker);
}

.navbar-auth .dropdown-item i {
	margin-right: 0.75rem;
	width: 16px;
	text-align: center;
	color: #fff; /* Ensure all icons are white */
}

/* Hide dropdown arrow */
.navbar-auth .dropdown-toggle::after {
	display: none;
}

/* =============================================================================
   DESKTOP USER DROPDOWN
   ============================================================================= */
.navbar .user-avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 0;
	object-fit: contain;
	border: 1px solid var(--bs-warning);
	aspect-ratio: 1 / 1;
}

.welcome-text {
	font-size: 0.75rem;
	color: var(--txt-muted);
	line-height: 1;
	margin-bottom: 0.125rem;
	font-family: "Poppins", sans-serif;
}

.username {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--txt-primary);
	line-height: 1;
	margin-bottom: 0.125rem;
}

.user-points {
	font-size: 0.75rem;
	line-height: 1;
}

.dp-points {
	color: var(--txt-primary);
	font-weight: 500;
}

.vp-points {
	color: #ccc;
	font-weight: 500;
}

.user-points {
	font-size: 0.85rem;
	color: var(--txt-muted);
	font-weight: 400;
}

.nav-link {
	display: flex;
	padding: 0.5rem 1rem;
	color: #ccc;
	text-transform: uppercase;
}

/* Mobile Menu Toggle */
.navbar-toggler {
	padding: 0.5rem;
	border-radius: 0.375rem;
	background-color: var(--bg-dark);
	border: 0.1rem solid var(--border);
}

.navbar-toggler:focus {
	box-shadow: none;
}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffc107' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	width: 1.5rem;
	height: 1.5rem;
}

.navbar-dark .navbar-toggler {
	color: #ccc;
}

.navbar-dark .navbar-toggler:hover {
	filter: saturate(0);
}

/* =============================================================================
   MOBILE NAVIGATION
   ============================================================================= */

/* Mobile Offcanvas */
.mobile-nav {
	background-color: var(--bg-darker);
	border-right: 0.1rem solid var(--border);
	width: 280px;
	max-width: 85vw;
}

.mobile-nav .offcanvas-header {
	background-color: var(--bg-dark);
	border-bottom: 0.1rem solid var(--border);
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mobile-nav .offcanvas-title {
	color: var(--txt-primary);
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mobile-nav .offcanvas-title img {
	height: 24px;
	width: auto;
}

.mobile-nav .offcanvas-body {
	padding: 0;
	background-color: var(--bg-darker);
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Mobile User Section */
.mobile-user-section {
	padding: 1rem;
	background-color: var(--bg-dark);
	border-bottom: 0.1rem solid var(--border);
}

.offcanvas-header .btn-close {
	font-size: 1rem;
	padding: 0.3rem;
	margin: 0;
	opacity: 0.8;
	transition: none;
	width: 20px;
	height: auto;
	aspect-ratio: 1 / 1;
	border-bottom: none !important;
	border-radius: 0 !important;
}

.btn-close .btn-close-white::before {
	content: "\f00d";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 1rem;
}

.nav-pills .nav-link {
	border-radius: 0;
}

/* =============================================================================
   MOBILE USER SECTION
   ============================================================================= */
.mobile-user-avatar {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 0;
	object-fit: contain;
	border: 1px solid var(--bs-warning);
	aspect-ratio: 1 / 1;
}

.mobile-welcome-text {
	font-size: 0.75rem;
	color: var(--txt-muted);
	line-height: 1;
	margin-bottom: 0.125rem;
	font-family: "Poppins", sans-serif;
}

.mobile-username {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--txt-primary);
	line-height: 1;
	margin-bottom: 0.125rem;
}

.mobile-dp-points {
	color: var(--txt-primary);
	font-weight: 500;
}

.mobile-vp-points {
	color: #ccc;
	font-weight: 500;
}

/* Mobile Auth Section */
.mobile-auth-section {
	padding: 1rem;
	background-color: var(--bg-dark);
	border-bottom: 0.1rem solid var(--border);
}

/* Mobile Menu */
.mobile-menu {
	padding: 0;
	margin: 0;
	list-style: none;
	flex-grow: 1;
}

.mobile-menu-item {
	border-bottom: 0.05rem solid var(--border);
}

.mobile-menu-link {
	display: block;
	color: var(--txt-secondary);
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	text-decoration: none;
	padding: 0.8rem;
	text-transform: uppercase;
	/* transition: all 0.3s ease; */
}

.mobile-menu-link:hover {
	color: var(--txt-primary);
	background-color: var(--bg-dark);
	text-decoration: none;
}

.mobile-menu-link.active {
	color: var(--txt-primary);
	background-color: var(--bg-dark);
}

.mobile-menu-link i {
	width: 18px;
	margin-right: 0.75rem;
	text-align: center;
	font-size: 0.85rem;
}

/* Mobile Dropdown */
.mobile-dropdown .dropdown-toggle {
	position: relative;
}

/* Hide Bootstrap dropdown toggle pseudo-element */
.mobile-dropdown-toggle::after {
	display: none !important;
}

/* Prevent scroll jumping on mobile dropdown toggles */
.mobile-dropdown-toggle {
	scroll-behavior: auto !important;
}

/* Additional prevention of anchor jumping */
.mobile-nav .mobile-dropdown-toggle:focus {
	outline: none;
}

/* Override any smooth scroll behavior in mobile menu */
.mobile-nav {
	scroll-behavior: auto !important;
}

.mobile-dropdown .dropdown-toggle[aria-expanded="true"]::after {
	transform: translateY(-50%) rotate(180deg);
}

.mobile-submenu {
	background-color: var(--bg);
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

.mobile-submenu.show {
	max-height: 500px;
}

.mobile-submenu-link {
	display: block;
	color: var(--txt-muted);
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	text-decoration: none;
	padding: 0.625rem 1rem 0.625rem 2.5rem;
	transition: all 0.3s ease;
	border-bottom: 0.05rem solid var(--border);
	text-transform: uppercase;
}

.mobile-submenu-link:last-child {
	border-bottom: none;
}

.mobile-submenu-link:hover {
	color: var(--txt-primary);
	background-color: var(--bg-dark);
	text-decoration: none;
}

/* Mobile Social Section */
.mobile-social-section {
	margin-top: auto;
	padding: 1rem;
	border-top: 0.1rem solid var(--border);
	background-color: var(--bg-dark);
}

.mobile-social-section h6 {
	color: var(--txt-primary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 1rem;
	text-align: center;
}

.mobile-social-section .social-links {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.mobile-social-section a {
	color: var(--txt-muted);
	transition: color 0.3s ease;
	padding: 0.5rem;
	font-size: 1.1rem;
}

.mobile-social-section a:hover {
	color: var(--txt-primary);
	text-decoration: none;
}

/* =============================================================================
   RESPONSIVE STYLES
   ============================================================================= */

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
	.site-header .navbar {
		padding: 0.5rem 0;
		min-height: 60px;
	}

	.navbar-brand img {
		height: 35px;
	}

	.navbar-auth {
		gap: 0.5rem;
	}
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
	.navbar-nav .nav-link {
		font-size: 0.9rem;
		padding: 0.625rem 0.875rem !important;
	}
}

/* Desktop Styles */
@media (min-width: 992px) {
	.site-header .navbar {
		padding: 1rem 0;
	}

	.navbar-brand img {
		height: 40px;
	}
}

/* Large Desktop */
@media (min-width: 1200px) {
	.navbar-nav .nav-link {
		padding: 0.75rem 1.25rem !important;
	}
}

/* =============================================================================
   ANIMATION OVERRIDES
   ============================================================================= */

/* Smooth Offcanvas Animation */
.offcanvas.offcanvas-start {
	transition: transform 0.3s ease-in-out;
}

.offcanvas.show {
	transform: none;
}

/* Mobile submenu animations */
.mobile-submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

.mobile-submenu.show {
	max-height: 500px;
}

/* Notification Bar */
.notice-bar {
	background-color: var(--bg-darker) !important;
	border-bottom: 0.1rem solid var(--border) !important;
	z-index: 1040;
}

.notice-bar h6 {
	color: var(--txt-primary);
	font-weight: 500;
	text-transform: none;
}

.notice-bar .close {
	color: var(--txt-primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

.notice-bar .close:hover {
	color: var(--txt-secondary);
}
