/*
 * Blog Listing Page Styles
 */

/* ========================================
   Container
   ======================================== */
.blog-listing-container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

/* ========================================
   Blog Posts Grid
   ======================================== */
.blog-post-article {
	max-width: 1200px;
	margin: 0 auto 40px auto;
	background: var(--card-bg);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 20px var(--card-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-article:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px var(--card-shadow);
}

/* Featured Image */
.blog-post-image {
	width: 100%;
	height: 400px;
	overflow: hidden;
	position: relative;
}

.blog-post-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.post-featured-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.blog-post-article:hover .post-featured-image {
	transform: scale(1.05);
}

/* Placeholder for posts without images */
.blog-post-placeholder {
	background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.blog-post-placeholder a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.blog-post-placeholder .placeholder-content {
	color: white;
	font-size: 6rem;
	font-weight: bold;
}

/* Blog Post Content */
.blog-post-content {
	padding: 40px 50px 50px 50px;
}

/* Post Meta */
.blog-post-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 25px;
	flex-wrap: wrap;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--primary-green);
}

.post-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--body-text);
}

.post-author .author-avatar {
	border-radius: 50%;
	width: 32px;
	height: 32px;
}

.author-name {
	font-weight: 600;
	color: var(--body-text);
}

.post-categories {
	display: flex;
	gap: 10px;
	align-items: center;
}

.post-category {
	background: var(--primary-green);
	color: #fff;
	padding: 6px 16px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.post-category:hover {
	background: var(--primary-green-dark);
	transform: translateY(-2px);
}

/* Entry Header */
.blog-post-content .entry-header {
	margin-bottom: 20px;
}

.blog-post-content .entry-title {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

.blog-post-content .entry-title a {
	color: var(--body-text);
	text-decoration: none;
	transition: color 0.3s ease;
}

.blog-post-content .entry-title a:hover {
	color: var(--primary-green);
}

/* Post Excerpt */
.blog-post-excerpt {
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--body-text);
	margin-bottom: 25px;
}

.blog-post-excerpt p {
	margin: 0;
}

/* Read More Link */
.read-more-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--primary-green);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.read-more-link:hover {
	color: var(--primary-green-dark);
	gap: 12px;
}

.read-more-link span {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}

.read-more-link:hover span {
	transform: translateX(3px);
}

/* Page Header */
.page-header {
	max-width: 1200px;
	margin: 0 auto 40px auto;
	padding: 40px 20px;
	text-align: center;
}

.page-title {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--body-text);
	margin: 0 0 15px 0;
}

.archive-description {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--body-text);
	opacity: 0.8;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 768px) {
	.blog-post-image {
		height: 300px;
	}

	.blog-post-content {
		padding: 30px 20px;
	}

	.blog-post-content .entry-title {
		font-size: 1.5rem;
	}

	.blog-post-excerpt {
		font-size: 1rem;
	}

	.blog-post-placeholder .placeholder-content {
		font-size: 4rem;
	}

	.page-title {
		font-size: 2rem;
	}

	.blog-post-meta {
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.blog-post-image {
		height: 250px;
	}

	.blog-post-content {
		padding: 20px 15px;
	}

	.blog-post-content .entry-title {
		font-size: 1.25rem;
	}

	.blog-post-meta {
		gap: 10px;
		font-size: 0.875rem;
	}

	.post-author .author-avatar {
		width: 24px;
		height: 24px;
	}

	.post-category {
		padding: 4px 12px;
		font-size: 0.75rem;
	}

	.blog-post-placeholder .placeholder-content {
		font-size: 3rem;
	}

	.page-title {
		font-size: 1.75rem;
	}
}

/* ========================================
   Pagination
   ======================================== */
.posts-navigation,
.pagination {
	max-width: 1200px;
	margin: 40px auto 60px auto;
	padding: 0 20px;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.nav-previous a,
.nav-next a,
.page-numbers {
	display: inline-block;
	padding: 12px 24px;
	background: var(--card-bg);
	color: var(--body-text);
	border: 2px solid var(--primary-green);
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover,
.page-numbers:hover {
	background: var(--primary-green);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.page-numbers.current {
	background: var(--primary-green);
	color: #ffffff;
}

@media (max-width: 768px) {
	.nav-links {
		flex-direction: column;
	}

	.nav-previous a,
	.nav-next a {
		width: 100%;
		text-align: center;
	}
}
