/* Hero: imagem destacada em full-bleed, com overlay e tag de categoria */
.post-hero {
	position: relative;
	z-index: 1;
	width: 100%;
	height: min(60vh, 560px);
	min-height: 320px;
	overflow: hidden;
}

.post-hero-img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	display: block;
}

.post-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.95) 100%);
}

.post-hero-tag {
	position: absolute;
	left: 24px;
	bottom: 24px;
	padding: 6px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ec008c, #f9b026);
	color: white;
	font-family: system-ui, sans-serif;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
}

/* Sem imagem destacada: só reserva espaço pro cabeçalho não ficar colado no navbar fixo */
.post-hero--empty {
	height: 140px;
}

/* Cartão de leitura, puxado por cima do rodapé da imagem (efeito editorial) */
.post-card {
	position: relative;
	z-index: 1;
	max-width: 860px;
	margin: -48px auto 0;
	padding: 40px clamp(20px, 5vw, 56px) 56px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 24px 24px 0 0;
	backdrop-filter: blur(14px);
	color: white;
}

@media (min-width: 640px) {
	.post-card {
		margin-top: -64px;
		border-radius: 24px;
	}
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-family: system-ui, sans-serif;
	font-size: .85rem;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 14px;
}

.post-meta .post-category {
	color: #f9b026;
	font-weight: 600;
	text-decoration: none;
}

.post-title {
	font-family: 'Fredoka', system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(1.8rem, 4.2vw, 3rem);
	line-height: 1.15;
	letter-spacing: .01em;
}

/* Corpo do artigo. Diferente do resto do site (que fica tudo em minúsculo por
   identidade visual), o texto do post em si usa capitalização normal - senão
   siglas como SEO/IA/ROI saem minúsculas no meio de um parágrafo real. */
.post-content {
	text-transform: none;
	max-width: 680px;
	margin: 32px auto 0;
	font-family: system-ui, sans-serif;
	font-size: 1.08rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.85);
}

.post-content > * + * {
	margin-top: 1.3em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
	font-family: 'Fredoka', system-ui, sans-serif;
	font-weight: 600;
	color: white;
	line-height: 1.3;
	margin-top: 1.6em;
	padding-left: 16px;
	border-left: 4px solid;
	border-image: linear-gradient(180deg, #ec008c, #f9b026) 1;
}

.post-content h2 {
	font-size: 1.6rem;
}

.post-content h3 {
	font-size: 1.3rem;
}

.post-content a {
	color: #f9b026;
	text-decoration: underline;
	text-decoration-color: rgba(249, 176, 38, 0.4);
	text-underline-offset: 3px;
	transition: text-decoration-color .2s;
}

.post-content a:hover {
	text-decoration-color: #f9b026;
}

.post-content ul,
.post-content ol {
	padding-left: 1.4em;
}

.post-content li + li {
	margin-top: .5em;
}

.post-content li::marker {
	color: #ec008c;
}

.post-content blockquote {
	padding: 4px 0 4px 20px;
	border-left: 3px solid #ec008c;
	font-style: italic;
	color: rgba(255, 255, 255, 0.75);
}

.post-content img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
}

.post-content figcaption {
	text-transform: lowercase;
	text-align: center;
	font-size: .85rem;
	color: rgba(255, 255, 255, 0.5);
	margin-top: .5em;
}

/* Navegação anterior / próximo post */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	max-width: 680px;
	margin: 56px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.post-nav-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: white;
	text-decoration: none;
	transition: background .2s, border-color .2s;
}

.post-nav-link:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
}

.post-nav-next {
	text-align: right;
	align-items: flex-end;
}

.post-nav-eyebrow {
	font-size: .75rem;
	color: rgba(255, 255, 255, .5);
}

.post-nav-title {
	font-size: .92rem;
	font-weight: 600;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 560px) {
	.post-nav {
		grid-template-columns: 1fr;
	}
}

/* Posts relacionados - reaproveita .articles/.article-card de articles.css */
.post-related {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 24px 10px;
}

.post-related-title {
	color: white;
	font-family: 'Fredoka', system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(1.4rem, 3vw, 2rem);
	text-align: center;
	margin-bottom: 4px;
}
