/* ============================================
   Single Post Styles
   ============================================ */

/* Layout - Matching Song Content Structure */
.post-content-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px 0;
}

.content-columns {
    display: grid;
    grid-template-columns: 1fr 350px;
    /* Wide Content, Narrow Sidebar */
    gap: 40px;
    max-width: calc(100% - 200px);
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 2000px) {
    .content-columns {
        max-width: calc(100% - 100px);
    }
}

.left-column {
    display: flex;
    flex-direction: column;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================
   Hero Section Tweaks
   ============================================ */
.post-hero {
    min-height: 500px;
}

/* ============================================
   Post Body (Right Column)
   ============================================ */
.post-body {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-content-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 24px;
    margin-top: 0;
}

.post-content-text h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--md-sys-color-on-surface);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.post-content-text h3 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--md-sys-color-on-surface);
    font-weight: 600;
}

.post-content-text ul,
.post-content-text ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--md-sys-color-on-surface-variant);
}

.post-content-text li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.post-content-text a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-weight: 600;
}

.post-content-text a:hover {
    text-decoration: underline;
}

.post-content-text blockquote {
    border-left: 4px solid var(--md-sys-color-primary);
    margin: 32px 0;
    padding: 12px 24px;
    background: var(--md-sys-color-surface-container);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--md-sys-color-on-surface);
}

.post-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Tags at Top */
.post-tags-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tag-pill {
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.tag-pill:hover {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

/* ============================================
   Sidebar: Related Posts (Left Column)
   ============================================ */
.related-section-sidebar .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.related-section-sidebar .section-header md-icon {
    font-size: 24px;
    color: var(--md-sys-color-primary);
}

.related-section-sidebar .section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--md-sys-color-on-surface);
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-post-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
}

.sidebar-post-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: var(--md-sys-color-surface-container-low);
}

.sidebar-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-info h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.sidebar-info .meta-date {
    font-size: 0.75rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .content-columns {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 20px;
    }

    .right-column {
        order: 2;
        /* Move related posts sidebar to bottom on mobile */
    }
}

@media (max-width: 768px) {
    .post-body {
        padding: 24px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

.post-hero .hero-bg-image {
    object-fit: cover;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-height: 100%;
}