/* BLOG POST PREMIUM LAYOUT */
:root {
    --v4-purple: #7000ff;
    --toc-bg: rgba(255, 255, 255, 0.02);
}

/* PROGRESS BAR */
#progress-bar {
    position: fixed;
    top: 70px;
    /* Below sticky header */
    left: 0;
    height: 3px;
    background: var(--v4-purple);
    width: 0%;
    z-index: 10001;
    /* Above nav */
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--v4-purple);
}

/* LAYOUT GRID */
.post-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* SHARE SIDEBAR */
.share-sidebar {
    position: sticky;
    top: 150px;
    height: min-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 100;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid rgba(112, 0, 255, 0.2);
    cursor: pointer;
}

.share-btn:hover {
    background: var(--v4-purple);
    color: #fff;
    border-color: var(--v4-purple);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

/* MAIN CONTENT */
.post-content {
    max-width: 850px;
    margin: 0 auto;
}

/* Typography Overrides for Statics */
.prose {
    font-size: 1.125rem !important;
    /* 18px */
    line-height: 1.8 !important;
    color: #ccc !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.prose img,
.prose video,
.prose iframe {
    max-width: 100% !important;
    height: auto !important;
}

.prose pre {
    white-space: pre-wrap;
    word-break: break-all;
}

.prose h2 {
    font-size: 2rem !important;
    color: #fff !important;
    font-family: 'Inter', system-ui, sans-serif;
    margin-top: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    border-left: 4px solid var(--v4-purple);
    padding-left: 20px;
}

.prose h3 {
    font-size: 1.5rem !important;
    color: #e0e0e0 !important;
    margin-top: 2.5rem !important;
}

.prose p {
    margin-bottom: 1.5rem !important;
}

.prose blockquote {
    border-left: 4px solid #fff;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.25rem;
    margin: 2rem 0;
}

/* MOBILE CONFIG */
.mobile-share-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    justify-content: center;
    gap: 20px;
    z-index: 10000;
}

@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 20px;
    }

    .share-sidebar {
        display: none;
    }

    .mobile-share-bar {
        display: flex;
    }

    .post-content {
        max-width: 100%;
    }
}

/* SMALL MOBILE CONFIG */
@media (max-width: 640px) {
    .post-layout {
        padding: 15px 10px;
        display: block;
        /* Safer for very narrow screens */
    }

    .prose {
        font-size: 1rem !important;
        /* 16px for better readability on small screens */
    }

    .prose h2 {
        font-size: 1.5rem !important;
        margin-top: 2.5rem !important;
        padding-left: 15px;
        word-break: break-word;
    }

    .prose h3 {
        font-size: 1.25rem !important;
        word-break: break-word;
    }

    header h1 {
        font-size: 1.8rem !important;
        word-break: break-word;
    }
}