/*
 * Single Blog Post
 */

/* =============================================
   POST HEADER
   ============================================= */

.single-post__header {
	padding-bottom: 0;
}

/* =============================================
   POST TITLE
   ============================================= */

.single-post__title {
	text-align: center;
	font-size: var(--text-xxl);
}

/* =============================================
   META ROW (author + share)
   ============================================= */

.single-post__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-l);
	width: 100%;
	margin-top: var(--space-m);
}

.single-post__author {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.single-post__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.single-post__author-info {
	display: flex;
	flex-direction: column;
}

.single-post__author-name {
	font-weight: 600;
	font-size: var(--text-s);
}

.single-post__date {
	font-size: var(--text-xs);
	color: var(--base-semi-light);
}

/* =============================================
   SHARE ICONS
   ============================================= */

.single-post__share {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.single-post__share-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--base);
	color: var(--white, #ffffff);
	text-decoration: none;
	transition: opacity var(--transition);
}

.single-post__share-link:hover {
	opacity: 0.7;
}

.single-post__share-link svg {
	width: 16px;
	height: 16px;
}

/* =============================================
   DIVIDER
   ============================================= */

.single-post__divider {
	width: 100%;
	border: none;
	border-top: var(--border);
	border-color: var(--border-color-light);
	margin: var(--space-m) 0;
}

/* =============================================
   CATEGORY TAGS
   ============================================= */

.single-post__categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	justify-content: center;
}

.single-post__tag {
	display: inline-block;
	padding: 0.5rem 1.6rem;
	border: var(--border);
	border-color: var(--border-color-light);
	border-radius: var(--radius-circle);
	font-size: var(--text-s);
	text-decoration: none;
	color: inherit;
	transition: background var(--transition);
}

.single-post__tag:hover {
	background: color-mix(in srgb, var(--black) 4%, transparent);
}

/* =============================================
   FEATURED IMAGE
   ============================================= */

.single-post__featured {
	margin: var(--space-l) 0 0;
	overflow: hidden;
	border-radius: var(--radius-m);
}

.single-post__featured-img {
	display: block;
	width: 100%;
	height: auto;
}

/* =============================================
   POST CONTENT
   ============================================= */

.single-post__content {
	width: 100%;
	font-size: var(--text-m);
	line-height: 1.8;
}

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

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

.single-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-m);
}

.single-post__content blockquote {
	border-left: 3px solid var(--base);
	padding-left: var(--space-m);
	margin-left: 0;
	font-style: italic;
}

/* =============================================
   RELATED NEWS
   ============================================= */

.related-news__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-m);
}

.related-news__title {
	font-size: var(--text-l);
	margin: 0;
}

.related-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.related-news__card-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.related-news__card-image {
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius-m);
	background: color-mix(in srgb, var(--black) 6%, transparent);
}

.related-news__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}

.related-news__card-link:hover .related-news__card-img {
	transform: scale(1.03);
}

.related-news__card-content {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	margin-top: var(--space-s);
}

.related-news__card-category {
	font-size: var(--text-xs);
	color: var(--base-semi-light);
}

.related-news__card-title {
	font-size: var(--text-s);
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 767px) {
	.single-post__meta {
		flex-direction: column;
		gap: var(--space-s);
	}

	.related-news__header {
		flex-direction: column;
		align-items: flex-start;
	}

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

/* =============================================
   ACCESSIBILITY
   ============================================= */

@media (prefers-reduced-motion: reduce) {
	.single-post__share-link,
	.single-post__tag,
	.related-news__card-img {
		transition: none;
	}
}
