/* ========================================
   Single Post Template Enhancements
   ======================================== */

/* Article Content Styling */
.single-post .fusion-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
}

.single-post .fusion-post-content h2 {
    font-size: 28px;
    color: #0F172A;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 700;
    scroll-margin-top: 100px; /* For TOC anchor links */
}

.single-post .fusion-post-content h3 {
    font-size: 22px;
    color: #0F172A;
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 600;
    scroll-margin-top: 100px;
}

.single-post .fusion-post-content h4 {
    font-size: 18px;
    color: #1E3A5F;
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.single-post .fusion-post-content p {
    margin-bottom: 20px;
}

.single-post .fusion-post-content ul,
.single-post .fusion-post-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.single-post .fusion-post-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.single-post .fusion-post-content a {
    color: #2563EB;
    text-decoration: underline;
    font-weight: 500;
}

.single-post .fusion-post-content a:hover {
    color: #1D4ED8;
}

.single-post .fusion-post-content blockquote {
    border-left: 4px solid #D4AF37;
    background: #F8FAFC;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 8px;
    font-style: italic;
    color: #475569;
}

.single-post .fusion-post-content img {
    border-radius: 12px;
    margin: 24px 0;
}

/* Author Meta */
.author-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 24px;
}

.author-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Author Bio Card */
.author-bio-card {
    display: flex;
    gap: 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
}

.author-bio-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-bio-card strong {
    font-size: 16px;
    color: #0F172A;
    display: block;
    margin-bottom: 8px;
}

.author-bio-card p {
    color: #64748B;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Rating Widget Container */
.rating-widget-container {
    background: #EFF6FF;
    border-left: 4px solid #2563EB;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

/* Sidebar Sticky Elements */
.sidebar-toc {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: sticky;
    top: 100px;
}

.sidebar-toc h4 {
    font-size: 16px;
    color: #0F172A;
    margin: 0 0 16px;
    font-weight: 600;
}

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

.sidebar-toc li {
    margin-bottom: 8px;
}

.sidebar-toc a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}

.sidebar-toc a:hover {
    color: #2563EB;
}

.sidebar-toc a.active {
    color: #2563EB;
    font-weight: 600;
}

/* Promo Card */
.sidebar-promo {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-promo a {
    display: inline-block;
    background: #D4AF37;
    color: #0F172A !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}

.sidebar-promo a:hover {
    background: #F0D060;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* Top Picks Widget */
.top-picks-widget {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.top-picks-widget h4 {
    font-size: 15px;
    color: #0F172A;
    margin: 0 0 16px;
    font-weight: 600;
}

.top-pick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.top-pick-item:hover {
    border-color: #2563EB;
    background: #EFF6FF;
    transform: translateX(4px);
}

.top-pick-item strong {
    color: #0F172A;
    font-size: 14px;
    display: block;
}

.top-pick-item span {
    color: #94A3B8;
    font-size: 12px;
}

/* Related Articles Grid */
.related-articles-grid .fusion-blog-layout-grid {
    gap: 20px;
}

.related-articles-grid .fusion-post-grid {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-articles-grid .fusion-post-grid:hover {
    border-color: #2563EB;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

/* Disclosure Box */
.disclosure-box {
    background: #FFF7ED;
    border: 1px solid #FDBA74;
    border-radius: 12px;
    padding: 20px;
}

.disclosure-box p {
    margin: 0;
    font-size: 12px;
    color: #7C2D12;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar-toc {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .single-post .fusion-post-content h2 {
        font-size: 24px;
    }
    
    .single-post .fusion-post-content h3 {
        font-size: 20px;
    }
    
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio-card img {
        margin: 0 auto;
    }
}

/* Fix TOC bottom blue block */
.fusion-table-of-contents .awb-toc-el__highlight-bar {
    display: none !important;
}
.fusion-table-of-contents .awb-toc-el__scroll-indicator {
    display: none !important;
}


/* Related Posts - heading & title links */
.fusion-related-posts .fusion-title h3,
.fusion-related-posts .fusion-title span {
    color: #0F172A !important;
    font-weight: 700 !important;
}
.fusion-related-posts .fusion-related-posts-title-link {
    color: #0F172A !important;
    font-weight: 600 !important;
}
.fusion-related-posts .fusion-related-posts-title-link:hover {
    color: #2563EB !important;
}
