/* =========================================================================
   Premium Single Blog Post Styles
   ========================================================================= */

.single-blog-page {
	padding-top: 180px;
	padding-bottom: 100px;
	background-color: var(--color-white, #ffffff);
}

.narrow-container {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Split Hero Section */
.single-blog-hero-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
	margin-bottom: 80px;
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-split-content {
	text-align: left;
}

.single-blog-meta-top {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.blog-category-badge {
	background-color: var(--color-primary, #6244f7); /* Default to purple if variable missing */
	color: #fff;
	padding: 8px 20px;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	box-shadow: 0 4px 15px rgba(98, 68, 247, 0.2);
}

.blog-read-time {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--color-gray-500);
	font-size: 0.95rem;
	font-weight: 500;
	background: var(--color-gray-50, #f8fafc);
	padding: 8px 16px;
	border-radius: 50px;
}

.blog-read-time svg {
	width: 18px;
	height: 18px;
	stroke: var(--color-primary, #6244f7);
}

.single-blog-title {
	font-size: clamp(2.5rem, 4vw, 4rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--color-gray-900);
	margin-bottom: 30px;
	font-family: 'Instrument Sans', sans-serif;
	font-weight: 700;
}

/* Author Meta Top */
.single-blog-author-meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	margin-top: 20px;
}

.author-avatar-small img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--color-gray-100, #f1f5f9);
}

.author-details-small {
	text-align: left;
	display: flex;
	flex-direction: column;
}

.author-details-small strong {
	font-size: 1rem;
	color: var(--color-gray-900);
	font-weight: 600;
}

.author-details-small time {
	font-size: 0.9rem;
	color: var(--color-gray-500, #64748b);
}

/* Split Image */
.hero-split-image figure {
	margin: 0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.08);
	position: relative;
	aspect-ratio: 4 / 3;
}

.hero-split-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.hero-split-image:hover img {
	transform: scale(1.03);
}

/* Prose (Long-form Reading Content) */
.blog-prose {
	font-size: 1.1875rem;
	line-height: 1.8;
	color: #374151; /* Dark gray for high legibility */
	font-family: 'Space Grotesk', sans-serif;
	margin-bottom: 60px;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.blog-prose p {
	margin-bottom: 1.8em;
}

.blog-prose h2, .blog-prose h3, .blog-prose h4 {
	color: var(--color-gray-900);
	font-family: 'Instrument Sans', sans-serif;
	margin-top: 2.2em;
	margin-bottom: 0.8em;
	letter-spacing: -0.02em;
	font-weight: 700;
}

.blog-prose h2 { font-size: 2.2rem; }
.blog-prose h3 { font-size: 1.7rem; }

.blog-prose a {
	color: var(--color-primary);
	text-decoration: none;
	border-bottom: 2px solid rgba(255, 87, 34, 0.3);
	transition: all 0.3s ease;
}

.blog-prose a:hover {
	border-bottom-color: var(--color-primary);
	background-color: rgba(255, 87, 34, 0.05);
}

/* Key Takeaways Callout Box */
.blog-key-takeaways {
	background: linear-gradient(135deg, rgba(98, 68, 247, 0.05), rgba(76, 164, 15, 0.05));
	border: 1px solid rgba(98, 68, 247, 0.15);
	border-left: 5px solid var(--color-primary, #6244f7);
	border-radius: 16px;
	padding: 28px 32px;
	margin: 0 0 40px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.blog-key-takeaways h3 {
	margin-top: 0 !important;
	margin-bottom: 14px !important;
	font-size: 1.25rem !important;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-gray-900);
}

.blog-key-takeaways h3 svg {
	width: 22px;
	height: 22px;
	stroke: var(--color-primary, #6244f7);
}

.blog-key-takeaways ul {
	margin-bottom: 0 !important;
	padding-left: 20px;
}

.blog-key-takeaways li {
	margin-bottom: 8px !important;
	font-weight: 500;
	color: #1f2937;
}

/* Prose Text Mark & Highlights */
.blog-prose mark {
	background: linear-gradient(120deg, rgba(98, 68, 247, 0.15) 0%, rgba(255, 230, 0, 0.35) 100%);
	color: var(--color-gray-900);
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 600;
}

.blog-prose strong {
	color: var(--color-gray-900);
	font-weight: 700;
}

.blog-prose blockquote {
	margin: 2.5em 0;
	padding: 2em;
	border-left: 4px solid var(--color-primary, #6244f7);
	background: #f9fafb;
	border-radius: 0 16px 16px 0;
	font-size: 1.35rem;
	font-style: italic;
	color: var(--color-gray-900);
	line-height: 1.6;
	box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.blog-prose ul, .blog-prose ol {
	margin-bottom: 1.8em;
	padding-left: 1.5em;
}

.blog-prose li {
	margin-bottom: 0.8em;
	padding-left: 0.5em;
}

.blog-prose li::marker {
	color: var(--color-primary);
	font-weight: 700;
}

.blog-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	margin: 2.5em 0;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Tags */
.blog-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-top: 40px;
	border-top: 1px solid var(--color-gray-200);
	margin-bottom: 80px;
}

.blog-tags strong {
	font-size: 1.05rem;
	color: var(--color-gray-900);
	margin-right: 8px;
	font-family: 'Instrument Sans', sans-serif;
	font-weight: 600;
}

.blog-tags a {
	background: #f3f4f6;
	color: #4b5563;
	padding: 8px 18px;
	border-radius: 40px;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s ease;
}

.blog-tags a:hover {
	background: var(--color-primary);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

/* Author Box */
.single-blog-author-box {
	margin-bottom: 100px;
}

.author-box-inner {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	background: #f8fafc;
	padding: 48px;
	border-radius: 24px;
	border: 1px solid #e2e8f0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-box-inner:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.author-box-avatar img {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.author-box-content h3 {
	font-size: 1.75rem;
	margin-bottom: 12px;
	color: var(--color-gray-900);
	font-family: 'Instrument Sans', sans-serif;
}

.author-box-content p {
	font-size: 1.1rem;
	color: #475569;
	line-height: 1.7;
	margin: 0;
}

/* Related Posts */
.single-blog-related {
	padding-top: 100px;
	padding-bottom: 40px;
	border-top: 1px solid var(--color-gray-200);
	background-color: #f8fafc;
	margin-top: 60px;
}

.related-heading h2 {
	font-size: 3rem;
	text-align: center;
	margin-bottom: 60px;
	color: var(--color-gray-900);
	font-family: 'Instrument Sans', sans-serif;
	letter-spacing: -0.02em;
}

/* Animations */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
	.single-blog-hero-split {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.hero-split-content {
		text-align: center;
	}
	.single-blog-meta-top {
		justify-content: center;
	}
	.single-blog-author-meta {
		justify-content: center;
	}
	.single-blog-title { font-size: 3.5rem; }
	.blog-prose { font-size: 1.125rem; }
}

@media (max-width: 768px) {
	.single-blog-page { 
		padding-top: 100px; 
		padding-bottom: 60px;
	}
	
	.single-blog-title { 
		font-size: 2.5rem; 
		margin-bottom: 20px;
	}
	
	.single-blog-meta-top {
		flex-direction: column;
		gap: 12px;
	}
	
	.single-blog-hero {
		margin-bottom: 40px;
	}
	
	.author-box-inner { 
		flex-direction: column; 
		text-align: center; 
		align-items: center;
		padding: 32px 24px;
	}
	
	.blog-tags {
		justify-content: center;
	}
	
	.single-blog-related {
		padding-top: 60px;
	}
	
	.related-heading h2 {
		font-size: 2.2rem;
		margin-bottom: 40px;
	}
	
	.blog-prose h2 { font-size: 1.8rem; }
	.blog-prose h3 { font-size: 1.5rem; }
	
	.blog-prose blockquote {
		padding: 1.5em;
		font-size: 1.15rem;
		margin: 2em -24px;
		border-radius: 0;
		border-left-width: 6px;
	}
}

@media (max-width: 480px) {
	.single-blog-title { font-size: 2rem; }
	.author-box-avatar img { width: 90px; height: 90px; }
}
