/**
 * Futuros Vinotinto - Blog Archive & News Index Styles
 *
 * @package FuturosVinotinto
 */

/* -------------------------------------------------------------
 * 1. Blog & Archive Header
 * ---------------------------------------------------------- */
/* Ensure solid branded header on blog archive pages (excluding home/landing) */
body.blog:not(.home) .fv-header,
body.archive .fv-header,
body.search .fv-header {
	background: rgba(43, 8, 15, 0.98);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(214, 168, 75, 0.25);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.fv-blog-header {
	background: linear-gradient(135deg, var(--fv-vinotinto-dark, #3b0a13) 0%, var(--fv-vinotinto, #5b1220) 100%);
	color: #ffffff;
	padding: calc(var(--fv-header-height, 84px) + 36px) 0 50px;
	text-align: center;
	position: relative;
	overflow: hidden;
	border-bottom: 3px solid var(--fv-gold, #d4af37);
}

.fv-blog-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.fv-blog-header__tag {
	display: inline-block;
	font-family: var(--fv-font-heading, "Bebas Neue", sans-serif);
	font-size: 15px;
	letter-spacing: 2px;
	color: var(--fv-gold, #d4af37);
	text-transform: uppercase;
	margin-bottom: 8px;
}

.fv-blog-header__title {
	font-family: var(--fv-font-heading, "Bebas Neue", sans-serif);
	font-size: clamp(32px, 5vw, 56px);
	letter-spacing: 1.5px;
	color: #ffffff;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.fv-blog-header__desc {
	max-width: 680px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

/* -------------------------------------------------------------
 * 2. Blog Grid & Cards
 * ---------------------------------------------------------- */
.fv-blog-section {
	padding: 70px 0 100px;
	background-color: var(--fv-gray-light, #f8f9fa);
	min-height: 50vh;
}

.fv-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.fv-blog-card {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.fv-blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 28px rgba(91, 18, 32, 0.12);
}

.fv-blog-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #2b080f;
}

.fv-blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.fv-blog-card:hover .fv-blog-card__img {
	transform: scale(1.05);
}

.fv-blog-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--fv-vinotinto, #5b1220);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	z-index: 2;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.fv-blog-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.fv-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: #6c757d;
	margin-bottom: 10px;
}

.fv-blog-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.fv-blog-card__title {
	font-family: var(--fv-font-heading, "Bebas Neue", sans-serif);
	font-size: 22px;
	letter-spacing: 0.5px;
	line-height: 1.25;
	margin: 0 0 12px;
	color: var(--fv-vinotinto-dark, #2b080f);
	transition: color 0.2s ease;
	word-break: break-word;
	overflow-wrap: break-word;
}

.fv-blog-card__title a {
	color: inherit;
	text-decoration: none;
}

.fv-blog-card__title a:hover {
	color: var(--fv-vinotinto, #5b1220);
}

.fv-blog-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #495057;
	margin: 0 0 18px;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fv-blog-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--fv-vinotinto, #5b1220);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: gap 0.2s ease, color 0.2s ease;
}

.fv-blog-card__cta:hover {
	gap: 10px;
	color: var(--fv-gold, #d4af37);
}

/* -------------------------------------------------------------
 * 3. Pagination & Empty State
 * ---------------------------------------------------------- */
.fv-pagination {
	margin-top: 50px;
	display: flex;
	justify-content: center;
}

.fv-pagination .nav-links {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}

.fv-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--fv-vinotinto, #5b1220);
	background: #ffffff;
	border: 1px solid #dee2e6;
	text-decoration: none;
	transition: all 0.2s ease;
}

.fv-pagination .page-numbers:hover,
.fv-pagination .page-numbers.current {
	background: var(--fv-vinotinto, #5b1220);
	color: #ffffff;
	border-color: var(--fv-vinotinto, #5b1220);
}

.fv-blog-empty {
	text-align: center;
	padding: 60px 20px;
	background: #ffffff;
	border-radius: 12px;
	border: 1px dashed #ced4da;
	grid-column: 1 / -1;
}

.fv-blog-empty__title {
	font-family: var(--fv-font-heading, "Bebas Neue", sans-serif);
	font-size: 26px;
	color: var(--fv-vinotinto-dark, #2b080f);
	margin-bottom: 8px;
}

/* -------------------------------------------------------------
 * 4. Responsive Breakpoints (Mobile, Tablet, Desktop)
 * ---------------------------------------------------------- */
@media (max-width: 1024px) {
	.fv-blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (max-width: 680px) {
	.fv-blog-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.fv-blog-header {
		padding: calc(var(--fv-header-height, 84px) + 20px) 0 35px;
	}

	.fv-blog-header__title {
		font-size: 30px;
	}

	.fv-blog-card__body {
		padding: 20px 18px;
	}

	.fv-blog-card__title {
		font-size: 20px;
	}

	.fv-blog-section {
		padding: 40px 0 60px;
	}

	.fv-pagination {
		margin-top: 36px;
	}

	.fv-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 10px;
		font-size: 13px;
	}
}
