/* Micro-Band Main Stylesheet */

/* ==========================================================================
   0. Global Link Styles
   ========================================================================== */
.micro-band-dashboard a,
.single-post-container a {
    text-decoration: none;
}

.micro-band-dashboard a:hover,
.single-post-container a:hover {
    text-decoration: underline; /* Re-enable underline on hover by default */
}

/* ==========================================================================
   1. Base Layout & Variables
   ========================================================================== */

:root {
    /* Master Colors - Brand Palette */
    --uf-primary: #8D7F71;                    /* Urban Taupe - 정체성, 넓은 면적 */
    --uf-primary-deep: #817467;               /* Primary Deep - 헤더/메뉴 가독성 */
    --uf-secondary: #8FA88F;                  /* Sage Mist - 라인/배경/아이콘 */
    --uf-accent: #C27A58;                     /* Baked Clay - 강조/호버/포인트 */
    --uf-accent-deep: #A5674B;                /* Accent Deep - CTA 버튼 안전 */
    --uf-base: #FAFAF5;                       /* Warm Porcelain - 페이지 배경 */
    --uf-text: #332E2A;                       /* Espresso Black - 주 텍스트 */
    --uf-text-muted: #706962;                 /* Text Muted - 메타/캡션 */
    --uf-link: #A06549;                       /* Link Color - 본문 링크 */
    --uf-success: #5F7D1F;                    /* Olive - 성공 상태 */
    --uf-info: #677584;                       /* Slate - 정보 */
    --uf-error: #B22222;                      /* Firebrick - 오류 */
    --uf-white: #FFFFFF;                      /* White */
    
    /* UI Tokens (for backward compatibility) */
    --mb-card-background: var(--uf-base);
    --mb-page-background: var(--uf-base);
    --mb-primary-text: var(--uf-text);
    --mb-secondary-text: var(--uf-text-muted);
    --mb-accent-color: var(--uf-accent);
    --mb-border-color: var(--uf-secondary);
    --mb-border-radius: 12px;
    --mb-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--mb-page-background);
}

.micro-band-dashboard {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
    align-items: flex-start; /* Aligns items to the start of the cross axis */
}

/* Sidebar widths and sticky positioning */
.micro-band-left-sidebar { 
    width: 22%; 
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start; /* Ensures sticky behavior for content that might be shorter */
}
.micro-band-center-feed  { width: 53%; flex-grow: 1; }
.micro-band-right-sidebar{ 
    width: 25%; 
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start; /* Ensures sticky behavior for content that might be shorter */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Gap between widgets */
}

#micro-band-feed-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   2. Left Sidebar (New Design)
   ========================================================================== */
.sidebar-content-wrapper {
    background: var(--mb-card-background);
    border-radius: var(--mb-border-radius);
    padding: 16px;
    box-shadow: var(--mb-shadow); /* Add block shadow */
}
.sidebar-profile-block {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--mb-border-color); /* Use border-color variable */
}
.sidebar-avatar { /* No longer a link here directly, will be in HTML */
    margin-bottom: 12px;
}
.sidebar-avatar a {
    display: inline-block;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, var(--mb-accent-color), #9b59b6); /* Example gradient */
}
.sidebar-avatar img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--mb-card-background);
    object-fit: cover;
}
.sidebar-profile-name {
    font-size: 1.05em; /* Adjusted from 1.25em */
    font-weight: 700;
    color: var(--mb-primary-text);
    margin-top: 10px;
    white-space: nowrap; /* Prevent line breaks */
    overflow: hidden; /* Hide overflow content */
    text-overflow: ellipsis; /* Show ellipsis for overflow */
}
.sidebar-profile-description {
    font-size: 0.85em;
    color: var(--mb-secondary-text);
    margin-top: 6px;
    line-height: 1.4;
    text-align: left; /* Left align the description */
}
.sidebar-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.sidebar-social-links .social-icon {
    color: var(--mb-secondary-text);
    transition: color 0.2s ease;
}
.sidebar-social-links .social-icon:hover {
    color: var(--mb-primary-text);
}
.sidebar-main-nav {
    padding-top: 16px; /* Add top padding for spacing */
    border-top: 1px solid var(--mb-border-color); /* Add a subtle top border */
}
.sidebar-main-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    color: var(--mb-primary-text);
    text-decoration: none;
    font-weight: 500; font-size: 0.95em;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-item svg { color: var(--mb-secondary-text); transition: color 0.2s ease; }
.nav-item:hover, .nav-item.active {
    background-color: rgba(139, 125, 113, 0.08);
    color: var(--uf-accent);
}
.nav-item:hover svg, .nav-item.active svg {
    color: var(--uf-accent);
}

/* Category Tree Navigation */
.sidebar-category-tree {
    padding: 16px 0;
    border-top: 1px solid var(--mb-border-color);
}

.category-tree-header {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--mb-secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    margin-bottom: 4px;
}

.category-tree-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-tree-item {
    position: relative;
}

.category-tree-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    color: var(--mb-primary-text);
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 6px;
    border-left: 3px solid transparent;
}

.category-tree-link:hover {
    background-color: rgba(139, 125, 113, 0.08);
    color: var(--uf-accent);
    border-left-color: var(--uf-accent);
}

.category-tree-name {
    flex: 1;
}

.category-tree-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    margin-left: 8px;
    background-color: rgba(139, 125, 113, 0.12);
    color: var(--mb-secondary-text);
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-tree-link:hover .category-tree-count {
    background-color: var(--uf-accent);
    color: white;
}


/* ==========================================================================
   3. Center Feed - Filter Section (Search + Categories)
   ========================================================================== */
.micro-band-filter-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Search Bar */
.micro-band-search-bar {
    display: flex;
    gap: 8px;
    background: var(--mb-card-background);
    padding: 12px 16px;
    border-radius: var(--mb-border-radius);
    box-shadow: var(--mb-shadow);
}

.micro-band-search-input {
    flex: 1;
    border: 1px solid var(--mb-border-color);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s;
}

.micro-band-search-input:focus {
    outline: none;
    border-color: var(--mb-accent-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.micro-band-search-button {
    padding: 10px 16px;
    background-color: var(--mb-accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.micro-band-search-button:hover {
    background-color: var(--uf-accent-deep);
    transform: translateY(-1px);
}

.micro-band-search-button:active {
    transform: translateY(0);
}

/* Category Filter Bar */
.micro-band-filter-label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--uf-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 0 8px 0;
    margin-bottom: 4px;
}

.micro-band-category-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 2px solid var(--uf-secondary);
}

.category-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    background-color: transparent;
    color: var(--uf-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--uf-secondary);
    white-space: nowrap;
}

.category-filter-button:hover {
    background-color: rgba(194, 122, 88, 0.08);
    border-color: var(--uf-accent);
    color: var(--uf-accent);
    text-decoration: none;
}

.category-filter-button.active {
    background-color: var(--uf-accent);
    color: white;
    border-color: var(--uf-accent);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(194, 122, 88, 0.2);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    min-width: 24px;
    height: 20px;
    padding: 0 4px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
    font-weight: 600;
}

.category-filter-button.active .filter-count {
    background-color: rgba(255,255,255,0.3);
}

/* Search No Results Message */
.micro-band-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--mb-secondary-text);
    font-size: 1.1em;
}


/* ==========================================================================
   3. Center Feed - 'Write a Post' Button (Admin Only)
   ========================================================================== */
#micro-band-writer-toggle-container {
    display: flex;
    justify-content: flex-start; /* Align to left */
    margin-bottom: 20px;
    padding: 0 10px; /* Match card padding visually */
}

@media (max-width: 768px) {
    #micro-band-writer-toggle-container {
        position: sticky;
        top: 0;
        background: var(--mb-page-background);
        margin-bottom: 0;
        padding: 12px 10px;
        border-bottom: 1px solid var(--mb-border-color);
        z-index: 100;
    }
}
.admin-action-btn {
    display: inline-flex; /* For icon and text alignment */
    align-items: center;
    gap: 8px;
    background-color: var(--mb-page-background);
    color: var(--mb-primary-text);
    border: 1px solid var(--mb-border-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.admin-action-btn:hover {
    background-color: #e8eaf0; /* Slightly darker hover */
    border-color: #c9ccd3;
}
.admin-action-btn svg {
    width: 16px; height: 16px;
    stroke: currentColor;
}


/* ==========================================================================
   4. Center Feed - Main Card Design
   ========================================================================== */
.micro-band-feed-card {
    background: var(--mb-card-background);
    border-radius: var(--mb-border-radius);
    box-shadow: var(--mb-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures child elements conform to border-radius */
}
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px;
}
.card-author-info { display: flex; align-items: center; gap: 10px; }
.card-author-info .avatar { width: 40px; height: 40px; border-radius: 50%; }
.card-author-details { display: flex; flex-direction: column; line-height: 1.3; }
.card-author-name { font-weight: 600; font-size: 0.95em; color: var(--mb-primary-text); }
.card-post-time { font-size: 0.8em; color: var(--mb-secondary-text); }
.card-category-badge {
    display: inline-block;
    font-size: 0.75em; 
    font-weight: 600;
    padding: 6px 12px;
    background-color: var(--uf-accent);
    color: white;
    border-radius: 16px; 
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(194, 122, 88, 0.2);
}
.card-category-badge:hover { 
    background-color: var(--uf-accent-deep);
    box-shadow: 0 4px 8px rgba(194, 122, 88, 0.3);
    transform: translateY(-2px);
}
.card-title {
    font-size: 1.35em; font-weight: 700;
    color: var(--mb-primary-text);
    line-height: 1.3; padding: 0 16px; margin: 0 0 10px 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-thumbnail {
    display: block; width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--mb-page-background);
    border-top: 1px solid var(--mb-border-color);
    border-bottom: 1px solid var(--mb-border-color);
}
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 10px 16px; }
.card-excerpt {
    font-size: 0.95em; color: var(--mb-primary-text);
    margin: 0 0 10px 0; line-height: 1.5;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-read-more {
    display: block;
    text-align: right;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--uf-link);
    margin-top: 8px;
    text-decoration: none;
}
.card-read-more:hover {
    text-decoration: underline;
}
.card-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--uf-secondary);
}
.card-tag-link { 
    display: inline-flex;
    align-items: center;
    font-size: 0.8em; 
    color: var(--uf-accent);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: rgba(194, 122, 88, 0.08);
    transition: all 0.2s ease;
}
.card-tag-link:before {
    content: "#";
    margin-right: 3px;
    opacity: 0.6;
}
.card-tag-link:hover { 
    background-color: rgba(194, 122, 88, 0.15);
    color: var(--uf-accent-deep);
}
.card-tags a { font-size: 0.85em; color: var(--uf-link); text-decoration: none; }
.card-tags a:hover { text-decoration: underline; }
.card-footer {
    display: flex; 
    align-items: center; 
    gap: 16px;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--mb-page-background);
    flex-wrap: wrap;
}
.card-footer-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em; font-weight: 600;
    color: var(--mb-secondary-text);
    text-decoration: none; background: none; border: none;
    padding: 8px; margin: -8px; /* Tappable area */
    border-radius: 6px; cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.card-footer-action:hover { 
    background-color: var(--mb-page-background);
    color: var(--mb-primary-text);
}
.card-footer-action svg {
    width: 18px; height: 18px;
    stroke: currentColor;
}
.share-container { position: relative; margin-left: auto; }
.card-share-options {
    position: absolute; bottom: 100%; left: 0;
    background: var(--mb-card-background);
    border: 1px solid var(--mb-border-color);
    border-radius: 8px; box-shadow: var(--mb-shadow);
    min-width: 120px; z-index: 10;
    margin-bottom: 8px; overflow: hidden;
}
.card-share-options a {
    display: block; padding: 8px 12px; font-size: 0.9em;
    color: var(--mb-primary-text); text-decoration: none;
}
.card-share-options a:hover { background-color: var(--mb-page-background); }


/* ==========================================================================
   5. Right Sidebar (New Design)
   ========================================================================== */

.widget-card {
    background: var(--mb-card-background);
    border-radius: var(--mb-border-radius);
    padding: 16px;
    box-shadow: var(--mb-shadow);
}
.widget-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--mb-primary-text);
    padding-bottom: 12px;
    margin: 0 0 16px 0;
    border-bottom: 1px solid var(--mb-border-color);
}

/* Gallery Widget */
.micro-band-gallery-widget .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.micro-band-gallery-widget .gallery-item a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}
.micro-band-gallery-widget .gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.micro-band-gallery-widget .gallery-item a:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Popular Posts Widget */
.micro-band-popular-posts-widget ul {
    list-style: none; 
    margin: 0; 
    padding: 0;
    display: flex; 
    flex-direction: column;
    gap: 12px;
}
.micro-band-popular-posts-widget li {
    background: var(--mb-page-background);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.micro-band-popular-posts-widget li:hover {
    background: #ffffff;
    border-color: var(--mb-border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.micro-band-popular-posts-widget .popular-post-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
}
.popular-post-thumbnail {
    width: 56px; 
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.popular-post-thumbnail.no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}
.popular-post-thumbnail.no-thumb::after {
    content: "📝";
}
.popular-post-thumbnail img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.micro-band-popular-posts-widget li:hover .popular-post-thumbnail img {
    transform: scale(1.1);
}
.popular-post-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0; /* Allow text truncation */
}
.popular-post-title {
    font-size: 0.92em;
    font-weight: 600;
    color: var(--mb-primary-text);
    line-height: 1.4;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden; 
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    margin-bottom: 4px;
}
.popular-post-meta {
    font-size: 0.78em;
    color: var(--mb-secondary-text);
    display: flex;
    align-items: center;
    gap: 4px;
}
.popular-post-meta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
.micro-band-popular-posts-widget .popular-post-link:hover .popular-post-title {
    color: var(--mb-accent-color);
}

/* ==========================================================================
   6. Single Post Page (Refined Design)
   ========================================================================== */
body.single-micro_feed {
    background-color: var(--mb-page-background); /* Light grey background for the page */
}

/* Single Post Layout */
.single-micro-feed-layout {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
    align-items: flex-start;
}

.single-main-content {
    flex: 1;
    max-width: 840px;
}

.single-right-sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.single-post-container {
    padding: 40px 60px;
    background-color: var(--mb-card-background);
    border-radius: var(--mb-border-radius);
    box-shadow: var(--mb-shadow);
}
.single-entry-header .entry-title {
    font-size: 2.1em; /* Slightly reduced for balance */
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--mb-primary-text);
}
.entry-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--mb-border-color);
}
.meta-author { display: flex; align-items: center; gap: 12px; }
.meta-author .avatar { width: 48px; height: 48px; border-radius: 50%; }
.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: 600; font-size: 0.95em; }
.author-info time { font-size: 0.85em; color: var(--mb-secondary-text); }
.meta-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px;
    align-items: center;
}
.meta-tags a {
    display: inline-flex;
    align-items: center;
    font-size: 0.8em; 
    background-color: var(--uf-accent);
    padding: 6px 12px; 
    border-radius: 16px; 
    color: white;
    text-decoration: none; 
    transition: all 0.2s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.meta-tags a:before {
    content: "✦ ";
    margin-right: 4px;
    opacity: 0.8;
}
.meta-tags a:hover { 
    background-color: var(--uf-accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(194, 122, 88, 0.3);
}

.single-featured-image {
    margin-bottom: 30px;
}
.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--mb-border-radius); /* Consistent border radius */
}

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--mb-primary-text);
}
.entry-content > * + * { margin-top: 1.3em; }

.single-gallery-fullwidth {
    width: 100%;
    padding: 30px 0;
    margin-top: 30px;
    /* Removed background color to blend with page */
}
.gallery-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.gallery-grid-container .gallery-item img {
    width: 100%; height: auto;
    border-radius: 8px;
    transition: opacity 0.3s;
}
.gallery-grid-container .gallery-item a:hover img { opacity: 0.85; }

.share-module { text-align: center; padding: 30px 0; border-top: 1px solid var(--mb-border-color); margin-top: 30px;}
.share-title { font-size: 1em; font-weight: 600; color: var(--mb-secondary-text); margin-bottom: 16px; }
.share-buttons { display: flex; justify-content: center; gap: 12px; }
.share-buttons a,
.share-buttons .copy-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--mb-border-color);
    border-radius: 50%;
    text-decoration: none;
    color: var(--mb-secondary-text);
    transition: background-color 0.2s, color 0.2s;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
}
.share-buttons a:hover,
.share-buttons .copy-link-button:hover { 
    background-color: var(--mb-page-background);
    color: var(--mb-primary-text);
}
.back-to-list-link { text-align: center; margin: 40px 0; }
.back-to-list-link a { color: var(--mb-secondary-text); text-decoration: none; font-weight: 500; }
.back-to-list-link a:hover { color: var(--mb-primary-text); text-decoration: underline; }


/* ==========================================================================
   7. Responsive Design (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 992px) {
    /* Dashboard */
    .micro-band-dashboard {
        flex-direction: column;
        padding: 0;
        gap: 8px;
        background-color: var(--mb-page-background);
    }
    .micro-band-left-sidebar, .micro-band-center-feed, .micro-band-right-sidebar {
        width: 100%; position: static; top: auto;
        border-radius: 0; box-shadow: none; padding: 0;
    }
    .micro-band-left-sidebar { order: 1; background: var(--mb-card-background); position: sticky; top: 0; z-index: 50; }
    .micro-band-center-feed { order: 2; }
    .micro-band-right-sidebar { order: 3; padding: 0; background: transparent; }

    .sidebar-content-wrapper, .widget-card {
        border-radius: 0; box-shadow: none;
        border-bottom: 1px solid var(--mb-border-color);
        margin-bottom: 0;
    }

    /* Single Post Layout */
    .single-micro-feed-layout {
        flex-direction: column;
        margin: 0;
        padding: 0;
        gap: 0;
    }
    .single-main-content {
        max-width: 100%;
    }
    .single-right-sidebar {
        width: 100%;
        position: static;
        padding: 16px;
        background: var(--mb-card-background);
        border-top: 1px solid var(--mb-border-color);
    }
}

@media (max-width: 768px) {
    /* Left Sidebar - Sticky header with navigation */
    .micro-band-left-sidebar {
        position: sticky;
        top: 0;
        background: var(--mb-card-background);
        z-index: 50;
        border-bottom: 1px solid var(--mb-border-color);
        margin-bottom: 8px;
    }
    
    .sidebar-content-wrapper {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--mb-border-color);
        margin-bottom: 0;
        padding: 12px 16px;
    }
    
    /* Hide profile image on mobile to save space */
    .sidebar-avatar {
        display: none;
    }
    
    .sidebar-profile-name {
        font-size: 1em;
        margin-top: 0;
    }
    
    .sidebar-profile-description {
        display: none;
    }
    
    .sidebar-social-links {
        display: none;
    }
    
    .sidebar-main-nav {
        padding: 8px 0;
        border-top: none;
    }
    
    .sidebar-main-nav ul {
        display: flex;
        flex-direction: row;
        gap: 0;
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 0 1 auto;
        padding: 6px 10px;
        font-size: 0.85em;
        border-radius: 6px;
    }
    
    .nav-text {
        display: inline;
    }
    
    /* Hide category tree on mobile */
    .sidebar-category-tree {
        display: none;
    }
    
    /* Card Feed */
    #micro-band-feed-list { gap: 0; margin-top: 8px; }
    .micro-band-feed-card {
        border-radius: 0; box-shadow: none;
        border-left: none; border-right: none;
        border-top: 1px solid var(--mb-border-color);
    }
    #micro-band-feed-list .micro-band-feed-card:first-child { border-top: none; }
    .card-header, .card-title, .card-body, .card-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    .card-title { font-size: 1.25em; }
    .card-excerpt { font-size: 0.9em; }
    .card-footer-action, .card-tags a { font-size: 0.9em; }

    /* Single Post */
    .single-post-container {
        margin: 0;
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }
    .single-entry-header .entry-title { font-size: 1.8em; }
    .entry-meta-bar { flex-direction: column; align-items: flex-start; }
    .entry-content { font-size: 0.95rem; line-height: 1.7; }
    .gallery-grid-container { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    
    /* Mobile Modal - Bottom Sheet Style */
    .micro-band-modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0; /* Top rounded corners */
        height: 90vh; /* 90% of screen height */
        padding: 16px;
        overflow-y: auto;
        animation: slideUp 0.3s ease-out;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

/* WP Admin Bar Compatibility */
body.admin-bar .single-post-container { margin-top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .single-post-container { margin-top: 46px; }
}

/* ==========================================================================
   8. Modal (New)
   ========================================================================== */
.micro-band-modal {
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.micro-band-modal.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.micro-band-modal-content {
    background-color: #ffffff; /* Clean white background */
    padding: 30px;
    border: none;
    width: 90%; /* Responsive width */
    max-width: 800px; /* Larger max width for editor */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Maximum height based on viewport */
    overflow: hidden; /* Prevent outer scrolling */
}

.micro-band-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ccc;
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
    transition: color 0.2s;
    z-index: 10;
}

.micro-band-modal-close:hover,
.micro-band-modal-close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Form Styles */
.micro-band-modal-content h3 {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--mb-primary-text);
    flex-shrink: 0;
}

/* Modal Form Container */
.micro-band-modal-content #micro-band-post-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.micro-band-modal-content #micro-band-post-form::-webkit-scrollbar {
    width: 6px;
}

.micro-band-modal-content #micro-band-post-form::-webkit-scrollbar-track {
    background: transparent;
}

.micro-band-modal-content #micro-band-post-form::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.micro-band-modal-content #micro-band-post-form::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.micro-band-modal-content .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.micro-band-modal-content .form-group label {
    font-weight: 600;
    color: var(--mb-primary-text);
    font-size: 0.95em;
}

.micro-band-modal-content .form-group input,
.micro-band-modal-content .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--mb-border-color);
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s;
}

.micro-band-modal-content .form-group input:focus,
.micro-band-modal-content .form-group select:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--mb-accent-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Quill Editor Container */
.micro-band-modal-content .form-group:has(.micro-band-editor-quill) {
    flex-grow: 1;
    min-height: 250px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.micro-band-editor-quill {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mb-border-color);
    border-radius: 8px;
}

.micro-band-editor-quill .ql-toolbar {
    flex-shrink: 0;
    border-bottom: 1px solid var(--mb-border-color) !important;
}

.micro-band-editor-quill .ql-container {
    flex: 1;
    overflow-y: auto;
    border: none !important;
}

/* Form Actions (Buttons) - Always Visible */
.micro-band-form-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--mb-border-color);
    flex-shrink: 0;
    margin-top: 0;
}

.micro-band-submit-button {
    flex: 1;
    padding: 14px;
    background-color: var(--mb-accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.micro-band-submit-button:hover:not(:disabled) {
    background-color: var(--uf-primary-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.micro-band-submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#micro-band-loading {
    text-align: center;
    color: var(--mb-secondary-text);
    font-size: 0.9em;
    display: none;
    margin-top: 10px;
}

/* Utility class for hiding elements */
.is-hidden {
    display: none !important;
}

/* Custom Editor Styles */
.micro-band-editor {
    min-height: 200px;
    padding: 15px;
    border: 1px solid var(--mb-border-color);
    border-radius: 0 0 12px 12px; /* Bottom rounded only */
    background-color: #fff;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    overflow-y: auto;
    outline: none;
    max-height: 40vh; /* Scroll if too long */
}
.micro-band-editor:focus {
    border-color: var(--mb-accent-color);
}
.micro-band-editor[placeholder]:empty:before {
    content: attr(placeholder);
    color: #aaa;
    display: block; /* For Firefox */
}

/* Editor Toolbar */
.micro-band-editor-toolbar {
    display: flex;
    gap: 5px;
    background: #f0f2f5;
    padding: 8px 10px;
    border: 1px solid var(--mb-border-color);
    border-bottom: none;
    border-radius: 12px 12px 0 0; /* Top rounded only */
}
.micro-band-editor-toolbar button {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}
.micro-band-editor-toolbar button:hover {
    background: #e4e6eb;
    color: #000;
}


/* Image Preview in Modal */
.micro-band-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#micro-band-image-preview img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#micro-band-image-preview .micro-band-preview-item {
    position: relative;
    display: inline-block;
    margin: 0;
}
#micro-band-image-preview .remove-gallery-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 22px;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #fff; /* White border for visibility */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Button override */
#micro-band-submit-button {
    background-color: var(--uf-accent-deep);
    border: none;
    color: var(--uf-white);
    font-size: 1.1em;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}
#micro-band-submit-button:hover {
    background-color: var(--uf-primary-deep);
    transform: translateY(-1px);
}
#micro-band-submit-button:disabled {
    background-color: var(--uf-text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Title Input Enhancement */
#micro-band-post-title {
    font-size: 1.2em;
    font-weight: 700;
}

/* Quill Editor Customization */
.micro-band-editor-quill {
    background-color: #ffffff;
    border: 1px solid var(--mb-border-color);
    border-radius: var(--mb-border-radius);
    min-height: 250px;
    font-size: 1em;
    line-height: 1.6;
}

.micro-band-editor-quill .ql-toolbar {
    border-radius: var(--mb-border-radius) var(--mb-border-radius) 0 0;
    border-color: var(--mb-border-color);
    background-color: #f9f9f9;
}

.micro-band-editor-quill .ql-container {
    border-radius: 0 0 var(--mb-border-radius) var(--mb-border-radius);
    border-color: var(--mb-border-color);
    font-family: inherit;
}

.micro-band-editor-quill .ql-snow .ql-fill,
.micro-band-editor-quill .ql-snow .ql-stroke {
    fill: var(--mb-primary-text) !important;
    stroke: var(--mb-primary-text) !important;
}

.micro-band-editor-quill .ql-snow .ql-picker-label {
    color: var(--mb-primary-text);
}

.micro-band-editor-quill .ql-editor {
    min-height: 200px;
    padding: 16px;
}

.micro-band-editor-quill .ql-editor.ql-blank::before {
    color: var(--mb-secondary-text);
    font-style: italic;
}

/* Card Action Buttons (Edit, Delete) */
.card-footer-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-action-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    background-color: transparent;
    border: 1px solid var(--mb-border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--mb-secondary-text);
    text-decoration: none;
}

.card-action-button:hover {
    background-color: #f0f2f5;
    color: var(--mb-primary-text);
}

.card-action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-action-button svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.micro-band-edit-button:hover {
    border-color: var(--uf-primary-deep);
    color: var(--uf-primary-deep);
}

.micro-band-delete-button:hover {
    border-color: var(--uf-error);
    color: var(--uf-error);
}

/* Like button styles */
.micro-band-like-button {
    position: relative;
}

.micro-band-like-button .like-count {
    font-size: 12px;
    font-weight: 500;
}

.micro-band-like-button:hover {
    border-color: var(--uf-accent);
    color: var(--uf-accent);
}

.micro-band-like-button.liked {
    border-color: var(--uf-accent);
    color: var(--uf-accent);
}

.micro-band-like-button.liked:hover {
    background-color: rgba(194, 122, 88, 0.08);
}

.post-views {
    font-size: 12px;
    color: var(--mb-secondary-text);
    margin-left: 8px;
}

.post-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--mb-secondary-text);
    margin-left: 8px;
}

.post-comments svg {
    width: 14px;
    height: 14px;
}

.micro-band-comment-button:hover {
    border-color: var(--uf-secondary) !important;
    color: var(--uf-secondary) !important;
}

/* Author stats widget */
.micro-band-stats-widget .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.micro-band-stats-widget .stat-item {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.micro-band-stats-widget .stat-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.micro-band-stats-widget .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* ==========================================================================
   9. Single Post Action Bar (New)
   ========================================================================== */
.single-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--mb-border-color);
}

.single-action-button,
.single-action-button.button {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    font-size: 13px !important;
    background-color: transparent !important;
    border: 1px solid var(--mb-border-color) !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--mb-secondary-text) !important;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1 !important;
    height: auto !important;
    min-height: 0 !important;
}

.single-action-button:hover,
.single-action-button.button:hover {
    background-color: #f0f2f5 !important;
    color: var(--mb-primary-text) !important;
}

.single-action-button:disabled,
.single-action-button.button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.single-action-button svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.single-action-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--mb-secondary-text);
}

.single-action-stat svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.single-action-button.micro-band-edit-button:hover {
    border-color: var(--uf-primary-deep) !important;
    color: var(--uf-primary-deep) !important;
}

.single-action-button.micro-band-delete-button:hover {
    border-color: var(--uf-error) !important;
    color: var(--uf-error) !important;
}

.single-action-button.micro-band-like-button:hover {
    border-color: var(--uf-accent) !important;
    color: var(--uf-accent) !important;
}

.single-action-button.micro-band-like-button.liked {
    border-color: var(--uf-accent) !important;
    color: var(--uf-accent) !important;
    fill: var(--uf-accent) !important;
}

.single-action-button.micro-band-like-button.liked:hover {
    background-color: rgba(194, 122, 88, 0.08) !important;
}

.single-action-button.micro-band-like-button.liked svg {
    fill: currentColor;
}

/* ==========================================================================
   Single Post - Navigation & Related Posts
   ========================================================================== */

/* Breadcrumb Navigation */
.single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--uf-secondary);
    font-size: 0.9em;
}

.breadcrumb-link {
    color: var(--uf-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--uf-accent-deep);
    text-decoration: underline;
}

.breadcrumb-category {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-category::before {
    content: "/";
    color: var(--uf-secondary);
    font-weight: 300;
}

.category-link {
    color: var(--uf-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: var(--uf-accent);
}

/* Single Post Category Badge */
.single-category-badge {
    margin-bottom: 12px;
}

.category-badge-link {
    display: inline-block;
    background-color: var(--uf-accent);
    color: white;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(194, 122, 88, 0.2);
}

.category-badge-link:hover {
    background-color: var(--uf-accent-deep);
    box-shadow: 0 4px 8px rgba(194, 122, 88, 0.3);
    transform: translateY(-2px);
}

/* Related Posts Section */
.single-related-posts {
    background-color: rgba(194, 122, 88, 0.04);
    margin-top: 60px;
    padding: 40px 0;
    border-top: 2px solid var(--uf-secondary);
    border-bottom: 2px solid var(--uf-secondary);
}

.related-posts-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--uf-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-post-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.related-post-image {
    display: block;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: var(--uf-base);
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.08);
}

.related-post-title {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.related-post-title a {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--uf-text);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.related-post-title a:hover {
    color: var(--uf-accent);
}

.related-post-meta {
    padding: 8px 12px 12px;
    font-size: 0.8em;
    color: var(--uf-text-muted);
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--uf-secondary);
}

.related-post-time,
.related-post-likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-post-likes {
    margin-left: auto;
    color: var(--uf-accent);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .single-breadcrumb {
        flex-wrap: wrap;
    }
    
    .breadcrumb-category {
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    /* Left Sidebar - Optimized for small screens */
    .micro-band-left-sidebar {
        position: sticky;
        top: 0;
        background: var(--mb-card-background);
        z-index: 50;
        border-bottom: 1px solid var(--mb-border-color);
        margin-bottom: 8px;
        padding: 0;
    }
    
    .sidebar-content-wrapper {
        padding: 8px 12px;
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .sidebar-profile-block {
        display: none;
    }
    
    .sidebar-social-links {
        display: none;
    }
    
    .sidebar-main-nav {
        padding: 4px 0;
        border-top: none;
        margin-bottom: 0;
    }
    
    .sidebar-main-nav ul {
        display: flex;
        flex-direction: row;
        gap: 2px;
        align-items: center;
    }
    
    .nav-item {
        flex: 1;
        padding: 6px 8px;
        font-size: 0.75em;
        border-radius: 4px;
        justify-content: center;
        text-align: center;
    }
    
    .nav-item svg {
        width: 16px;
        height: 16px;
    }
    
    .nav-text {
        display: none;
    }
    
    /* Feed Cards */
    .card-header, .card-title, .card-body {
        padding-left: 12px;
        padding-right: 12px;
    }
    .card-title { font-size: 1.15em; }
    .card-excerpt { font-size: 0.85em; }
    .card-author-name { font-size: 0.9em; }
    .card-post-time { font-size: 0.75em; }
    
    /* Single Post */
    .single-post-container {
        padding: 16px;
    }
    .single-entry-header .entry-title { font-size: 1.6em; }
    .entry-content { font-size: 0.9rem; }
    
    /* Related Posts Grid */
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-post-card {
        margin-bottom: 8px;
    }

    /* Hide category tree on mobile */
    .sidebar-category-tree {
        display: none;
    }
}

