/**
 * MasarPlus - Single Post Editorial Stylesheet
 * 
 * Enterprise SaaS Blog & Editorial Layout
 * @version 2.0.0
 */

/* ==========================================================================
   1. EDITORIAL POST HERO
   ========================================================================== */
.mp-single-post-hero {
	background: linear-gradient(135deg, #09172e 0%, #032b30 50%, #061e27 100%);
	color: #ffffff;
	padding: 70px 0 80px 0;
	position: relative;
	overflow: hidden;
}

.mp-single-post-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 24px 24px;
	pointer-events: none;
}

.mp-single-post-hero__glow {
	position: absolute;
	top: -20%;
	right: 10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(0, 164, 183, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
	border-radius: 50%;
}

.mp-single-post-hero__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.18;
	pointer-events: none;
}

.mp-single-post-hero__backdrop img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(8px);
}

.mp-single-post-hero__content {
	position: relative;
	z-index: 2;
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
}

.mp-single-post-hero__breadcrumbs {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 0.875rem;
	color: #94a3b8 !important;
	margin-bottom: 20px;
}

.mp-single-post-hero__breadcrumbs a {
	color: #cbd5e1 !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mp-single-post-hero__breadcrumbs a:hover {
	color: #38bdf8 !important;
}

.mp-single-post-hero__badge-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.mp-single-post-hero__badge {
	background: rgba(56, 189, 248, 0.12);
	border: 1px solid rgba(56, 189, 248, 0.3);
	color: #38bdf8 !important;
	padding: 6px 18px;
	border-radius: 9999px;
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	backdrop-filter: blur(6px);
	transition: all 0.2s ease;
}

.mp-single-post-hero__badge:hover {
	background: rgba(56, 189, 248, 0.22);
	border-color: rgba(56, 189, 248, 0.5);
	color: #ffffff !important;
	transform: translateY(-1px);
}

.mp-single-post-hero__title {
	font-size: clamp(2rem, 4vw, 2.85rem) !important;
	font-weight: 900 !important;
	line-height: 1.35 !important;
	margin: 0 0 28px 0 !important;
	color: #ffffff !important;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mp-single-post-hero__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 9999px;
	padding: 8px 24px;
	width: fit-content;
	margin: 0 auto;
	backdrop-filter: blur(8px);
}

.mp-single-post-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #cbd5e1 !important;
	font-size: 0.9rem;
	font-weight: 600;
}

.mp-single-post-hero__meta-item .material-icons {
	font-size: 18px;
	color: #38bdf8;
}

.mp-single-post-hero__author-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid #38bdf8;
}


/* ==========================================================================
   2. CONTENT SECTION & CARD WRAPPER
   ========================================================================== */
.mp-single-post-section {
	background: var(--mp-bg-body, #f8fafc);
	padding: 50px 0 90px 0;
	transition: background-color 0.3s ease;
}

.mp-single-post-layout {
	max-width: 880px;
	margin: 0 auto;
}

.mp-single-post-featured-media {
	margin-bottom: 36px;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
	border: 1px solid rgba(226, 232, 240, 0.8);
}

.mp-single-post-featured-media img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

.mp-single-post-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 28px;
	padding: 48px;
	box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.05);
	margin-bottom: 40px;
	transition: background 0.3s ease, border-color 0.3s ease;
}


/* ==========================================================================
   3. EDITORIAL PROSE TYPOGRAPHY
   ========================================================================== */
.mp-single-prose {
	color: #334155;
	font-size: 1.15rem;
	line-height: 2.0;
	font-family: inherit;
}

.mp-single-prose p {
	margin-bottom: 1.75rem;
	color: #334155;
}

.mp-single-prose h2 {
	font-size: 1.75rem;
	font-weight: 800;
	color: #0f172a;
	margin: 2.8rem 0 1.25rem 0;
	padding-right: 18px;
	border-right: 4px solid #00A4B7;
	line-height: 1.4;
}

.mp-single-prose h3 {
	font-size: 1.4rem;
	font-weight: 800;
	color: #0f172a;
	margin: 2.2rem 0 1rem 0;
	line-height: 1.45;
}

.mp-single-prose h4 {
	font-size: 1.2rem;
	font-weight: 700;
	color: #0f172a;
	margin: 1.8rem 0 0.85rem 0;
}

.mp-single-prose strong,
.mp-single-prose b {
	font-weight: 800;
	color: #0f172a;
}

.mp-single-prose a {
	color: #0092a6;
	text-decoration: underline;
	text-underline-offset: 4px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.mp-single-prose a:hover {
	color: #007382;
}

.mp-single-prose blockquote {
	margin: 2.5rem 0;
	padding: 24px 30px;
	background: #f0fdfa;
	border-right: 5px solid #0092a6;
	border-radius: 16px;
	color: #0f766e;
	font-size: 1.18rem;
	font-weight: 600;
	line-height: 1.85;
	position: relative;
}

.mp-single-prose blockquote p:last-child {
	margin-bottom: 0;
}

.mp-single-prose ul,
.mp-single-prose ol {
	margin: 1.5rem 0 2rem 0;
	padding-right: 28px;
}

.mp-single-prose li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

.mp-single-prose img {
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	max-width: 100%;
	height: auto;
	margin: 2rem 0;
}

.mp-single-prose table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 2rem 0;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.mp-single-prose th {
	background: #f8fafc;
	color: #0f172a;
	font-weight: 700;
	padding: 14px 18px;
	text-align: right;
	border-bottom: 2px solid #e2e8f0;
}

.mp-single-prose td {
	padding: 14px 18px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}

.mp-single-prose tr:last-child td {
	border-bottom: none;
}


/* ==========================================================================
   4. INTERACTIVE SHARE BAR & TAGS
   ========================================================================== */
.mp-single-post-footer-tools {
	border-top: 1px solid #f1f5f9;
	margin-top: 40px;
	padding-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mp-single-post-tags {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mp-single-post-tag-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f1f5f9;
	color: #475569;
	padding: 6px 16px;
	border-radius: 9999px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.mp-single-post-tag-item:hover {
	background: #e0f2fe;
	color: #0092a6;
	transform: translateY(-1px);
}

.mp-single-post-share-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 18px 24px;
}

.mp-single-post-share-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mp-single-post-share-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mp-single-share-btn {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff !important;
	text-decoration: none;
	font-size: 18px;
	transition: all 0.2s ease;
	cursor: pointer;
	border: none;
}

.mp-single-share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.mp-single-share-btn--x { background: #000000; }
.mp-single-share-btn--wa { background: #25D366; }
.mp-single-share-btn--in { background: #0A66C2; }
.mp-single-share-btn--tg { background: #229ED9; }
.mp-single-share-btn--copy { background: #64748B; }


/* ==========================================================================
   5. AUTHOR PROFILE CARD
   ========================================================================== */
.mp-single-author-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	padding: 32px;
	display: flex;
	align-items: center;
	gap: 24px;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
	margin-bottom: 40px;
}

.mp-single-author-avatar-wrap {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	border: 3px solid #0092a6;
	overflow: hidden;
	flex-shrink: 0;
}

.mp-single-author-avatar-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mp-single-author-name {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 4px 0;
}

.mp-single-author-role {
	font-size: 0.85rem;
	font-weight: 700;
	color: #0092a6;
	margin-bottom: 8px;
}

.mp-single-author-bio {
	color: #64748b;
	font-size: 0.925rem;
	line-height: 1.65;
	margin: 0 0 14px 0;
}

.mp-single-author-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #0092a6;
	text-decoration: none;
	transition: gap 0.2s ease;
}

.mp-single-author-link:hover {
	gap: 10px;
}


/* ==========================================================================
   6. RELATED POSTS GRID
   ========================================================================== */
.mp-single-related-section {
	margin-bottom: 48px;
}

.mp-single-related-title {
	font-size: 1.4rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mp-single-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.mp-single-related-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.mp-single-related-card:hover {
	transform: translateY(-4px);
	border-color: #0092a6;
	box-shadow: 0 15px 30px rgba(0, 146, 166, 0.1);
}

.mp-single-related-thumb {
	height: 180px;
	width: 100%;
	object-fit: cover;
	display: block;
}

.mp-single-related-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.mp-single-related-card-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.45;
	margin: 0 0 10px 0;
}

.mp-single-related-card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.8rem;
	color: #64748b;
	margin-top: auto;
}


/* ==========================================================================
   7. COMMENTS SECTION
   ========================================================================== */
.mp-single-comments-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
}

.mp-single-comments-card #comments {
	margin-top: 0;
}


/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
	.mp-single-post-hero {
		padding: 50px 0 60px 0;
	}
	.mp-single-post-hero__title {
		font-size: 1.85rem !important;
	}
	.mp-single-post-card {
		padding: 28px 20px;
		border-radius: 20px;
	}
	.mp-single-prose {
		font-size: 1.05rem;
		line-height: 1.85;
	}
	.mp-single-prose h2 {
		font-size: 1.45rem;
	}
	.mp-single-prose h3 {
		font-size: 1.25rem;
	}
	.mp-single-author-card {
		flex-direction: column;
		text-align: center;
		padding: 24px;
	}
	.mp-single-related-grid {
		grid-template-columns: 1fr;
	}
	.mp-single-post-share-bar {
		flex-direction: column;
		text-align: center;
	}
}
