/**
 * Single Post Page Styles
 * Custom styling for individual blog post pages
 */

.single-post-main {
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: #fff;
}

/* Hero Image Section */
.single-post-hero-image {
	width: 100%;
	height: 50vh;
	min-height: 400px;
	max-height: 600px;
	overflow: hidden;
	position: relative;
	background: #f5f5f5;
	margin-bottom: 0;
}

.single-post-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.single-post-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* Post Metadata */
.single-post-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

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

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

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

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

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

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

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

/* Post Title */
.single-post-title {
	font-size: 2.5rem;
	font-weight: 400;
	color: #2d5060;
	margin: 0 0 40px 0;
	line-height: 1.3;
	font-family: serif;
}

/* Post Content */
.single-post-content {
	margin-bottom: 40px;
}

.post-content-text {
	width: 100%;
}

.post-content-text p {
	margin-bottom: 1.5em;
	line-height: 1.8;
	color: #333;
	font-size: 1rem;
}

.post-content-text h2,
.post-content-text h3,
.post-content-text h4 {
	margin-top: 2em;
	margin-bottom: 1em;
	color: #2d5060;
	font-weight: 600;
	line-height: 1.4;
}

.post-content-text h2 {
	font-size: 1.75rem;
}

.post-content-text h3 {
	font-size: 1.5rem;
}

.post-content-text h4 {
	font-size: 1.25rem;
}

.post-content-text ul,
.post-content-text ol {
	margin-bottom: 1.5em;
	padding-left: 2em;
}

.post-content-text li {
	margin-bottom: 0.5em;
	line-height: 1.8;
}

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

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

.post-content-text img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 1.5em 0;
}

.post-content-text blockquote {
	border-left: 4px solid #2d5060;
	padding-left: 1.5em;
	margin: 1.5em 0;
	font-style: italic;
	color: #555;
}

/* Post Tags */
.post-tags {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.post-tags .tag-links {
	color: #666;
	font-size: 0.9rem;
}

.post-tags a {
	color: #2d5060;
	text-decoration: none;
	margin-right: 10px;
	padding: 4px 12px;
	background: #f5f5f5;
	border-radius: 3px;
	display: inline-block;
	margin-top: 8px;
	transition: background 0.3s ease;
}

.post-tags a:hover {
	background: #e0e0e0;
}

/* Latest Posts Section */
.latest-posts-section {
	max-width: 1200px;
	margin: 60px auto 0;
	padding: 40px 20px;
	background: #fafafa;
}

.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;
}

.latest-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

/* Latest Post Card */
.latest-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;
}

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

.latest-post-thumbnail {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
}

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

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

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

.latest-post-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

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

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

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

.latest-post-engagement {
	display: flex;
	gap: 16px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
	font-size: 0.875rem;
}

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

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

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

/* Comments Section */
.comments-area {
	max-width: 900px;
	margin: 60px auto 0;
	padding: 0 20px 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.single-post-hero-image {
		height: 40vh;
		min-height: 300px;
	}
	
	.single-post-wrapper {
		padding: 20px 15px;
	}
	
	.single-post-meta {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.post-meta-right {
		width: 100%;
		justify-content: flex-start;
	}
	
	.single-post-title {
		font-size: 1.75rem;
		margin-bottom: 30px;
	}
	
	.latest-posts-section {
		padding: 30px 15px;
	}
	
	.latest-posts-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.latest-posts-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.single-post-hero-image {
		height: 45vh;
	}
	
	.latest-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

