/**
 * Single post page styles.
 *
 * @package blog_Trendy
 */

.single-post {
	padding: 40px var(--trendy-container-padding, 24px) 64px;
	background-color: var(--trendy-color-white, #ffffff);
}

.single-post__inner {
	max-width: var(--trendy-container-max, 1280px);
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Back link & divider
   -------------------------------------------------------------------------- */

.single-post__top {
	margin-bottom: 32px;
}

.single-post__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Nunito", sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	color: #ff1493;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.single-post__back:hover,
.single-post__back:focus {
	color: #ff1493;
	text-decoration: none;
	opacity: 0.8;
}

.single-post__back-icon {
	width: 16px;
	height: 16px;
}

.single-post__divider {
	height: 0;
	margin: 16px 0 0;
	border: none;
	border-top: 1px solid #ff1493;
}

/* --------------------------------------------------------------------------
   Post header
   -------------------------------------------------------------------------- */

.single-post__header {
	margin-bottom: 32px;
}

.single-post__tag {
	display: inline-block;
	margin-bottom: 16px;
	padding: 6px 14px;
	font-family: "Nunito", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--trendy-color-white, #ffffff);
	background: linear-gradient(90deg, #ff1493 0%, #9b59b6 100%);
	border-radius: 999px;
}

.single-post__title {
	margin: 0 0 16px;
	font-family: "Nunito", sans-serif;
	font-size: 30px;
	font-weight: 900;
	line-height: 1.25;
	background: linear-gradient(90deg, #ff1493 0%, #9b59b6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.single-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
}

.single-post__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Nunito", sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	color: #6b6b6b;
}

.single-post__meta-icon {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

/* --------------------------------------------------------------------------
   Featured image
   -------------------------------------------------------------------------- */

.single-post__figure {
	margin: 0 0 32px;
}

.single-post__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   Post content
   -------------------------------------------------------------------------- */

.single-post__content {
	font-family: "Nunito", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.75;
	color: #4a4a4a;
}

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

.single-post__content p {
	margin: 0 0 1.25em;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
	margin: 1.75em 0 0.75em;
	font-family: "Nunito", sans-serif;
	font-weight: 800;
	line-height: 1.3;
}

.single-post__content h2 {
	font-size: 1.375rem;
	background: linear-gradient(90deg, #ff1493 0%, #9b59b6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.single-post__content h3 {
	font-size: 1.25rem;
	color: #1a1a1a;
}

.single-post__content a {
	color: #ff1493;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-post__content a:hover,
.single-post__content a:focus {
	color: #9b59b6;
}

.single-post__content ul,
.single-post__content ol {
	margin: 0 0 1.25em;
	padding-left: 1.5em;
}

.single-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.single-post__content blockquote {
	margin: 1.5em 0;
	padding: 16px 24px;
	border-left: 4px solid #ff1493;
	background-color: rgba(255, 20, 147, 0.04);
}

/* --------------------------------------------------------------------------
   Comments area (same container width)
   -------------------------------------------------------------------------- */

.single .comments-area {
	max-width: var(--trendy-container-max, 1280px);
	margin: 0 auto;
	padding: 0 var(--trendy-container-padding, 24px) 64px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 768px) {
	.single-post {
		padding: 32px var(--trendy-container-padding, 16px) 48px;
	}

	.single-post__title {
		font-size: 24px;
	}

	.single-post__image {
		border-radius: 16px;
	}
}
