/**
 * Archive Page Styles
 * Custom styling for the blog archive page
 */

.archive-main {
	max-width: 100%;
	margin: 0;
	padding: 0;
}

/* Archive Content Wrapper */
.archive-content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* Hero Post Section */
.archive-hero-post {
	margin-bottom: 60px;
	padding-bottom: 40px;
	border-bottom: 1px solid #e0e0e0;
}

.hero-post-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
}

.hero-post-meta-left {
	display: flex;
	align-items: center;
	gap: 15px;
}

.hero-post-meta-left img {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	object-fit: cover;
}

.hero-post-meta-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hero-post-author {
	font-weight: 600;
	color: #2d5060;
	font-size: 0.95rem;
}

.hero-post-date-reading {
	color: #666;
	font-size: 0.875rem;
}

.hero-post-meta-right {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.hero-post-engagement {
	color: #666;
	font-size: 0.875rem;
}

.hero-post-title {
	font-size: 2.5rem;
	font-weight: 400;
	color: #2d5060;
	margin: 0 0 30px 0;
	line-height: 1.3;
	font-family: serif;
}

.hero-post-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.hero-post-title a:hover {
	color: #1a3a47;
}

.hero-post-content {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.hero-post-image {
	flex-shrink: 0;
	width: 400px;
	max-width: 45%;
}

.hero-post-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-post-image a {
	display: block;
}

.hero-post-excerpt {
	flex: 1;
	min-width: 0;
}

.hero-post-excerpt p {
	margin: 0 0 1em 0;
	line-height: 1.8;
	color: #333;
	font-size: 1rem;
}

.hero-post-excerpt p:last-child {
	margin-bottom: 0;
}

/* Archive Navigation */
.archive-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.archive-nav-menu {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}

.archive-nav-menu .nav-link {
	text-decoration: none;
	color: #2d5060;
	font-size: 1rem;
	font-weight: 400;
	padding: 8px 0;
	position: relative;
	transition: color 0.3s ease;
}

.archive-nav-menu .nav-link:hover,
.archive-nav-menu .nav-link.active {
	color: #2d5060;
	font-weight: 600;
}

.archive-nav-menu .nav-link.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #2d5060;
}

/* Search */
.archive-search {
	display: flex;
	align-items: center;
}

.archive-search form {
	display: flex;
	align-items: center;
	position: relative;
}

.archive-search input[type="search"] {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 8px 12px;
	padding-right: 35px;
	font-size: 0.9rem;
	width: 200px;
}

.archive-search .search-submit {
	position: absolute;
	right: 8px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 50%;
	transform: translateY(-50%);
}

.archive-search .search-submit::before {
	content: '🔍';
	font-size: 16px;
	line-height: 1;
}

.archive-search .screen-reader-text {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Archive Posts Grid */
.archive-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	margin-bottom: 50px;
}

/* Post Card */
.archive-post-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.archive-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Post Thumbnail */
.post-thumbnail {
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: #f5f5f5;
}

.post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.archive-post-card:hover .post-thumbnail img {
	transform: scale(1.05);
}

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

/* Post Content */
.post-content {
	padding: 24px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.post-meta-top {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 0.875rem;
	color: #666;
}

.post-author {
	font-weight: 600;
	color: #2d5060;
}

.post-date-reading {
	color: #888;
}

.post-title {
	margin: 0 0 16px 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
}

.post-title a {
	text-decoration: none;
	color: #2d5060;
	transition: color 0.3s ease;
}

.post-title a:hover {
	color: #1a3a47;
}

.post-excerpt {
	margin-bottom: 20px;
	color: #555;
	line-height: 1.6;
	font-size: 0.95rem;
	flex-grow: 1;
}

.post-excerpt p {
	margin: 0;
}

/* Post Engagement */
.post-engagement {
	display: flex;
	gap: 20px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
	font-size: 0.875rem;
}

.engagement-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.engagement-icon {
	font-size: 1rem;
}

.engagement-count {
	font-weight: 600;
	color: #2d5060;
}

.engagement-label {
	color: #888;
	font-size: 0.8rem;
	text-transform: lowercase;
}

/* Latest Posts Section */
.latest-posts-section {
	margin-top: 60px;
	padding-top: 40px;
}

.latest-posts-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.latest-posts-title {
	font-size: 1.75rem;
	font-weight: 400;
	color: #2d5060;
	margin: 0;
	font-family: serif;
}

.view-all-link {
	color: #2d5060;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	transition: color 0.3s ease;
}

.view-all-link:hover {
	color: #1a3a47;
	text-decoration: underline;
}

/* No Posts */
.no-posts {
	text-align: center;
	padding: 60px 20px;
	color: #666;
	font-size: 1.1rem;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.pagination .nav-previous,
.pagination .nav-next {
	flex: 1;
}

.pagination .nav-previous {
	text-align: left;
}

.pagination .nav-next {
	text-align: right;
}

.pagination a {
	text-decoration: none;
	color: #2d5060;
	font-weight: 500;
	padding: 10px 20px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	transition: all 0.3s ease;
	display: inline-block;
}

.pagination a:hover {
	background-color: #2d5060;
	color: #fff;
	border-color: #2d5060;
}

/* Responsive Design */
@media (max-width: 768px) {
	.archive-content-wrapper {
		padding: 20px 15px;
	}
	
	.archive-navigation {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.archive-nav-menu {
		width: 100%;
		flex-direction: column;
		gap: 15px;
	}
	
	.archive-search {
		width: 100%;
	}
	
	.archive-search input[type="search"] {
		width: 100%;
	}
	
	.hero-post-meta {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.hero-post-meta-right {
		width: 100%;
		justify-content: flex-start;
	}
	
	.hero-post-title {
		font-size: 1.75rem;
	}
	
	.hero-post-content {
		flex-direction: column;
	}
	
	.hero-post-image {
		width: 100%;
		max-width: 100%;
		margin-bottom: 20px;
	}
	
	.hero-post-excerpt {
		width: 100%;
	}
	
	.latest-posts-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.archive-posts-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.pagination {
		flex-direction: column;
		gap: 15px;
	}
	
	.pagination .nav-previous,
	.pagination .nav-next {
		text-align: center;
		width: 100%;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.hero-post-image {
		width: 300px;
		max-width: 40%;
	}
	
	.archive-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

