/* ── Outer layout ─────────────────────────────────────────────────────── */
.blog-single {
	max-width: 860px;
	margin: 0 auto;
	padding: 100px 24px 80px;
}

/* ── Back link ────────────────────────────────────────────────────────── */
.blog-single__back {
	margin-bottom: 28px;
}
.blog-single__back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #c084fc;
	text-decoration: none;
	transition: color 180ms;
}
.blog-single__back-link:hover { color: #e9d5ff; }

/* ── Meta row (category badge + reading time) ─────────────────────────── */
.blog-single__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}
.blog-single__cat {
	display: inline-block;
	padding: 6px 12px 5px 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, #7c3aed, #9333ea);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: opacity 180ms;
}
.blog-single__cat:hover { opacity: 0.85; }
.blog-single__time {
	font-size: 0.875rem;
	color: rgba(192, 132, 252, 0.75);
}

/* ── Title ────────────────────────────────────────────────────────────── */
.blog-single__title {
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 20px;
}

/* ── Byline (author + date) ───────────────────────────────────────────── */
.blog-single__byline {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(173, 70, 255, 0.3);
    padding-bottom: 10px;
}
.blog-single__author,
.blog-single__date {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	color: rgba(192, 132, 252, 0.7);
}

/* ── Action buttons ───────────────────────────────────────────────────── */
.blog-single__actions {
	display: flex;
	gap: 12px;
	margin-bottom: 36px;
}
.blog-single__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 20px;
	border-radius: 999px;
	border: 1.5px solid rgba(168, 85, 247, 0.45);
	background: rgba(30, 12, 48, 0.5);
	color: rgba(221, 180, 255, 0.9);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 180ms, border-color 180ms, color 180ms;
	font-family: inherit;
}
.blog-single__btn:hover {
	background: rgba(147, 51, 234, 0.2);
	border-color: #9333ea;
	color: #fff;
}
.blog-single__btn.saved {
	background: rgba(147, 51, 234, 0.25);
	border-color: #9333ea;
	color: #e9d5ff;
}

/* ── Featured image ───────────────────────────────────────────────────── */
.blog-single__image-wrap {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(168, 85, 247, 0.2);
	margin-bottom: 36px;
	background: linear-gradient(180deg, rgba(60, 20, 90, 0.6) 0%, rgba(30, 10, 55, 0.8) 100%);
}
.blog-single__image {
	width: 100%;
	height: auto;
	display: block;
}
.blog-single__image-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 80px 24px;
	color: rgba(168, 85, 247, 0.55);
	font-size: 0.875rem;
}

/* ── Lead paragraph ───────────────────────────────────────────────────── */
.blog-single__lead {
	font-size: 1.0625rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.55;
	margin: 0 0 28px;
}

/* ── Post body ────────────────────────────────────────────────────────── */
.blog-single-content {
	font-size: 1rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.82);
}
.blog-single-content h1,
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4 {
	color: #fff;
	font-weight: 700;
	line-height: 1.25;
	margin: 1.8em 0 0.6em;
}
.blog-single-content h1 { font-size: 1.75rem; }
.blog-single-content h2 { font-size: 1.375rem; }
.blog-single-content h3 { font-size: 1.125rem; }
.blog-single-content h4 { font-size: 1rem; }
.blog-single-content p {
	margin: 0 0 1.2em;
}
.blog-single-content a {
	color: #c084fc;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 150ms;
}
.blog-single-content a:hover { color: #e9d5ff; }
/* ── Unordered list — gradient circle with white centre dot ───────── */
.blog-single-content ul, .blog-single-content ol {
	padding-left: 20px;
}
.blog-single-content ul {
	list-style: none;
	margin: 0 0 1.2em;
}
.blog-single-content ul li {
	position: relative;
	padding-left: 2em;
	margin-bottom: 0.65em;
}
.blog-single-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	/* white dot punched out of a purple-to-pink gradient sphere */
	background:
		radial-gradient(circle at center, #fff 28%, transparent 28%),
		linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

/* ── Ordered list — gradient circle with number inside ────────────── */
.blog-single-content ol {
	list-style: none;
	margin: 0 0 1.2em;
	counter-reset: mia-ol;
}
.blog-single-content ol li {
	position: relative;
	padding-left: 2.25em;
	margin-bottom: 0.65em;
	counter-increment: mia-ol;
}
.blog-single-content ol li::before {
	content: counter(mia-ol);
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

/* nested lists */
.blog-single-content ul ul,
.blog-single-content ol ol,
.blog-single-content ul ol,
.blog-single-content ol ul {
	margin: 0.4em 0 0.4em 0.5em;
}
.blog-single-content blockquote {
	border-left: 3px solid #9333ea;
	margin: 1.75em 0;
	padding: 0.8em 0 0.8em 1.5em;
	font-style: italic;
	color: rgba(221, 180, 255, 0.8);
	background: rgba(147, 51, 234, 0.07);
	border-radius: 0 8px 8px 0;
}
.blog-single-content blockquote p { margin: 0; }
.blog-single-content code {
	background: rgba(168, 85, 247, 0.15);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.875em;
	color: #d8b4fe;
}
.blog-single-content pre {
	background: rgba(10, 4, 20, 0.7);
	border: 1px solid rgba(168, 85, 247, 0.2);
	border-radius: 10px;
	padding: 1.25em 1.5em;
	overflow-x: auto;
	margin: 1.5em 0;
}
.blog-single-content pre code {
	background: none;
	padding: 0;
	color: #e9d5ff;
	font-size: 0.875rem;
}
.blog-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 1em 0;
}
.blog-single-content hr {
	border: none;
	border-top: 1px solid rgba(168, 85, 247, 0.2);
	margin: 2em 0;
}
.blog-single-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.9rem;
}
.blog-single-content th,
.blog-single-content td {
	padding: 10px 14px;
	text-align: left;
	border: 1px solid rgba(168, 85, 247, 0.2);
}
.blog-single-content th {
	background: rgba(147, 51, 234, 0.15);
	color: #e9d5ff;
	font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 560px) {
	.blog-single { padding: 80px 16px 60px; }
	.blog-single__actions { flex-wrap: wrap; }
}

/* ── Related posts ────────────────────────────────────────────────────── */
.blog-related {
	padding: 0 24px 80px;
}
.blog-related__inner {
	max-width: 1100px;
	margin: 0 auto;
}
.blog-related__rule {
	border: none;
	border-top: 1px solid rgba(168, 85, 247, 0.2);
	margin: 0 0 48px;
}
.blog-related__heading {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 28px;
}
.blog-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
@media (max-width: 860px) { .blog-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .blog-related__grid { grid-template-columns: 1fr; } }

/* ── Related card ─────────────────────────────────────────────────────── */
.related-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 20px;
	background: rgba(30, 12, 48, 0.55);
	border: 1px solid rgba(168, 85, 247, 0.15);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color 200ms, transform 200ms, background 200ms;
	backdrop-filter: blur(6px);
}
.related-card:hover {
	border-color: rgba(168, 85, 247, 0.45);
	background: rgba(40, 16, 60, 0.7);
	transform: translateY(-3px);
}
.related-card__cat {
	font-size: 0.72rem;
	font-weight: 700;
	color: #c084fc;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.related-card__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	margin: 0;
	flex: 1;
}
.related-card__time {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8rem;
	color: rgba(192, 132, 252, 0.6);
	margin-top: 4px;
}
