/* =====================================================================
 * 09 — SINGLE POST
 * Окрема стаття, новина, послання, свідчення.
 * Преміальна типографіка для довгого читання.
 * ===================================================================== */

/* ---------- POST HEADER ---------- */
.sm-premium .single .post-header,
.sm-premium .single-post-header,
.sm-premium .single-post .entry-header {
    text-align: center;
    padding: var(--sm-space-6) 0 var(--sm-space-5);
    max-width: var(--sm-content-width);
    margin: 0 auto;
}

.sm-premium .single .post-category,
.sm-premium .single-post-header .cat-links {
    display: inline-block;
    margin-bottom: var(--sm-space-4);
}

.sm-premium .single .entry-title,
.sm-premium .single .post-title,
.sm-premium .single-post-header h1 {
    font-family: var(--sm-font-headings) !important;
    font-size: var(--sm-text-4xl) !important;
    font-weight: 600 !important;
    color: var(--sm-blue) !important;
    line-height: 1.15 !important;
    margin: 0 0 var(--sm-space-4) !important;
    letter-spacing: var(--sm-tracking-tight);
}

.sm-premium .single .post-meta,
.sm-premium .single .entry-meta {
    font-family: var(--sm-font-meta);
    font-size: var(--sm-text-sm);
    color: var(--sm-charcoal-soft);
    font-style: italic;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sm-space-4);
    justify-content: center;
    margin-bottom: var(--sm-space-5);
}

.sm-premium .single .post-meta span,
.sm-premium .single .post-meta time,
.sm-premium .single .post-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sm-premium .single .post-meta i,
.sm-premium .single .post-meta svg {
    color: var(--sm-gold);
}

.sm-premium .single .post-meta a {
    color: var(--sm-blue);
    text-decoration: none;
    border: none;
}

.sm-premium .single .post-meta a:hover {
    color: var(--sm-gold-deep);
}

/* ---------- FEATURED IMAGE (full-width або boxed) ---------- */
.sm-premium .single .post-thumbnail,
.sm-premium .single .featured-image,
.sm-premium .single-thumb {
    margin: 0 auto var(--sm-space-7);
    max-width: 1080px;
    border-radius: var(--sm-radius-lg);
    overflow: hidden;
    box-shadow: var(--sm-shadow-md);
    aspect-ratio: 16 / 9;
}

.sm-premium .single .post-thumbnail img,
.sm-premium .single .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- ARTICLE CONTENT ---------- */
.sm-premium .single .entry-content,
.sm-premium .single .post-content,
.sm-premium .single-post-content {
    max-width: var(--sm-content-width);
    margin: 0 auto;
    font-family: var(--sm-font-body);
    font-size: var(--sm-text-base);
    line-height: var(--sm-leading-relaxed);
    color: var(--sm-charcoal);
}

.sm-premium .single .entry-content p,
.sm-premium .single .post-content p {
    margin: 0 0 var(--sm-space-5);
    line-height: var(--sm-leading-relaxed);
}

.sm-premium .single .entry-content h2,
.sm-premium .single .post-content h2 {
    font-size: var(--sm-text-3xl);
    margin: var(--sm-space-7) 0 var(--sm-space-4);
}

.sm-premium .single .entry-content h3,
.sm-premium .single .post-content h3 {
    font-size: var(--sm-text-2xl);
    margin: var(--sm-space-6) 0 var(--sm-space-3);
}

.sm-premium .single .entry-content img,
.sm-premium .single .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--sm-radius-md);
    margin: var(--sm-space-5) 0;
    display: block;
}

.sm-premium .single .entry-content figure {
    margin: var(--sm-space-6) 0;
}

.sm-premium .single .entry-content .alignwide {
    margin-left: -80px;
    margin-right: -80px;
    max-width: calc(100% + 160px);
}

@media (max-width: 992px) {
    .sm-premium .single .entry-content .alignwide {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

.sm-premium .single .entry-content .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

/* ---------- TAGS ---------- */
.sm-premium .single .post-tags,
.sm-premium .single .tag-links {
    max-width: var(--sm-content-width);
    margin: var(--sm-space-7) auto var(--sm-space-5);
    padding: var(--sm-space-5) 0;
    border-top: 1px solid var(--sm-gray-light);
    border-bottom: 1px solid var(--sm-gray-light);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sm-space-2);
    align-items: center;
}

.sm-premium .single .post-tags::before,
.sm-premium .single .tag-links::before {
    content: 'Теги:';
    font-family: var(--sm-font-meta);
    font-size: var(--sm-text-sm);
    font-style: italic;
    color: var(--sm-gold-deep);
    margin-right: var(--sm-space-2);
}

.sm-premium .single .post-tags a,
.sm-premium .single .tag-links a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--sm-cream-deep);
    color: var(--sm-charcoal-soft);
    border-radius: var(--sm-radius-full);
    font-size: var(--sm-text-xs);
    font-weight: 500;
    text-decoration: none;
    border: none;
    transition: all var(--sm-transition-base);
}

.sm-premium .single .post-tags a:hover,
.sm-premium .single .tag-links a:hover {
    background: var(--sm-gold);
    color: var(--sm-white);
}

/* ---------- SHARE BUTTONS ---------- */
.sm-premium .single .post-share,
.sm-premium .single .social-share,
.sm-premium .a2a_kit_size_32 {
    max-width: var(--sm-content-width);
    margin: var(--sm-space-5) auto;
    padding: var(--sm-space-5) 0;
    text-align: center;
    border-top: 1px solid var(--sm-gray-light);
    border-bottom: 1px solid var(--sm-gray-light);
}

.sm-premium .single .post-share-title,
.sm-premium .share-title {
    font-family: var(--sm-font-meta);
    font-size: var(--sm-text-sm);
    font-style: italic;
    color: var(--sm-gold-deep);
    margin-bottom: var(--sm-space-3);
    display: block;
}

/* ---------- AUTHOR BOX ---------- */
.sm-premium .single .author-box,
.sm-premium .single-author-box {
    max-width: var(--sm-content-width);
    margin: var(--sm-space-7) auto;
    background: var(--sm-cream-soft);
    border-left: 4px solid var(--sm-gold);
    padding: var(--sm-space-5);
    border-radius: var(--sm-radius-md);
    display: flex;
    gap: var(--sm-space-4);
    box-shadow: var(--sm-shadow-xs);
}

.sm-premium .author-box img.avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--sm-gold);
}

.sm-premium .author-box-content {
    flex: 1;
}

.sm-premium .author-box .author-name {
    font-family: var(--sm-font-headings);
    font-size: var(--sm-text-xl);
    color: var(--sm-blue);
    font-weight: 600;
    margin: 0 0 var(--sm-space-2);
}

.sm-premium .author-box .author-bio {
    color: var(--sm-charcoal-soft);
    font-size: var(--sm-text-base);
    line-height: var(--sm-leading-relaxed);
    margin: 0;
}

/* ---------- POST NAVIGATION (prev/next) ---------- */
.sm-premium .single .post-navigation,
.sm-premium .single .nav-links,
.sm-premium .post-nav-wrap {
    max-width: var(--sm-content-width);
    margin: var(--sm-space-7) auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sm-space-4);
}

.sm-premium .post-nav-wrap a,
.sm-premium .single .nav-links a {
    display: block;
    padding: var(--sm-space-5);
    background: var(--sm-white);
    border: 1px solid var(--sm-gray-light);
    border-radius: var(--sm-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--sm-transition-base);
}

.sm-premium .post-nav-wrap a:hover,
.sm-premium .single .nav-links a:hover {
    background: var(--sm-cream-deep);
    border-color: var(--sm-gold);
    transform: translateY(-3px);
    box-shadow: var(--sm-shadow-md);
}

.sm-premium .post-nav-wrap .nav-label,
.sm-premium .single .nav-links .nav-label {
    font-family: var(--sm-font-meta);
    font-size: var(--sm-text-sm);
    font-style: italic;
    color: var(--sm-gold-deep);
    margin-bottom: var(--sm-space-1);
    display: block;
}

.sm-premium .post-nav-wrap .nav-title,
.sm-premium .single .nav-links .nav-title {
    font-family: var(--sm-font-headings);
    font-size: var(--sm-text-base);
    color: var(--sm-blue);
    line-height: var(--sm-leading-snug);
}

@media (max-width: 768px) {
    .sm-premium .post-nav-wrap,
    .sm-premium .single .post-navigation {
        grid-template-columns: 1fr;
    }
}

/* ---------- RELATED POSTS ---------- */
.sm-premium .related-posts,
.sm-premium .single-related-posts {
    max-width: var(--sm-container-lg);
    margin: var(--sm-space-8) auto var(--sm-space-7);
    padding: 0 var(--sm-space-5);
}

.sm-premium .related-posts-title,
.sm-premium .related-posts h3 {
    font-family: var(--sm-font-headings);
    font-size: var(--sm-text-3xl);
    color: var(--sm-blue);
    text-align: center;
    margin-bottom: var(--sm-space-2);
    position: relative;
}

.sm-premium .related-posts-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--sm-gold);
    margin: var(--sm-space-3) auto var(--sm-space-5);
}

/* ---------- COMMENTS ---------- */
.sm-premium .comments-area,
.sm-premium #comments {
    max-width: var(--sm-content-width);
    margin: var(--sm-space-7) auto;
    padding-top: var(--sm-space-7);
    border-top: 1px solid var(--sm-gray-light);
}

.sm-premium .comments-title,
.sm-premium .comment-reply-title {
    font-family: var(--sm-font-headings);
    font-size: var(--sm-text-3xl);
    color: var(--sm-blue);
    margin-bottom: var(--sm-space-5);
}

.sm-premium .comment {
    background: var(--sm-white);
    padding: var(--sm-space-5);
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-gray-light);
    margin-bottom: var(--sm-space-4);
}

/* ---------- MOBILE SINGLE ---------- */
@media (max-width: 768px) {
    .sm-premium .single .entry-title,
    .sm-premium .single .post-title {
        font-size: 28px !important;
    }

    .sm-premium .single .entry-content,
    .sm-premium .single .post-content {
        font-size: var(--sm-text-base);
    }

    .sm-premium .single .entry-content h2 {
        font-size: var(--sm-text-2xl);
        margin: var(--sm-space-5) 0 var(--sm-space-3);
    }

    .sm-premium .single .post-meta {
        gap: var(--sm-space-2);
        font-size: var(--sm-text-xs);
    }

    .sm-premium .single .author-box {
        flex-direction: column;
        text-align: center;
    }

    .sm-premium .single .author-box img.avatar {
        margin: 0 auto;
    }
}
