/* ARTICLE SINGLE - Clean Design */

/* Container */
.nac-article-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.nac-article-breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: var(--c-text-muted);
}

.nac-article-breadcrumbs a {
    color: var(--c-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nac-article-breadcrumbs a:hover {
    color: var(--c-primary);
}

/* Header */
.nac-article-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
    padding: 16px 0 24px;
}

.nac-header-content {
    max-width: 720px;
}

.nac-header-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
}

.nac-header-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f9fafb;
}

.nac-article-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--c-text-main);
    line-height: 1.2;
    margin-bottom: 12px;
}

.nac-article-subtitle {
    font-size: 17px;
    color: var(--c-text-body);
    line-height: 1.5;
    font-weight: 400;
}

/* Meta */
.nac-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 24px;
}

.nac-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), #00b36b);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.nac-author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nac-author-info,
.nac-date-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nac-author-label,
.nac-date-label {
    font-size: 14px;
    color: var(--c-text-muted);
}

.nac-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.nac-author-name:hover {
    color: var(--c-primary);
}

.nac-date-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-main);
}

/* Layout */
.nac-article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

/* Content - використовує стилі з style.css */
.nac-article-content {
    max-width: 720px;
}

/* Sidebar */
.nac-article-sidebar {
    position: sticky;
    top: 24px;
}



/* TOC */
.nac-sidebar-toc {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.nac-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text-main);
    margin-bottom: 12px;
}

.nac-toc-list {
    list-style: none;
}

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

.nac-toc-list a {
    color: var(--c-text-body);
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}

.nac-toc-list a:hover {
    color: var(--c-primary);
}

/* Extra Blocks */
.nac-extra-block {
    background: #f9fafb;
    padding: 48px 0;
    margin: 48px 0;
}

.nac-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.nac-extra-image img {
    width: 100%;
    border-radius: 12px;
}

.nac-block-3 {
    padding: 32px 0;
}

/* Related Articles */
.nac-related {
    background: var(--c-bg-page);
    padding: 48px 0;
    margin-top: 48px;
}

.nac-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.nac-related-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--c-text-main);
}

.nac-view-all {
    color: var(--c-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.nac-view-all:hover {
    opacity: 0.8;
}

/* Grid для related - використовує стилі з style.css */
.nac-related .latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Mobile */
@media (max-width: 968px) {
    .nac-article-container {
        padding: 0 16px;
    }

    .nac-article-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nac-header-image {
        order: -1;
    }

    .nac-article-title {
        font-size: 28px;
    }

    .nac-article-subtitle {
        font-size: 18px;
    }

    .nac-article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nac-article-sidebar {
        position: static;
        order: -1;
    }

    .nac-article-meta {
        gap: 10px;
    }

    .nac-author-avatar {
        width: 40px;
        height: 40px;
    }

    .nac-author-label,
    .nac-date-label,
    .nac-author-name,
    .nac-date-value {
        font-size: 13px;
    }

    .nac-extra-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nac-related .latest-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.nac-article-content p {
    margin-bottom: 20px;
}

.nac-article-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.nac-article-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.nac-article-content ul,
.nac-article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.nac-article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
