/* ==========================================================================
   Single Post Enhancer - Two Column Layout
   ========================================================================== */

.spe-container {
	max-width: 1200px;
	margin: 2em auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* Two-column grid: left wide, right narrow */
.spe-layout {
	display: grid;
	grid-template-columns: 2.5fr 1fr;
	gap: 40px;
	align-items: start;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN (main)
   -------------------------------------------------------------------------- */
.spe-main {
	min-width: 0; /* prevents overflow inside grid */
}

/* Featured image */
.spe-featured-image {
	margin: 0 0 1.5em;
}
.spe-featured-image .spe-thumb {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}
.spe-featured-caption {
	font-size: 0.85em;
	color: #666;
	margin-top: 0.5em;
	text-align: center;
	font-style: italic;
}

/* Header */
.spe-entry-header {
	margin-bottom: 1.5em;
}
.spe-entry-title {
	font-size: 2.1em;
	line-height: 1.2;
	margin: 0 0 0.4em;
}
.spe-entry-meta {
	font-size: 0.9em;
	color: #888;
}
.spe-entry-meta span + span {
	margin-left: 0.75em;
}

/* Content */
.spe-entry-content {
	font-size: 1.05em;
	line-height: 1.75;
}
.spe-entry-content img {
	max-width: 100%;
	height: auto;
}
.spe-page-links {
	margin-top: 1.5em;
	font-weight: 600;
}

/* Post Navigation */
.spe-post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	margin: 2.5em 0 0;
	padding: 1.5em 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}
.spe-nav-previous,
.spe-nav-next {
	flex: 1;
	max-width: 48%;
}
.spe-nav-next {
	text-align: right;
}
.spe-post-navigation a {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}
.spe-post-navigation a:hover {
	opacity: 0.7;
}
.spe-nav-label {
	display: block;
	font-size: 0.78em;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.3em;
}
.spe-nav-title {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN (sidebar)
   -------------------------------------------------------------------------- */
.spe-sidebar {
	min-width: 0;
	position: sticky;
	top: 20px;
}

.spe-widget {
	margin-bottom: 2.5em;
}
.spe-widget-title {
	font-size: 1.15em;
	margin: 0 0 1em;
	padding-bottom: 0.5em;
	border-bottom: 2px solid #eee;
}

.spe-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.spe-sidebar-item {
	display: flex;
	gap: 0.85em;
	align-items: flex-start;
	padding: 0.85em 0;
	border-bottom: 1px solid #f0f0f0;
}
.spe-sidebar-item:last-child {
	border-bottom: none;
}
.spe-sidebar-thumb {
	flex: 0 0 70px;
	display: block;
	line-height: 0;
}
.spe-sidebar-thumb img,
.spe-thumb-placeholder {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}
.spe-thumb-placeholder {
	background: linear-gradient(135deg, #e9e9e9, #d6d6d6);
}
.spe-sidebar-info {
	flex: 1;
	min-width: 0;
}
.spe-sidebar-post-title {
	display: block;
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	color: inherit;
	margin-bottom: 0.3em;
}
.spe-sidebar-post-title:hover {
	text-decoration: underline;
}
.spe-sidebar-date {
	font-size: 0.75em;
	color: #999;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablet: keep two columns but tighten gap */
@media (max-width: 992px) {
	.spe-layout {
		grid-template-columns: 2fr 1fr;
		gap: 30px;
	}
	.spe-entry-title {
		font-size: 1.8em;
	}
}

/* Mobile: stack to single column, sidebar below */
@media (max-width: 768px) {
	.spe-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.spe-sidebar {
		position: static;
	}
	.spe-post-navigation {
		flex-direction: column;
	}
	.spe-nav-previous,
	.spe-nav-next {
		max-width: 100%;
	}
	.spe-nav-next {
		text-align: left;
	}
}
