/* Middle Mann blog - single post view (post.php) */

.post-header {
	background: var(--mm-ink);
	padding: 180px 0 20px;
}

.post-back-link {
	color: var(--mm-accent);
	text-decoration: none;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}
.post-back-link:hover { color: #fff; }

.post-title {
	color: #fff;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.25;
	margin-bottom: 16px;
}

.post-meta {
	color: var(--mm-accent);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.post-meta-sep {
	color: #555;
}
.post-category-badge {
	display: inline-block;
	background: var(--mm-accent);
	color: #fff;
	padding: 4px 12px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.25s ease, transform 0.25s ease;
}
.post-category-badge:hover {
	background: #fff;
	transform: translateY(-2px);
}

.post-content {
	background: var(--mm-ink);
	padding: 40px 0 80px;
}

.post-featured-image {
	width: 100%;
	height: auto;
	margin-bottom: 40px;
	margin-top: -35px;
	display: block;
	border: 0.5px solid #2a2a2a;
}

.post-video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin: 32px 0;
}
.post-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.post-audio {
	margin: -8px 0 32px;
	overflow: hidden;
}
.post-audio audio {
	width: 100%;
	display: block;
	outline: none;
}

.post-body {
	color: #fff;
	font-size: 20px;
	line-height: 1.8;
	font-weight: 300;
}
.post-body * { font-weight: 300; }
.post-body strong, .post-body b { font-weight: 700; }
.post-body p {
	color: #fff;
	margin-bottom: 20px;
}
.post-body h1, .post-body h2, .post-body h3,
.post-body h4, .post-body h5, .post-body h6 {
	color: #fff;
	margin-top: 32px;
	margin-bottom: 16px;
	font-weight: 600;
}
.post-body img {
	max-width: 100%;
	height: auto;
	margin: 24px 0;
	display: block;
	border: 0.5px solid #2a2a2a;
}
.post-body blockquote {
	border-left: 4px solid var(--mm-accent);
	padding-left: 20px;
	margin: 24px 0;
	color: #b6b6b6;
	font-style: italic;
}
.post-body a {
	color: var(--mm-accent);
	text-decoration: none;
	transition: color 0.15s ease;
}
.post-body a:hover {
	color: #66d4ff;
	text-decoration: none;
}
.post-body ul, .post-body ol {
	margin: 0 0 20px 24px;
}
.post-body li {
	margin-bottom: 8px;
}
/* Safety net: hide empty/whitespace-only paragraphs (incl. <p><br></p>). */
.post-body p:empty,
.post-body p:has(> br:only-child) {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
}

.post-tags {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #222;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.post-tag {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(0, 180, 255, 0.08);
	border: 1px solid var(--mm-accent, #00B4FF);
	color: var(--mm-accent, #00B4FF);
	font-size: 12px;
}

.post-navigation {
	margin-top: 60px;
	padding-top: 40px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
}
.post-nav-spacer { flex: 1; }
.post-nav-btn {
	flex: 1;
	padding: 20px 24px;
	background: #161616;
	border: 1px solid #2a2a2a;
	text-decoration: none;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}
.post-nav-btn:hover {
	background: var(--mm-accent);
	border-color: var(--mm-accent);
	transform: translateY(-2px);
}
.post-nav-btn.is-prev { align-items: flex-start; }
.post-nav-btn.is-next { align-items: flex-end; text-align: right; }

.post-nav-label {
	color: #888;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.post-nav-btn:hover .post-nav-label,
.post-nav-btn:hover .post-nav-title { color: #fff; }

.post-nav-title {
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.post-title { font-size: 30px; }
	.post-navigation { flex-direction: column; }
	.post-nav-btn.is-next { align-items: flex-start; text-align: left; }
}
