/* -----NAV MODAL----- */
.nav-modal-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	z-index: 200;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.nav-modal-overlay.is-open {
	opacity: 1;
	pointer-events: all;
}

.nav-modal {
	position: fixed;
	bottom: 0;
	right: 0;
	width: 100%;
	max-width: 420px;
	height: 100dvh;
	background-color: #0f1112;
	border-left: 1px solid #ffffff10;
	z-index: 201;
	display: flex;
	flex-direction: column;
	padding: 1rem 1.5rem 2.5rem;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-modal.is-open {
	transform: translateX(0);
}

/* Header do modal */
.nav-modal__header {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 0.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #ffffff10;
}

/* Links de navegação */
.nav-modal__links {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
}
.nav-modal__link {
	display: grid;
	grid-template-columns: 2rem 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0.75rem;
	border-radius: 0.75rem;
	text-decoration: none;
	color: #9ca3af;
	transition: all 0.2s ease;
}
.nav-modal__link:hover,
.nav-modal__link:focus-visible,
.nav-modal__link.is-active {
	background-color: #1b1d1e;
	color: #fff;
}
.nav-modal__link.is-active {
	color: #fff;
}
.nav-modal__link-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
}
.nav-modal__link-icon svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: currentColor;
	opacity: 0.7;
}
.nav-modal__link:hover .nav-modal__link-icon svg,
.nav-modal__link:focus-visible .nav-modal__link-icon svg,
.nav-modal__link.is-active .nav-modal__link-icon svg {
	opacity: 1;
	fill: var(--light-green);
}
.nav-modal__link-label {
	font-size: 1rem;
	font-weight: 500;
}
.nav-modal__link.is-active .nav-modal__link-label {
	color: #fff;
	font-weight: 600;
}

.nav-modal__link:hover,
.nav-modal__link:focus-visible,
.nav-modal__link.is-active {
	opacity: 1;
}

/* Link login */
.nav-modal__link--admin {
	width: fit-content;
	margin: auto 0 70px auto;
	border: 1px solid #ffffff14;
	padding: 1rem 3rem;
	border-radius: 0.75rem;
	text-decoration: none;
	color: #6d6d6d;
	transition: all 0.2s ease;
}

.nav-modal__link--admin:hover,
.nav-modal__link--admin:focus-visible {
	color: #7a7a7a;
	border-color: #ffffff30;
}

/* Botão fechar */
.nav-modal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 0;
	background-color: #1b1d1e00;
	color: #9ca3af;
	cursor: pointer;
	transition: all 0.2s ease;
}
.nav-modal__close:hover {
	background-color: #2f3131;
	color: #fff;
}
.nav-modal__close:focus-visible {
	outline: 2px solid var(--light-green);
	outline-offset: 3px;
	background-color: #2f3131;
	color: #fff;
}
.nav-modal__close svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}



/* Hamburger Menu Button */
.menu-btn {
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: 1rem;
}

.menu-btn svg {
	width: 24px;
	height: 24px;
	fill: #ffffff;
	transition: fill 0.2s ease;
}

.menu-btn:hover svg {
	fill: var(--light-green);
}
