/* =========================================
   SINGLE BLOG POST — Page Styles
   ========================================= */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    z-index: 100;
    transition: width 0.1s ease;
}

/* Custom Cursor */
@media (min-width: 768px) {
    * {
        cursor: none !important;
    }
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* ─── Ambient Orbs ─── */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(120px);
}

/* ─── Blog Hero ─── */
.blog-hero {
    position: relative;
    overflow: hidden;
}

.blog-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-hero:hover .blog-hero-image {
    transform: scale(1.04);
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(5, 5, 5, 1) 0%,
            rgba(5, 5, 5, 0.75) 35%,
            rgba(5, 5, 5, 0.35) 65%,
            rgba(5, 5, 5, 0.2) 100%);
    z-index: 1;
}

/* ─── Article Content ─── */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.6);
}

.article-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.25rem;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 4px;
    background: linear-gradient(to bottom, #6366f1, #a855f7);
    border-radius: 4px;
}

.article-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content strong {
    color: white;
    font-weight: 600;
}

.article-content a {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #a5b4fc;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.article-content ul li::marker {
    color: #6366f1;
}

.article-content ol li::marker {
    color: #a855f7;
    font-weight: 700;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid #6366f1;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.article-content pre {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.article-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    padding: 0.15rem 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.375rem;
    color: #c4b5fd;
}

.article-content pre code {
    padding: 0;
    background: none;
    border-radius: 0;
    color: inherit;
}

.article-content img {
    width: 100%;
    border-radius: 1rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Author Card ─── */
.author-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    transition: border-color 0.3s ease;
}

.author-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ─── Share Buttons ─── */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

/* ─── Tags ─── */
.blog-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

/* ─── Related Posts ─── */
.related-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.related-card .rc-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .rc-image {
    transform: scale(1.05);
}

.related-card .rc-body {
    padding: 1.25rem;
}

.related-card .rc-category {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a855f7;
    margin-bottom: 0.5rem;
    display: block;
}

.related-card .rc-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-card:hover .rc-title {
    color: #a5b4fc;
}

/* ─── Reveal Animations ─── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Footer ─── */
.blog-post-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-post-footer a:hover {
    color: #a5b4fc;
}

/* ─── Table of Contents ─── */
.toc-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
}

.toc-container h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.toc-link {
    display: block;
    padding: 0.5rem 0;
    padding-left: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    border-left: 2px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.toc-link:hover {
    color: #a5b4fc;
    border-left-color: #6366f1;
}