/* blog/post.php — Phase 7: extracted from inline <style> block. */

.article-layout {
    display: grid;
    grid-template-columns: 80px minmax(auto, 780px) 280px;
    gap: 3rem;
    justify-content: center;
    position: relative;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.article-share-sidebar {
    position: sticky;
    top: 120px;
    height: max-content;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.article-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-mid);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-share-btn:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.article-main-content {
    min-width: 0;
}

.article-toc-sidebar {
    position: sticky;
    top: 120px;
    height: max-content;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--color-text-dark);
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

/* Pullquote Styling */
.article-body blockquote {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-primary);
    border-left: 4px solid var(--color-secondary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: var(--color-bg-section);
    border-radius: 0 16px 16px 0;
}

.article-body img {
    border-radius: 12px;
    margin: 2.5rem 0;
    width: 100%;
    height: auto;
}

.toc-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.toc-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-card li {
    margin-bottom: 0.75rem;
}

.toc-card a {
    color: var(--color-text-mid);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-card a:hover {
    color: var(--color-secondary);
}

/* Mobile adjustments */
@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: minmax(auto, 780px) 250px;
    }
    .article-share-sidebar {
        display: none; /* Handled by bottom bar */
    }
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-toc-sidebar {
        display: none;
    }
}

/* Mobile Bottom Share Bar */
.mobile-share-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 100;
    justify-content: center;
    gap: 1.5rem;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 1200px) {
    .mobile-share-bar {
        display: flex;
    }
}
