::after,
::before {
	margin: 0;
	padding: 0;
	outline: 0;
	appearance: none;
	border: 0;
	text-decoration: none;
	list-style: none;
	box-sizing: border-box;
}

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */
#mobile-menu-btn {
	transition: all 0.2s ease;
}
#mobile-menu-btn:hover {
	background-color: rgba(255, 255, 255, 0.2);
}
#mobile-menu-btn .hamburger-line {
	transition: all 0.3s ease;
}

/* Hamburger → X transformation when menu is open */
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   MOBILE MENU OVERLAY & PANEL
   ============================================ */
#mobile-menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
#mobile-menu-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}
#mobile-menu-panel {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	width: 18rem;
	max-width: 85vw;
	backdrop-filter: blur(16px);
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
	border-left: 1px solid rgba(200, 200, 200, 0.3);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
}
#mobile-menu-overlay.is-open #mobile-menu-panel {
	transform: translateX(0);
}

/* Backdrop (dimmed overlay) */
#mobile-menu-overlay > div:first-child {
	background: rgba(0, 0, 0, 0.5);
}
.dark #mobile-menu-overlay > div:first-child {
	background: rgba(0, 0, 0, 0.7);
}

/* ============================================
   MOBILE NAVIGATION ITEMS
   ============================================ */
.mobile-nav-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	border-radius: 0.75rem;
	color: #374151;
	transition: all 0.2s ease;
	text-decoration: none;
}
.dark .mobile-nav-item {
	color: #e5e7eb;
}
.mobile-nav-item:hover {
	background-color: #f3f4f6;
	color: #0891b2;
	transform: translateX(0.25rem);
}
.dark .mobile-nav-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: #22d3ee;
}
.mobile-nav-item.active {
	background: linear-gradient(
		90deg,
		rgba(8, 145, 178, 0.1),
		rgba(59, 130, 246, 0.1)
	);
	color: #0891b2;
	border-left: 3px solid #06b6d4;
}
.dark .mobile-nav-item.active {
	background: linear-gradient(
		90deg,
		rgba(34, 211, 238, 0.1),
		rgba(59, 130, 246, 0.1)
	);
	color: #22d3ee;
	border-left-color: #22d3ee;
}
.mobile-nav-item i {
	width: 1.25rem;
	text-align: center;
	flex-shrink: 0;
}
