/* ============================================================
   Braz Posts Cards — Hero (Destaque Principal)
   ============================================================ */

.bpc-hero {
	position: relative;
	display: flex;
	overflow: hidden;
	min-height: 440px;
	border-radius: 24px;
	isolation: isolate; /* contém os z-index dos filhos */
	background-color: #1f3a24;
	/* fallbacks do gradiente (sobrescritos pelos controles) */
	--bpc-hero-c1: rgba(26, 46, 30, 0.15);
	--bpc-hero-c2: rgba(20, 38, 24, 0.95);
	--bpc-hero-angle: 180deg;
}

/* ── Mídia de fundo ─────────────────────────────── */
.bpc-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.bpc-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Empty-state (sem imagem) ───────────────────── */
.bpc-hero__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: center;
	padding: 24px;
}

.bpc-hero__placeholder-icon {
	font-size: 56px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.25);
}

.bpc-hero__placeholder-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.bpc-hero__placeholder-text {
	font-size: 16px;
	max-width: 560px;
	color: rgba(255, 255, 255, 0.45);
}

/* ── Overlay / gradiente ────────────────────────── */
.bpc-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		var(--bpc-hero-angle, 180deg),
		var(--bpc-hero-c1, rgba(26, 46, 30, 0.15)),
		var(--bpc-hero-c2, rgba(20, 38, 24, 0.95))
	);
	pointer-events: none;
}

/* ── Conteúdo ───────────────────────────────────── */
.bpc-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	padding: 40px;
	gap: 24px;
}

.bpc-hero__top {
	display: flex;
	justify-content: flex-end;
}

.bpc-hero__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

/* ── Pílula-guia ────────────────────────────────── */
.bpc-hero__guide {
	position: relative;
	z-index: 4; /* acima do stretched-link */
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	background-color: #fff;
	color: #1f3a24;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bpc-hero__guide:hover {
	background-color: #f3f3ee;
}

.bpc-hero__guide-icon {
	display: inline-flex;
	font-size: 0.85em;
}

.bpc-hero__guide-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.bpc-hero__guide-arrow {
	font-weight: 700;
}

/* ── Badge de categoria ─────────────────────────── */
.bpc-hero__category {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	background-color: #e0613a;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

/* ── Título ─────────────────────────────────────── */
.bpc-hero__title {
	margin: 0;
	max-width: 60%;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 4vw, 52px);
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
}

.bpc-hero__title-link {
	color: inherit;
	text-decoration: none;
}

.bpc-hero__title-link:hover {
	text-decoration: none;
}

/* ── Meta ───────────────────────────────────────── */
.bpc-hero__meta {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
}

.bpc-hero__sep {
	opacity: 0.7;
}

/* ── Hero inteiro clicável (anchor de cobertura) ── */
.bpc-hero__cover-link {
	position: absolute;
	inset: 0;
	z-index: 3; /* acima do conteúdo, abaixo da pílula-guia (z-index 4) */
	text-indent: -9999px;
	overflow: hidden;
}

.bpc-hero--clickable {
	cursor: pointer;
}

/* ── Aviso no editor quando não há post ─────────── */
.bpc-hero--empty-notice {
	min-height: 200px;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
}

/* ── Responsivo ─────────────────────────────────── */
@media (max-width: 1024px) {
	.bpc-hero__title { max-width: 80%; }
}

@media (max-width: 767px) {
	.bpc-hero__inner { padding: 24px; }
	.bpc-hero__title { max-width: 100%; }
	.bpc-hero__top { justify-content: flex-start; }
	.bpc-hero__guide { font-size: 14px; padding: 8px 16px; }
}
