/* ==========================================================================
   Central News — Notícia individual (single.php)
   ========================================================================== */

.single-noticia { padding: 32px 0 8px; }

.single-noticia__col { min-width: 0; }

.single-noticia__article { max-width: 760px; }

.single-noticia__header { margin-bottom: 20px; }

.single-noticia__chapeu {
	display: inline-block;
	background: var(--green-700);
	color: #fff;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 4px 11px;
	border-radius: 4px;
	margin-bottom: 12px;
}

a.single-noticia__chapeu:hover { background: var(--green-900); }

.single-noticia__title {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	line-height: 1.22;
	font-weight: 800;
	color: var(--ink);
	margin: 0 0 12px;
	text-wrap: balance;
}

.single-noticia__deck {
	font-size: 1.05rem;
	color: var(--ink-soft);
	line-height: 1.5;
	margin: 0 0 14px;
}

.single-noticia__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	row-gap: 4px;
	font-size: .82rem;
	color: var(--ink-faint);
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.single-noticia__author { font-weight: 700; color: var(--ink-soft); }

.single-noticia__reading-time { white-space: nowrap; }

/* ---------- Slot de anúncio (topo/meio) ---------- */
.single-noticia__ad { margin: 20px 0; }

.single-noticia__thumb {
	margin: 20px 0;
	border-radius: 10px;
	overflow: hidden;
}

.single-noticia__thumb img { width: 100%; height: auto; display: block; }

/* ---------- Barra de compartilhamento ---------- */
.share-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 18px 0;
	padding: 12px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.share-bar__label {
	font-size: .74rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ink-faint);
	margin-right: 4px;
}

.share-bar__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #fff;
	transition: transform .15s ease, opacity .15s ease;
}

.share-bar__btn svg { width: 16px; height: 16px; }

.share-bar__btn:hover { transform: translateY(-2px); opacity: .92; }

.share-bar__btn--whatsapp { background: #25D366; }
.share-bar__btn--facebook { background: #1877F2; }
.share-bar__btn--x { background: #0F1419; }
.share-bar__btn--telegram { background: #229ED9; }
.share-bar__btn--copy { background: var(--ink-faint); }

/* Ícone de link e de "check" (confirmação de cópia) ocupam o mesmo lugar;
   só um dos dois fica visível por vez, trocado pela classe --copied. */
.share-bar__btn--copy svg:last-child { display: none; }
.share-bar__btn--copy.share-bar__btn--copied { background: var(--green-700); }
.share-bar__btn--copy.share-bar__btn--copied svg:first-child { display: none; }
.share-bar__btn--copy.share-bar__btn--copied svg:last-child { display: block; }

.share-bar__btn--copy::after {
	content: "Link copiado";
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: var(--ink);
	color: #fff;
	font-size: .7rem;
	font-weight: 600;
	white-space: nowrap;
	padding: 4px 8px;
	border-radius: 4px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
}

.share-bar__btn--copy.share-bar__btn--copied::after {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.single-noticia__content {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--ink);
}

.single-noticia__content p { margin: 0 0 20px; }

.single-noticia__content h2,
.single-noticia__content h3 {
	color: var(--green-900);
	line-height: 1.3;
	margin: 32px 0 14px;
}

.single-noticia__content a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }

.single-noticia__content img { max-width: 100%; height: auto; border-radius: 8px; }

.single-noticia__content blockquote {
	margin: 24px 0;
	padding: 4px 20px;
	border-left: 3px solid var(--gold-500);
	color: var(--ink-soft);
	font-style: italic;
}

.single-noticia__relacionadas { margin-top: 40px; padding-top: 8px; }

/* ---------- Navegação entre notícias ---------- */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 32px;
	max-width: 760px;
}

.post-nav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--paper-raised);
	box-shadow: var(--shadow-sm);
	transition: box-shadow .18s ease, transform .18s ease;
	min-width: 0;
}

.post-nav__item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.post-nav__item--next { justify-content: flex-end; text-align: right; }

.post-nav__arrow { font-size: 1.2rem; color: var(--green-700); flex-shrink: 0; }

.post-nav__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.post-nav__label {
	font-size: .68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ink-faint);
}

.post-nav__title {
	font-size: .86rem;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 767px) {
	.single-noticia { padding: 20px 0 4px; }

	.share-bar { flex-wrap: wrap; row-gap: 8px; }

	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.share-bar__btn,
	.post-nav__item { transition: none !important; }
}
