/**
 * Recent Posts Highlight Section
 * Moderne grid layout met 1 grote en 4 kleine posts
 *
 * @package Hillegom_Online
 */

/* ============================================
   RECENT POSTS HIGHLIGHT SECTION
   ============================================ */

.recent-posts-highlight {
	margin-bottom: var(--spacing-2xl);
	margin-left: 6px;
	margin-right: 6px;
}

.recent-posts-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	grid-template-rows: repeat(2, 1fr);
	gap: 16px;
	min-height: 450px;
}

/* Main Featured Post (Links, groot) */
.recent-post-main {
	grid-column: 1;
	grid-row: 1 / 3;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	min-height: 450px;
}

/* Side Posts (Rechts, 4 kleinere) */
.recent-post-side {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	min-height: 215px;
}

.recent-post-side:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
}

.recent-post-side:nth-child(3) {
	grid-column: 2;
	grid-row: 2;
}

.recent-post-side:nth-child(4) {
	grid-column: 3;
	grid-row: 1;
}

.recent-post-side:nth-child(5) {
	grid-column: 3;
	grid-row: 2;
}

/* Hover Effects */
.recent-post-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.recent-post-link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* Image Container */
.recent-post-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.recent-post-main .recent-post-image {
	height: 100%;
}

.recent-post-side .recent-post-image {
	height: 100%;
}

.recent-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.recent-post-item:hover .recent-post-image img {
	transform: scale(1.05);
}

/* Overlay */
.recent-post-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.3) 50%,
		rgba(0, 0, 0, 0.7) 100%
	);
	z-index: 1;
}

/* Category Badge */
.recent-post-category,
.recent-post-type {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--blue-text);
	color: white;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.recent-post-type.fotoreportage-badge {
	background: var(--accent-yellow);
	color: var(--text-primary);
}

.recent-post-main .recent-post-category,
.recent-post-main .recent-post-type {
	font-size: 12px;
	padding: 8px 18px;
	gap: 6px;
}

/* Content Container */
.recent-post-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	color: white;
	z-index: 2;
}

.recent-post-main .recent-post-content {
	padding: 24px;
}

/* Title */
.recent-post-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px 0;
	color: white;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.recent-post-main .recent-post-title {
	font-size: 24px;
	-webkit-line-clamp: 3;
	margin-bottom: 12px;
}

/* Excerpt (alleen main post) */
.recent-post-excerpt {
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 12px;
	color: rgba(255, 255, 255, 0.95);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Meta */
.recent-post-meta {
	display: none; /* Verborgen - datum niet tonen op homepage */
}

.recent-post-date {
	display: none;
}

.recent-post-date::before {
	display: none;
}

/* ============================================
   RESPONSIVE - TABLET (768px - 991px)
   ============================================ */

@media (max-width: 991px) {
	.recent-posts-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 300px repeat(2, 215px);
		min-height: auto;
	}

	.recent-post-main {
		grid-column: 1 / 3;
		grid-row: 1;
		min-height: 300px;
	}

	.recent-post-side {
		min-height: 215px;
	}

	.recent-post-side:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}

	.recent-post-side:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
	}

	.recent-post-side:nth-child(4) {
		grid-column: 1;
		grid-row: 3;
	}

	.recent-post-side:nth-child(5) {
		grid-column: 2;
		grid-row: 3;
	}

	.recent-post-main .recent-post-title {
		font-size: 22px;
	}

	.recent-post-title {
		font-size: 15px;
	}

	.recent-post-main .recent-post-content {
		padding: 20px;
	}

	.recent-post-content {
		padding: 16px;
	}
}

/* ============================================
   RESPONSIVE - MOBILE (max 767px)
   ============================================ */

@media (max-width: 767px) {
	.recent-posts-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		gap: 12px;
	}

	.recent-post-main {
		grid-column: 1;
		grid-row: 1;
		min-height: 320px;
	}

	.recent-post-side {
		grid-column: 1 !important;
		grid-row: auto !important;
		min-height: 200px;
	}

	.recent-post-main .recent-post-title {
		font-size: 20px;
	}

	.recent-post-title {
		font-size: 15px;
	}

	.recent-post-main .recent-post-content {
		padding: 20px;
	}

	.recent-post-content {
		padding: 16px;
	}

	.recent-post-excerpt {
		font-size: 14px;
		-webkit-line-clamp: 2;
	}
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ============================================ */

@media (max-width: 480px) {
	.recent-posts-highlight {
		margin-bottom: var(--spacing-xl);
	}

	.recent-post-main {
		min-height: 280px;
	}

	.recent-post-side {
		min-height: 180px;
	}

	.recent-post-main .recent-post-title {
		font-size: 18px;
	}

	.recent-post-title {
		font-size: 14px;
	}

	.recent-post-category {
		font-size: 10px;
		padding: 5px 12px;
	}

	.recent-post-main .recent-post-category {
		font-size: 11px;
		padding: 6px 14px;
	}
}
