/* Entrenanet — Link da Bio
   Paleta oficial da marca — ver seção 6 do CLAUDE.md (inclui o teste de contraste). */

.enb {
	--enb-bg: #582d7a;
	--enb-bg-alt: #990a7d;
	--enb-primary: #9c35ae;
	--enb-accent: #bb078a;
	--enb-ink: #ffffff;
	--enb-radius: 20px;
	--enb-gap: 10px;

	box-sizing: border-box;
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--enb-bg);
	color: var(--enb-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.enb *,
.enb *::before,
.enb *::after {
	box-sizing: border-box;
}

.enb-body {
	margin: 0;
	padding: 0;
	background: #582d7a; /* mesma cor de --enb-bg — evita um "flash" claro no efeito elástico do scroll no celular */
}

/* Brilho suave atrás do topo, dá profundidade sem pesar. */
.enb::before {
	content: "";
	position: absolute;
	top: -180px;
	left: 50%;
	width: 520px;
	height: 420px;
	transform: translateX(-50%);
	background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 68%);
	pointer-events: none;
	z-index: 0;
}

.enb__shell {
	position: relative;
	z-index: 1;
	max-width: 470px;
	margin: 0 auto;
	padding: 18px 18px 0;
}

/* ---------- Topo ---------- */

.enb-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.enb-head__logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--enb-primary);
	flex: 0 0 auto;
}

.enb-head__logo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--enb-accent), var(--enb-primary));
	color: #fff;
	font-family: Archivo, Inter, sans-serif;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.02em;
}

.enb-head__handle {
	position: relative;
	z-index: 1;
	font-family: Archivo, Inter, sans-serif;
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -0.01em;
	color: var(--enb-ink);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ---------- Card ASSINE AGORA ---------- */

.enb-cta {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 158px;
	margin-bottom: var(--enb-gap);
	padding: 22px 24px;
	border-radius: var(--enb-radius);
	background: linear-gradient(135deg, var(--enb-accent), var(--enb-primary));
	color: var(--enb-ink);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Vídeo de fundo do card (opcional) — cobre o card inteiro, atrás do texto. */
.enb-cta__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Camada escura sutil sobre o vídeo, só para o texto continuar legível
   mesmo com um vídeo claro ou movimentado por trás. */
.enb-cta:has(.enb-cta__video)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(88, 45, 122, 0.55), rgba(153, 10, 125, 0.4));
	z-index: 1;
}

.enb-cta__title {
	position: relative;
	z-index: 2;
	font-family: Archivo, Inter, sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ---------- Botão de suporte ---------- */

.enb-support {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 26px;
	padding: 17px 20px;
	border-radius: 999px;
	background: var(--enb-bg-alt);
	color: #fff;
	font-family: Archivo, Inter, sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.enb-support .enb-icon {
	width: 21px;
	height: 21px;
}

/* ---------- Publicações ---------- */

.enb-section {
	margin: 0 0 12px;
	font-family: Archivo, Inter, sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--enb-ink);
}

.enb-mosaic {
	--col: calc((100% - var(--enb-gap)) / 2);
	--row: calc(var(--col) * 0.44);

	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: var(--row);
	gap: var(--enb-gap);
	margin-bottom: var(--enb-gap);
}

.enb-tile {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 18px;
	background: var(--enb-accent);
	text-decoration: none;
	transition: transform 0.18s ease;
}

.enb-tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.enb-tile__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 12px 11px;
	background: linear-gradient(to top, rgba(15, 3, 26, 0.82), rgba(15, 3, 26, 0));
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.25;
}

/* Mosaico de 3: bloco grande + dois à direita.
   A linha (grid-row) de cada peça é sempre fixa, mesmo quando o grupo é
   espelhado — só a coluna muda. Isso evita um problema clássico do grid:
   quando a peça grande passa a pedir a coluna 2 mas continua sendo a
   primeira no HTML, o posicionamento automático "pula" a coluna 1 na
   primeira linha para as peças seguintes, empurrando-as pra baixo à toa. */
.enb-mosaic--3 .enb-tile--a {
	grid-column: 1;
	grid-row: 1 / span 3;
}

.enb-mosaic--3 .enb-tile--b {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.enb-mosaic--3 .enb-tile--c {
	grid-column: 2;
	grid-row: 3 / span 1;
}

/* Grupos alternados espelham o mosaico, criando ritmo ao rolar. */
.enb-mosaic--3.is-mirror .enb-tile--a {
	grid-column: 2;
}

.enb-mosaic--3.is-mirror .enb-tile--b,
.enb-mosaic--3.is-mirror .enb-tile--c {
	grid-column: 1;
}

/* Sobras: 2 viram quadrados lado a lado, 1 vira faixa larga. */
.enb-mosaic--2 .enb-tile {
	grid-row: span 2;
}

.enb-mosaic--1 .enb-tile {
	grid-column: 1 / -1;
	grid-row: span 2;
}

/* Espaço para a barra não cobrir o último bloco. */
.enb-spacer {
	height: 116px;
}

/* ---------- Barra inferior ---------- */

.enb-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	display: flex;
	justify-content: center;
	padding: 0 18px calc(16px + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
}

.enb-nav__inner {
	pointer-events: auto;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 6px;
	width: 100%;
	max-width: 340px;
	padding: 8px;
	border-radius: 999px;
	background: var(--enb-bg-alt);
	box-shadow: 0 14px 34px rgba(22, 5, 35, 0.34);
}

.enb-nav__btn {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 10px 4px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.18s ease;
}

.enb-nav__btn .enb-icon {
	width: 24px;
	height: 24px;
}

.enb-nav__label {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.85;
}

/* ---------- Interações ---------- */

@media (hover: hover) {
	.enb-cta:hover,
	.enb-support:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 26px rgba(28, 6, 48, 0.2);
	}

	.enb-tile:hover img {
		transform: scale(1.05);
	}

	.enb-nav__btn:hover {
		background: rgba(255, 255, 255, 0.14);
	}
}

.enb a:active {
	transform: translateY(1px);
}

.enb a:focus-visible {
	outline: 3px solid var(--enb-primary);
	outline-offset: 3px;
}

.enb-nav__btn:focus-visible {
	outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.enb *,
	.enb *::before,
	.enb *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* Telas maiores: mantém o formato de celular, só respira mais. */
@media (min-width: 640px) {
	.enb__shell {
		padding-top: 34px;
	}

	.enb-cta__title {
		font-size: 33px;
	}
}
