/*
	Blog Styles for Merny Pierre Portfolio
	Based on Prologue by HTML5 UP
	html5up.net | @ajlkn
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

/* Blog-specific overrides and enhancements */

/* Blog Content Container */
.blog-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 2em;
}

/* Blog Post Article Styling */
#blog-post {
	padding: 4em 0;
}

#blog-post header {
	text-align: center;
	margin-bottom: 3em;
	padding-bottom: 2em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#blog-post header h2 {
	font-size: 2.5em;
	margin-bottom: 0.5em;
	line-height: 1.2;
}

#blog-post header p {
	font-size: 1.25em;
	opacity: 0.8;
	font-style: italic;
}

/* Blog Header for legacy blog post structure */
.blog-header {
	text-align: center;
	margin-bottom: 3em;
	padding-bottom: 2em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-header h1 {
	font-size: 2em;
	margin-bottom: 0.5em;
	line-height: 1.2;
	color: #2c3e50;
}

.blog-meta {
	font-size: 1em;
	opacity: 0.8;
	color: #ccc;
}

/* Blog Content Typography */
#blog-post section {
	text-align: left;
	line-height: 1.8;
}

#blog-post h3 {
	font-size: 1.8em;
	margin-top: 2.5em;
	margin-bottom: 1em;
	color: #2c3e50;
	border-bottom: 2px solid rgba(44, 62, 80, 0.3);
	padding-bottom: 0.5em;
}

#blog-post h4 {
	font-size: 1.4em;
	margin-top: 2em;
	margin-bottom: 0.8em;
	color: #000000;
}

#blog-post p {
	margin-bottom: 1.5em;
	font-size: 1.1em;
	line-height: 1.8;
}

/* List Styling for Blog Posts */
#blog-post ul {
	margin: 1.5em 0;
	padding-left: 0;
	list-style: none;
}

#blog-post ul li {
	position: relative;
	margin-bottom: 0.8em;
	padding-left: 2em;
	line-height: 1.6;
}

#blog-post ul li:before {
	content: "▶";
	position: absolute;
	left: 0;
	top: 0;
	color: #2c3e50;
	font-size: 0.8em;
	line-height: 1.6;
}

#blog-post ul li strong {
	color: #2c3e50;
}

/* Nested Lists */
#blog-post ul ul {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

#blog-post ul ul li {
	margin-bottom: 0.5em;
	padding-left: 1.5em;
}

#blog-post ul ul li:before {
	content: "◦";
	color: rgba(44, 62, 80, 0.7);
}

/* Call-to-Action Boxes */
.blog-cta {
	margin: 3em 0;
	padding: 2em;
	background: rgba(44, 62, 80, 0.1);
	border-radius: 8px;
	border-left: 4px solid #2c3e50;
	text-align: center;
}

.blog-cta h4 {
	margin-top: 0;
	margin-bottom: 1em;
	color: #2c3e50;
}

.blog-cta p {
	margin-bottom: 1.5em;
}

/* Back to Blog Button */
.back-to-blog {
	text-align: center;
	margin-top: 3em;
	padding-top: 2em;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Blog Grid (for blog.html listing page) */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2em;
	margin-top: 3em;
}

.blog-card {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	padding: 2em;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.blog-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(44, 62, 80, 0.5);
	transform: translateY(-5px);
}

.blog-card h3 {
	margin-top: 0;
	margin-bottom: 1em;
	color: #2c3e50;
}

.blog-card p {
	margin-bottom: 1.5em;
	line-height: 1.6;
}

.blog-card .button {
	display: inline-block;
	margin-top: 1em;
}

/* Newsletter Section */
.newsletter-section {
	background: rgba(44, 62, 80, 0.1);
	border-radius: 8px;
	padding: 3em 2em;
	margin: 3em 0;
	text-align: center;
}

.newsletter-section h3 {
	margin-top: 0;
	margin-bottom: 1em;
	color: #2c3e50;
}

/* Professional Black Buttons */
.button, 
.blog-cta .button,
.back-to-blog .button {
	background-color: #1a1a1a !important;
	color: #ffffff !important;
	border: 2px solid #1a1a1a !important;
	padding: 0.8em 2em !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	transition: all 0.3s ease !important;
	text-decoration: none !important;
	display: inline-block !important;
	border-radius: 4px !important;
}

.button:hover,
.blog-cta .button:hover,
.back-to-blog .button:hover {
	background-color: transparent !important;
	color: #1a1a1a !important;
	border-color: #1a1a1a !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(26, 26, 26, 0.3) !important;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
	.button:hover,
	.blog-cta .button:hover,
	.back-to-blog .button:hover {
		background-color: #f5f5f5 !important;
		color: #1a1a1a !important;
		border-color: #f5f5f5 !important;
	}
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 736px) {
	.blog-content {
		padding: 1em;
	}
	
	#blog-post {
		padding: 2em 0;
	}
	
	#blog-post header h2 {
		font-size: 2.5em;
        margin-bottom: 1.5em;
        line-height: 4.2;
	}
	
	#blog-post h3 {
		font-size: 1.5em;
		margin-top: 2em;
	}
	
	#blog-post h4 {
		font-size: 1.2em;
		margin-top: 1.5em;
	}
	
	#blog-post ul li {
		padding-left: 1.5em;
	}
	
	.blog-grid {
		grid-template-columns: 1fr;
		gap: 1.5em;
	}
	
	.blog-card {
		padding: 1.5em;
	}
	
	.newsletter-section {
		padding: 2em 1em;
		margin: 2em 0;
	}
	
	.blog-header h1 {
		font-size: 1.6em;
	}
	
	.blog-meta {
		font-size: 0.9em;
	}
}

@media screen and (max-width: 480px) {
	#blog-post header h2 {
		font-size: 1.8em;
	}
	
	#blog-post header p {
		font-size: 1.1em;
	}
	
	#blog-post h3 {
		font-size: 1.4em;
	}
	
	#blog-post h4 {
		font-size: 1.1em;
	}
	
	#blog-post p {
		font-size: 1em;
	}
	
	.blog-header h1 {
		font-size: 1.4em;
	}
	
	.blog-meta {
		font-size: 0.8em;
	}
}

/* Blog listing page specific styles */
.blog-post {
	background: white;
	padding: 2em;
	margin: 2em 0;
	border-radius: 0.35em;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	border-left: 4px solid #2c3e50;
}

.blog-post h2 {
	color: #2c3e50;
	margin-bottom: 0.5em;
}

.blog-meta {
	color: #888;
	font-size: 0.9em;
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid #eee;
}

.blog-meta .date {
	font-weight: 600;
}

.blog-meta .tags {
	margin-left: 1em;
}

.blog-meta .tag {
	background: #f0f0f0;
	padding: 0.2em 0.5em;
	border-radius: 0.25em;
	margin-right: 0.5em;
	font-size: 0.8em;
}

.read-more {
	color: #2c3e50;
	text-decoration: none;
	font-weight: 600;
}

.read-more:hover {
	color: #1a252f;
}

/* Newsletter form mobile styles */
@media screen and (max-width: 736px) {
	.blog-post {
		padding: 1.5em;
		margin: 1em 0;
	}
	
	.newsletter-form {
		flex-direction: column !important;
		gap: 1em !important;
	}
	
	.newsletter-form input[type="email"] {
		width: 100% !important;
	}
	
	.newsletter-form button {
		width: 100% !important;
	}
}

/* Markdown Content Styling */
#markdown-content {
	line-height: 1.8;
	font-size: 1.1em;
}

#markdown-content h1 {
	font-size: 2.2em;
	color: #2c3e50;
	margin: 1.5em 0 1em 0;
	border-bottom: 2px solid #2c3e50;
	padding-bottom: 0.5em;
}

#markdown-content h2 {
	font-size: 1.8em;
	color: #2c3e50;
	margin: 1.25em 0 0.75em 0;
	border-bottom: 1px solid #ddd;
	padding-bottom: 0.3em;
}

#markdown-content h3 {
	font-size: 1.4em;
	color: #2c3e50;
	margin: 1em 0 0.5em 0;
}

#markdown-content h4 {
	font-size: 1.2em;
	color: #2c3e50;
	margin: 0.75em 0 0.5em 0;
}

#markdown-content p {
	margin-bottom: 1.2em;
	color: #444;
}

#markdown-content strong {
	color: #2c3e50;
	font-weight: 600;
}

#markdown-content em {
	color: #666;
	font-style: italic;
}

#markdown-content ul, #markdown-content ol {
	margin: 1em 0 1.5em 2em;
	color: #444;
}

#markdown-content li {
	margin-bottom: 0.5em;
	line-height: 1.6;
}

#markdown-content blockquote {
	border-left: 4px solid #2c3e50;
	margin: 1.5em 0;
	padding: 1em 1.5em;
	background: #f8f9fa;
	font-style: italic;
	color: #555;
}

#markdown-content code {
	background: #f4f4f4;
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.9em;
	color: #e74c3c;
}

#markdown-content pre {
	background: #2c3e50;
	color: #ecf0f1;
	padding: 1.5em;
	border-radius: 5px;
	overflow-x: auto;
	margin: 1.5em 0;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.9em;
	line-height: 1.4;
}

#markdown-content pre code {
	background: none;
	color: inherit;
	padding: 0;
	border-radius: 0;
}

#markdown-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	background: #fff;
}

#markdown-content table th,
#markdown-content table td {
	border: 1px solid #ddd;
	padding: 0.75em 1em;
	text-align: left;
}

#markdown-content table th {
	background: #2c3e50;
	color: #fff;
	font-weight: 600;
}

#markdown-content table tr:nth-child(even) {
	background: #f8f9fa;
}

#markdown-content hr {
	border: none;
	height: 1px;
	background: #ddd;
	margin: 2em 0;
}

#markdown-content a {
	color: #2c3e50;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

#markdown-content a:hover {
	border-bottom-color: #2c3e50;
}

/* Code highlighting for different languages */
#markdown-content pre code.language-yaml,
#markdown-content pre code.language-yml,
#markdown-content pre code.language-sql,
#markdown-content pre code.language-bash,
#markdown-content pre code.language-shell,
#markdown-content pre code.language-python,
#markdown-content pre code.language-json,
#markdown-content pre code.language-hcl,
#markdown-content pre code.language-php,
#markdown-content pre code.language-apache {
	color: #ecf0f1;
}
