/*
  noticia.css: estilos do post individual + listagem
*/

/* ========================================
   Post individual
   ======================================== */
.post__hero {
	position: relative;
	color: var(--color-white);
	padding: 80px 0 60px;
	overflow: hidden;
	isolation: isolate;
}
.post__hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--color-blue-800) 0%, var(--color-primary) 50%, var(--color-teal-700) 100%);
	z-index: -1;
}
.post__hero-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 15% 20%, rgba(88, 201, 253, 0.25), transparent 50%),
		radial-gradient(circle at 85% 80%, rgba(84, 166, 204, 0.22), transparent 55%);
}
.post__hero-inner {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}
.post__breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--color-blue-500);
	text-decoration: none;
	font-weight: 600;
	background: rgba(88, 201, 253, .1);
	border: 1px solid rgba(88, 201, 253, .35);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
	transition: all .25s ease;
}
.post__breadcrumb:hover {
	background: rgba(88, 201, 253, .2);
	transform: translateX(-3px);
}
.post__title {
	font-size: 44px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 18px;
	letter-spacing: -0.5px;
	background: linear-gradient(90deg, #ffffff 0%, var(--color-blue-500) 50%, #ffffff 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: fadeUp .9s cubic-bezier(.22,.61,.36,1) both, shine 8s linear infinite;
}
.post__meta {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}
.post__meta i {
	color: var(--color-blue-500);
	margin-right: 6px;
}
.post__meta-divider { opacity: .5; }

.post__container {
	max-width: 820px;
	margin: -40px auto 0;
	position: relative;
	z-index: 1;
}
.post__featured {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 22px 60px rgba(12, 41, 93, 0.28);
	background: var(--color-white);
}
.post__featured img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 500px;
	object-fit: cover;
}

.post__body {
	background: var(--color-white);
	border-radius: 18px;
	padding: 50px 60px;
	margin-top: 40px;
	box-shadow: 0 12px 40px rgba(12, 41, 93, 0.1);
	border: 1px solid rgba(12, 41, 93, 0.05);
}
.post__lead {
	font-size: 19px;
	line-height: 1.65;
	color: var(--color-primary);
	font-weight: 500;
	border-left: 4px solid var(--color-blue-500);
	padding: 6px 0 6px 20px;
	margin: 0 0 30px;
	background: linear-gradient(90deg, rgba(88, 201, 253, 0.08), transparent 80%);
	border-radius: 0 8px 8px 0;
}
.post__content {
	font-size: 17px;
	line-height: 1.8;
	color: var(--color-neutral-900);
	white-space: pre-wrap;
}
.post__content a { color: var(--color-blue-600); }

.post__footer {
	max-width: 820px;
	margin: 30px auto 0;
	padding: 24px 0 60px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.post__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
	background: var(--color-white);
	border: 1.5px solid rgba(12, 41, 93, 0.12);
	padding: 10px 18px;
	border-radius: 999px;
	transition: all .25s ease;
}
.post__back:hover {
	border-color: var(--color-blue-500);
	color: var(--color-blue-500);
	transform: translateX(-3px);
}
.post__share {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-slate-700);
	font-size: 14px;
}
.post__share a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-white);
	border: 1.5px solid rgba(12, 41, 93, 0.12);
	color: var(--color-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all .25s ease;
}
.post__share a:hover {
	background: linear-gradient(135deg, var(--color-blue-500), var(--color-primary));
	color: var(--color-white);
	border-color: transparent;
	transform: translateY(-3px);
}

/* ========================================
   Notícias relacionadas
   ======================================== */
.post-related {
	background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
	padding: 80px 0 100px;
}
.post-related__header { text-align: center; margin-bottom: 40px; }
.post-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.post-related__card {
	background: var(--color-white);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(12, 41, 93, 0.08);
	border: 1px solid rgba(12, 41, 93, 0.05);
	text-decoration: none;
	color: inherit;
	transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
	display: flex;
	flex-direction: column;
}
.post-related__card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 38px rgba(12, 41, 93, 0.16);
}
.post-related__img {
	height: 180px;
	background: linear-gradient(135deg, #eef3fb, #d6e4f5);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.post-related__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.post-related__card:hover .post-related__img img { transform: scale(1.06); }
.post-related__noimg {
	font-size: 48px;
	color: var(--color-blue-600);
	opacity: 0.6;
}
.post-related__body {
	padding: 20px 22px 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.post-related__date {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-blue-500);
	margin-bottom: 8px;
}
.post-related__body h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--color-primary);
	margin: 0 0 8px;
	line-height: 1.3;
}
.post-related__body p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-neutral-900);
	opacity: .85;
	margin: 0;
}

/* ========================================
   Listagem completa de notícias
   ======================================== */
.news__grid--listing {
	grid-template-columns: repeat(3, 1fr);
}
.news__card-date {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--color-blue-500);
	margin-bottom: 10px;
}
.news__card-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--color-primary);
	transition: gap .25s ease, color .25s ease;
}
.news__card-link:hover .news__card-more {
	color: var(--color-blue-500);
	gap: 10px;
}

/* Responsivo */
@media (max-width: 900px) {
	.post__title { font-size: 32px; }
	.post__body { padding: 36px 28px; }
	.post__content { font-size: 16px; }
	.post__lead { font-size: 17px; }
	.post-related__grid { grid-template-columns: 1fr; }
	.post-related { padding: 60px 0 80px; }
}
@media (max-width: 640px) {
	.post__hero { padding: 60px 0 50px; }
	.post__title { font-size: 26px; }
	.post__container { margin-top: -30px; }
	.post__featured img { max-height: 280px; }
	.post__body { padding: 28px 20px; margin-top: 24px; }
	.post__content { font-size: 15px; line-height: 1.7; }
	.post__footer { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; padding: 18px 0 40px; }
	.post__share { justify-content: center; }
}
