/**
 * Artigo em destaque — Blog Valore RH
 *
 * @package Valore_RH_Core
 * @since   1.0.0
 */

/* =========================================================
   1. COMPONENTE PRINCIPAL
========================================================= */

.vr-featured-post {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
	align-items: stretch;

	width: min(100%, 1200px);
	min-height: 420px;

	margin: 0 auto;
	overflow: hidden;

	background-color: #ffffff;

	border: 1px solid rgba(6, 26, 47, 0.09);
	border-radius: 22px;

	box-shadow:
		0 16px 38px rgba(6, 26, 47, 0.09),
		0 3px 10px rgba(6, 26, 47, 0.04);

	font-family:
		var(--valore-font-body, "Inter", Arial, sans-serif);

	transition:
		transform 220ms ease,
		box-shadow 220ms ease,
		border-color 220ms ease;
}

.vr-featured-post *,
.vr-featured-post *::before,
.vr-featured-post *::after {
	box-sizing: border-box;
}

.vr-featured-post:hover {
	transform: translateY(-3px);

	border-color: rgba(217, 164, 65, 0.24);

	box-shadow:
		0 22px 48px rgba(6, 26, 47, 0.12),
		0 5px 14px rgba(6, 26, 47, 0.05);
}

/* =========================================================
   2. ÁREA DA IMAGEM
========================================================= */

.vr-featured-image {
	position: relative;

	min-width: 0;
	min-height: 420px;

	overflow: hidden;

	background-color: #061a2f;
}

.vr-featured-image > a {
	display: block;

	width: 100%;
	height: 100%;

	text-decoration: none;
}

.vr-featured-image img {
	display: block;

	width: 100%;
	height: 100%;
	min-height: 420px;

	object-fit: cover;
	object-position: center;

	transition: transform 500ms ease;
}

.vr-featured-post:hover .vr-featured-image img {
	transform: scale(1.03);
}

/* =========================================================
   3. PLACEHOLDER SEM IMAGEM DESTACADA
========================================================= */

.vr-featured-image__placeholder {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;
	min-height: 420px;

	padding: 36px;

	overflow: hidden;

	background:
		radial-gradient(
			circle at 28% 24%,
			rgba(217, 164, 65, 0.28) 0%,
			rgba(217, 164, 65, 0.08) 32%,
			rgba(217, 164, 65, 0) 60%
		),
		linear-gradient(
			135deg,
			#061a2f 0%,
			#0a2944 55%,
			#071c30 100%
		);
}

.vr-featured-image__placeholder::before,
.vr-featured-image__placeholder::after {
	content: "";

	position: absolute;

	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.vr-featured-image__placeholder::before {
	width: 280px;
	height: 280px;

	top: -90px;
	right: -100px;
}

.vr-featured-image__placeholder::after {
	width: 190px;
	height: 190px;

	bottom: -80px;
	left: -60px;
}

.vr-featured-image__placeholder span {
	position: relative;
	z-index: 1;

	color: #ffffff;

	font-family:
		var(--valore-font-display, "Montserrat", Arial, sans-serif);

	font-size: clamp(32px, 4.5vw, 52px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;

	text-align: center;
}

.vr-featured-image__placeholder span::after {
	content: "Conteúdo que transforma pessoas e negócios";

	display: block;

	max-width: 300px;

	margin: 16px auto 0;

	color: rgba(255, 255, 255, 0.7);

	font-family:
		var(--valore-font-body, "Inter", Arial, sans-serif);

	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0;
}

/* =========================================================
   4. CONTEÚDO
========================================================= */

.vr-featured-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;

	min-width: 0;

	padding: 40px 42px;

	background:
		linear-gradient(
			180deg,
			#ffffff 0%,
			#ffffff 78%,
			#fbfcfd 100%
		);
}

/* =========================================================
   5. CATEGORIA
========================================================= */

.vr-featured-category {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	max-width: 100%;

	margin: 0 0 16px;
	padding: 7px 12px;

	color: #8a6314;
	background-color: rgba(217, 164, 65, 0.13);

	border: 1px solid rgba(217, 164, 65, 0.28);
	border-radius: 999px;

	font-family:
		var(--valore-font-display, "Montserrat", Arial, sans-serif);

	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.045em;
	text-decoration: none;
	text-transform: uppercase;

	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;

	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease;
}

a.vr-featured-category:hover {
	color: #061a2f;
	background-color: rgba(217, 164, 65, 0.21);
	border-color: rgba(217, 164, 65, 0.5);
}

/* =========================================================
   6. TÍTULO
========================================================= */

.vr-featured-title {
	display: -webkit-box;

	max-width: 560px;
	margin: 0;

	overflow: hidden;

	font-family:
		var(--valore-font-display, "Montserrat", Arial, sans-serif);

	font-size: clamp(28px, 2.8vw, 41px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.032em;

	text-wrap: balance;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.vr-featured-title a {
	color: #061a2f;
	text-decoration: none;

	transition: color 180ms ease;
}

.vr-featured-title a:hover {
	color: #b98524;
}

/* =========================================================
   7. RESUMO
========================================================= */

.vr-featured-excerpt {
	display: -webkit-box;

	max-width: 560px;

	margin: 20px 0 0;
	overflow: hidden;

	color: #5d6b79;

	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

/* =========================================================
   8. BOTÃO
========================================================= */

.vr-featured-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 9px;

	min-height: 46px;

	margin-top: 24px;
	padding: 0 20px;

	color: #061a2f;
	background:
		linear-gradient(
			180deg,
			#f0bd47 0%,
			#d9a441 100%
		);

	border: 1px solid rgba(177, 128, 29, 0.38);
	border-radius: 11px;

	box-shadow:
		0 8px 18px rgba(217, 164, 65, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.42);

	font-family:
		var(--valore-font-display, "Montserrat", Arial, sans-serif);

	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;

	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		filter 180ms ease;
}

.vr-featured-button svg {
	flex: 0 0 auto;

	transition: transform 180ms ease;
}

.vr-featured-button:hover {
	color: #061a2f;

	filter: brightness(1.02);
	transform: translateY(-2px);

	box-shadow:
		0 12px 24px rgba(217, 164, 65, 0.27),
		inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.vr-featured-button:hover svg {
	transform: translateX(4px);
}

/* =========================================================
   9. MENSAGEM SEM ARTIGOS
========================================================= */

.vr-featured-empty {
	width: min(100%, 1200px);

	margin: 0 auto;
	padding: 38px;

	color: #5d6b79;
	background-color: #ffffff;

	border: 1px solid rgba(6, 26, 47, 0.1);
	border-radius: 18px;

	font-family:
		var(--valore-font-body, "Inter", Arial, sans-serif);

	font-size: 16px;
	line-height: 1.6;
	text-align: center;
}

/* =========================================================
   10. ACESSIBILIDADE
========================================================= */

.vr-featured-post a:focus-visible {
	outline: 3px solid rgba(217, 164, 65, 0.8);
	outline-offset: 4px;
}

/* =========================================================
   11. NOTEBOOK E TABLET GRANDE
========================================================= */

@media (max-width: 1180px) {
	.vr-featured-post {
		grid-template-columns: minmax(0, 1fr) minmax(350px, 0.92fr);
		min-height: 400px;
	}

	.vr-featured-image,
	.vr-featured-image img,
	.vr-featured-image__placeholder {
		min-height: 400px;
	}

	.vr-featured-content {
		padding: 36px 34px;
	}

	.vr-featured-title {
		font-size: clamp(27px, 3.2vw, 37px);
	}

	.vr-featured-excerpt {
		font-size: 15px;
		line-height: 1.6;

		-webkit-line-clamp: 4;
	}
}

/* =========================================================
   12. TABLET
========================================================= */

@media (max-width: 900px) {
	.vr-featured-post {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.vr-featured-image {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.vr-featured-image img {
		min-height: 0;
	}

	.vr-featured-image__placeholder {
		min-height: 100%;
	}

	.vr-featured-content {
		padding: 38px 34px 42px;
	}

	.vr-featured-title {
		max-width: 720px;
		font-size: clamp(30px, 5vw, 40px);

		-webkit-line-clamp: 3;
	}

	.vr-featured-excerpt {
		max-width: 720px;

		-webkit-line-clamp: 3;
	}
}

/* =========================================================
   13. MOBILE
========================================================= */

@media (max-width: 767px) {
	.vr-featured-post {
		display: block;

		min-height: 0;

		border-radius: 20px;
	}

	.vr-featured-post:hover {
		transform: none;
	}

	.vr-featured-image {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	.vr-featured-image img {
		min-height: 0;
	}

	.vr-featured-image__placeholder {
		min-height: 100%;
		padding: 30px 24px;
	}

	.vr-featured-image__placeholder span {
		font-size: clamp(30px, 10vw, 44px);
	}

	.vr-featured-image__placeholder span::after {
		max-width: 280px;

		font-size: 13px;
	}

	.vr-featured-content {
		padding: 30px 24px 34px;
	}

	.vr-featured-category {
		margin-bottom: 15px;

		font-size: 10px;
	}

	.vr-featured-title {
		font-size: clamp(27px, 8vw, 35px);
		line-height: 1.12;

		-webkit-line-clamp: 4;
	}

	.vr-featured-excerpt {
		margin-top: 17px;

		font-size: 15px;
		line-height: 1.62;

		-webkit-line-clamp: 4;
	}

	.vr-featured-button {
		width: 100%;

		min-height: 48px;
		margin-top: 24px;
	}
}

/* =========================================================
   14. MOBILE PEQUENO
========================================================= */

@media (max-width: 480px) {
	.vr-featured-post {
		border-radius: 16px;
	}

	.vr-featured-content {
		padding: 27px 20px 30px;
	}

	.vr-featured-title {
		font-size: 28px;
	}

	.vr-featured-excerpt {
		font-size: 14px;
	}
}

/* =========================================================
   15. REDUÇÃO DE MOVIMENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {
	.vr-featured-post,
	.vr-featured-image img,
	.vr-featured-category,
	.vr-featured-title a,
	.vr-featured-button,
	.vr-featured-button svg {
		transition: none;
	}

	.vr-featured-post:hover,
	.vr-featured-button:hover,
	.vr-featured-post:hover .vr-featured-image img,
	.vr-featured-button:hover svg {
		transform: none;
	}
}