/* =========================================
   SINGLE POST PAGE STYLES
   ========================================= */

.post-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
}

.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,33,46,0.95) 10%, rgba(2,33,46,0.4) 60%, rgba(2,33,46,0.2));
}

.post-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 50px;
    color: #fff;
    width: 100%;
}

.post-hero .cat-badge { margin-bottom: 1rem; }

.post-hero h1 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.3;
    max-width: 900px;
}

.post-hero-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    list-style: none;
    padding: 0;
}
.post-hero-meta li { display: flex; align-items: center; gap: 6px; }

.breadcrumb-bar {
    background: #f7f9fa;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.breadcrumb-bar .breadcrumb { margin: 0; font-size: 0.85rem; }

.article-wrapper { padding: 50px 0; }

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-content p { margin-bottom: 1.5rem; }
.article-content h2, .article-content h3 {
    margin-top: 2rem;
    color: var(--primary);
}
.article-content img { border-radius: 4px; margin: 1.5rem 0; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content ul li, .article-content ol li { margin-bottom: 0.5rem; }

/* Share sidebar */
.share-sticky {
    position: sticky;
    top: 100px;
}

.share-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.social-sharer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-sharer a {
    width: 42px; height: 42px;
    background: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.2s;
}
.social-sharer a:hover { background: var(--accent); color: #fff; }

@media (max-width: 991px) {
    .social-sharer { flex-direction: row; }
}

/* Author box */
.author-box {
    background: var(--primary);
    color: #fff;
    padding: 2rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.author-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.author-info h5 { color: #fff; margin-bottom: 0.25rem; }
.author-info p { color: rgba(255,255,255,0.7); margin-bottom: 0; font-size: 0.9rem; }

/* Tags row */
.post-tags-row {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.post-tags-row .tag {
    border-color: #ddd;
    color: var(--primary);
}
.post-tags-row .tag:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }

/* Related/Recent section */
.related-posts-section {
    background: var(--primary);
    padding: 3rem 0;
    margin-top: 0;
}

.toc-box {
    background: #f7f9fa;
    border: 1px solid #eee;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.toc-box h6 { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; color: #888; margin-bottom: 1rem; }
.toc-box ul { list-style: none; padding: 0; margin: 0; }
.toc-box li { margin-bottom: 0.5rem; }
.toc-box a { color: var(--primary); font-size: 0.9rem; }
.toc-box a:hover { color: var(--secondary); }
