/* ==========================================================================
   PWA Bottom Navigation
   Visível apenas em body.mode-pwa + viewport ≤ 1000px
   ========================================================================== */

.pwa-bottom-nav {
	display: none;
}

@media screen and (max-width: 1000px) {
	body.mode-pwa .pwa-bottom-nav {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		justify-content: space-around;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 99;
		background: var(--preferences-content-bg-color, #141414);
		border-top: 1px solid rgba(255,255,255,0.06);
		height: 76px;
		padding-bottom: 16px;
	}

	/* Compensar altura do nav para o conteúdo não ficar encoberto */
	body.mode-pwa .master-body {
		padding-bottom: 76px;
	}

	/* Encurtar o menu lateral para não terminar debaixo do nav */
	body.mode-pwa menu.mobile {
		height: calc(100vh - 76px);
	}
	body.mode-pwa menu .menu-content {
		max-height: calc(100vh - 60px - 76px);
	}
}

/* --------------------------------------------------------------------------
   Itens do nav
   -------------------------------------------------------------------------- */

.pwa-bottom-nav a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--preferences-content-text-color, #e8e8e8);
	opacity: 0.45;
	transition: all 150ms ease-in-out;
	position: relative;
	padding: 8px 4px;
	text-decoration: none;
}

.pwa-bottom-nav a i {
	font-size: 19px;
	margin-bottom: 4px;
	transition: all 150ms ease-in-out;
}

.pwa-bottom-nav a span {
	font-size: 10px;
	font-family: "Nunito Sans", Montserrat, Helvetica;
	font-weight: 400;
	letter-spacing: 0.3px;
	line-height: 1;
	transition: all 150ms ease-in-out;
}

/* --------------------------------------------------------------------------
   Estado ativo e hover
   -------------------------------------------------------------------------- */

.pwa-bottom-nav a.active,
.pwa-bottom-nav a:hover {
	color: var(--preferences-content-bg-button, #5396FB);
	opacity: 1;
}

/* Indicador de ativo: barra no topo do botão */
.pwa-bottom-nav a.active::before {
	content: "";
	position: absolute;
	top: 0;
	left: 15%;
	right: 15%;
	height: 2px;
	background: var(--preferences-content-bg-button, #5396FB);
	border-radius: 0 0 3px 3px;
}

/* --------------------------------------------------------------------------
   Contador de novidades (ex: mensagens não lidas)
   -------------------------------------------------------------------------- */

.pwa-bottom-nav a[data-count]::after {
	content: attr(data-count);
	position: absolute;
	top: 4px;
	left: 50%;
	margin-left: 4px;
	min-width: 14px;
	height: 14px;
	background: var(--preferences-content-bg-button, #5396FB);
	color: var(--preferences-content-button-text-color, #ffffff);
	border-radius: 7px;
	font-size: 8px;
	line-height: 14px;
	padding: 0 3px;
	text-align: center;
}
