/* ============================================
   BLOG DETAIL - Premium Reading Experience
   ============================================ */

/* Container */
.container--narrow {
    max-width: 1100px;
}

/* Hero */
.blog-detail-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 60px 0 40px;
}

.blog-detail-hero__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
}

.badge--category {
    background: #1a3a5c;
    color: #fff;
}

.badge--date,
.badge--author {
    background: #f0f4f8;
    color: #4b5563;
}

.blog-detail-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    color: #0a1628;
    margin: 0 0 16px;
}

.blog-detail-hero__excerpt {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* Layout */
.blog-detail-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar (Sticky) */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-toc {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.blog-toc__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.938rem;
    color: #0a1628;
    margin-bottom: 16px;
}

.blog-toc nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc nav ol li {
    margin-bottom: 10px;
}

.blog-toc nav ol li:last-child {
    margin-bottom: 0;
}

.blog-toc nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.blog-toc nav a:hover {
    color: #c5973d;
}

/* Share Buttons */
.blog-share {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.blog-share__title {
    font-weight: 700;
    font-size: 0.938rem;
    color: #0a1628;
    margin-bottom: 12px;
}

.blog-share__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn--facebook {
    background: #1877f2;
}

.share-btn--twitter {
    background: #1da1f2;
}

.share-btn--whatsapp {
    background: #25d366;
}

/* Content */
.blog-content {
    min-width: 0;
}

/* Blog Content Images (from engine) */
.blog-content .blog-hero,
.blog-content .blog-mid-image {
    margin: 0 0 32px;
}

.blog-content .blog-hero img,
.blog-content .blog-mid-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 12px;
    font-style: italic;
}

.prose {
    font-size: 1.063rem;
    line-height: 1.8;
    color: #1f2937;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0a1628;
    margin: 48px 0 24px;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a1628;
    margin: 36px 0 20px;
    line-height: 1.4;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a3a5c;
    margin: 28px 0 16px;
}

.prose p {
    margin: 0 0 20px;
}

.prose ul,
.prose ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.prose li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.prose a {
    color: #c5973d;
    text-decoration: underline;
    transition: color 0.2s;
}

.prose a:hover {
    color: #a57b2d;
}

.prose strong {
    font-weight: 700;
    color: #0a1628;
}

.prose img,
.prose figure {
    margin: 32px 0;
    border-radius: 12px;
}

.prose figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 12px;
    font-style: italic;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.938rem;
}

.prose th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: #0a1628;
    border-bottom: 2px solid #e5e7eb;
}

.prose td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.prose tr:last-child td {
    border-bottom: none;
}

.prose blockquote {
    border-left: 4px solid #c5973d;
    padding: 16px 24px;
    margin: 32px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

.prose .info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin: 32px 0;
    font-size: 0.938rem;
    color: #1e40af;
}

/* Author Box */
.author-box-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin: 48px 0;
    display: flex;
    gap: 24px;
    align-items: start;
}

.author-box-modern .author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c5973d 0%, #d4a856 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-box-modern .author-box__info {
    flex: 1;
}

.author-box-modern strong {
    display: block;
    font-size: 1.25rem;
    color: #0a1628;
    margin-bottom: 4px;
}

.author-box-modern span {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.author-box-modern p {
    margin: 0;
    line-height: 1.6;
    color: #4b5563;
}

/* Tags */
.blog-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    margin-top: 32px;
}

.blog-tags svg {
    color: #6b7280;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f4f8;
    color: #1a3a5c;
    font-size: 0.813rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Related Posts */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 32px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.related-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.related-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.related-card__category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4f8;
    color: #1a3a5c;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 12px;
}

.related-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.related-card__title a {
    color: #0a1628;
    text-decoration: none;
    transition: color 0.2s;
}

.related-card__title a:hover {
    color: #c5973d;
}

.related-card__excerpt {
    font-size: 0.938rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.related-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c5973d;
    font-weight: 600;
    font-size: 0.938rem;
    text-decoration: none;
    transition: gap 0.2s;
}

.related-card__link:hover {
    gap: 10px;
}

/* CTA */
.blog-detail-cta {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d5a8a 100%);
}

.cta-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    color: #fff;
}

.cta-box__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.cta-box__text {
    font-size: 1.125rem;
    opacity: 0.95;
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .blog-toc,
    .blog-share {
        margin-bottom: 0;
    }
}

@media (max-width: 620px) {
    .blog-detail-hero {
        padding: 40px 0 30px;
    }

    .blog-detail-hero__title {
        font-size: 1.5rem;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .prose {
        font-size: 1rem;
    }

    .prose h2 {
        font-size: 1.5rem;
        margin: 32px 0 20px;
    }

    .prose h3 {
        font-size: 1.25rem;
        margin: 28px 0 16px;
    }

    .author-box-modern {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .cta-box {
        padding: 32px 24px;
    }

    .cta-box__title {
        font-size: 1.5rem;
    }

    .cta-box__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
