/* Single post page */

.single-article {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	padding: 28px 32px 32px;
	min-width: 0;
	overflow: hidden;
}

.single-article__title {
	margin: 0 0 14px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
	color: #222;
}

.single-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
	font-size: 13px;
	color: #999;
}

.single-article__meta-item time {
	color: inherit;
}

/* Article content */
.single-article__content {
	font-size: 15px;
	line-height: 1.85;
	color: #444;
}

.single-article__content > *:first-child {
	margin-top: 0;
}

.single-article__content > *:last-child {
	margin-bottom: 0;
}

.single-article__content h2,
.single-article__content h3,
.single-article__content h4 {
	margin: 1.6em 0 0.8em;
	font-weight: 700;
	color: #222;
	line-height: 1.4;
}

.single-article__content h2 {
	font-size: 20px;
	padding-left: 12px;
	border-left: 4px solid #1a73e8;
}

.single-article__content h3 {
	font-size: 17px;
}

.single-article__content p {
	margin: 0 0 1em;
}

.single-article__content ul,
.single-article__content ol {
	margin: 0 0 1em;
	padding-left: 1.6em;
}

.single-article__content li {
	margin-bottom: 0.4em;
}

.single-article__content img {
	margin: 1em auto;
	border-radius: 6px;
}

.single-article__content a {
	color: #1a73e8;
	text-decoration: underline;
}

.single-article__content blockquote {
	margin: 1em 0;
	padding: 12px 16px;
	background: #f5f7fa;
	border-left: 4px solid #1a73e8;
	color: #666;
}

.single-article__content pre,
.single-article__content code {
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 13px;
}

.single-article__content pre {
	overflow-x: auto;
	padding: 16px;
	background: #f5f7fa;
	border-radius: 6px;
}

/* Promo banner */
.promo-banner {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid #eee;
}

.promo-banner__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.promo-banner__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border-radius: 8px;
	color: #fff;
	transition: transform 0.2s, box-shadow 0.2s;
}

.promo-banner__card:hover,
.promo-banner__card:focus {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	color: #fff;
}

.promo-banner__card--blue {
	background: linear-gradient(135deg, #4a90e2, #357abd);
}

.promo-banner__card--yellow {
	background: linear-gradient(135deg, #f5a623, #e09515);
}

.promo-banner__card--green {
	background: linear-gradient(135deg, #52c41a, #389e0d);
}

.promo-banner__card-title {
	font-size: 14px;
	font-weight: 700;
}

.promo-banner__card-desc {
	font-size: 12px;
	opacity: 0.9;
	line-height: 1.5;
}

/* Post navigation */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #eee;
}

.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: #f8f9fb;
	border-radius: 6px;
	transition: background 0.2s;
	min-height: 68px;
}

.post-nav__link--next {
	text-align: right;
}

.post-nav__link--empty {
	background: transparent;
}

.post-nav__link:not(.post-nav__link--empty):hover,
.post-nav__link:not(.post-nav__link--empty):focus {
	background: #f0f2f5;
}

.post-nav__label {
	font-size: 12px;
	color: #999;
}

.post-nav__title {
	font-size: 14px;
	color: #333;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Related posts */
.related-posts {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #eee;
}

.related-posts__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: #222;
}

.related-posts__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.related-posts__item {
	min-width: 0;
	padding: 10px 0;
	border-bottom: 1px dashed #eee;
}

.related-posts__link {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: #444;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
	transition: color 0.2s;
}

.related-posts__link::before {
	content: "•";
	margin-right: 6px;
	color: #1a73e8;
}

.related-posts__link:hover,
.related-posts__link:focus {
	color: #1a73e8;
}

/* Responsive */
@media (max-width: 640px) {
	.single-article {
		padding: 20px 16px 24px;
	}

	.single-article__title {
		font-size: 22px;
	}

	.related-posts__grid {
		grid-template-columns: 1fr;
	}

	.post-nav {
		grid-template-columns: 1fr;
	}

	.breadcrumbs__item--current {
		max-width: 200px;
	}
}

@media (max-width: 960px) {
	.promo-banner__grid {
		grid-template-columns: 1fr;
	}
}
