/**
 * Single Post Styles
 * Styles for individual blog post pages
 * Optimized for SEO and AI Overviews (Above the fold)
 */

/* Post Title (H1) - Above the fold */
article h1 {
	color: var(--color-primary-dark, #1a2332);
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	word-break: break-word;
}

/* Featured Image - Above the fold */
.post-featured-image {
	margin: 1.5rem 0 2rem;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease;
	aspect-ratio: 16 / 9;
}

.post-featured-image:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.post-featured-image__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Post Meta (Date, Reading Time) */
.post-meta {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--color-text-secondary, #4a5568);
	font-size: 0.875rem;
	flex-wrap: wrap;
}

.post-meta time {
	display: flex;
	align-items: center;
}

/* Post Excerpt - Above the fold (dla AI Overviews) */
.post-excerpt {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--color-text-secondary, #4a5568);
	margin: 1.5rem 0 2rem;
	font-weight: 500;
}

/* Entry Content */
.entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--color-text-primary, #1a2332);
}

.entry-content p {
	margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-weight: 700;
	color: var(--color-primary-dark, #1a2332);
}

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

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

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

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.entry-content blockquote {
	border-left: 4px solid var(--color-primary-blue, #003d7a);
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: var(--color-text-secondary, #4a5568);
}

.entry-content img {
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0;
	border-radius: 8px;
}

.entry-content a {
	color: var(--color-primary-blue, #003d7a);
	text-decoration: none;
	transition: color 0.2s ease;
}

.entry-content a:hover {
	color: #005cb8;
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.post-featured-image {
		margin: 1rem -1.5rem 1.5rem;
		border-radius: 0;
	}
	
	article h1 {
		font-size: 1.75rem;
	}
	
	.entry-content {
		font-size: 1rem;
	}
	
	.entry-content h2 {
		font-size: 1.5rem;
	}
	
	.entry-content h3 {
		font-size: 1.25rem;
	}
}
