/* Two-Column Layout for Single Post */

.mn-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mn-post-content-wrapper {
    min-width: 0;
    /* Prevent grid blowout */
}

.mn-post-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

/* Sidebar Widgets */
.mn-post-sidebar .widget {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mn-post-sidebar .widget:last-child {
    margin-bottom: 0;
}

.mn-post-sidebar .widget-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
}

.mn-post-sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mn-post-sidebar .widget li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ecf0f1;
}

.mn-post-sidebar .widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mn-post-sidebar .widget a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.mn-post-sidebar .widget a:hover {
    color: #3498db;
}

/* Dark Mode for Sidebar */
body.dark-mode .mn-post-sidebar .widget {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mn-post-sidebar .widget-title {
    color: var(--text-color);
    border-bottom-color: #3498db;
}

body.dark-mode .mn-post-sidebar .widget a {
    color: var(--text-color);
}

body.dark-mode .mn-post-sidebar .widget a:hover {
    color: #3498db;
}

body.dark-mode .mn-post-sidebar .widget li {
    border-bottom-color: var(--border-color);
}

/* Responsive */
@media (max-width: 992px) {
    .mn-post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mn-post-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* Scrollbar for sidebar */
.mn-post-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mn-post-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mn-post-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.mn-post-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-mode .mn-post-sidebar::-webkit-scrollbar-track {
    background: var(--header-bg);
}

body.dark-mode .mn-post-sidebar::-webkit-scrollbar-thumb {
    background: #666;
}

body.dark-mode .mn-post-sidebar::-webkit-scrollbar-thumb:hover {
    background: #888;
}