/* ==========================================================================
   Стили для страницы статьи (blog-article.css)
   ========================================================================== */
.article-main {
    max-width: 100%; /* Занимает всю доступную ширину в сетке */
}

/* 1. Заголовок статьи */
.article-header {
    margin-bottom: 32px;
}
.breadcrumbs {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--c-text-soft);
}
.breadcrumbs a {
    color: var(--c-text-soft);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--c-accent);
}
.article-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--c-text);
}
.article-meta {
    font-size: 14px;
    color: var(--c-text-soft);
}

/* 2. Главное изображение */
.article-featured-image {
    margin: 0 0 32px;
    border-radius: 20px;
    overflow: hidden;
}
.article-featured-image img {
    width: 100%;
    display: block;
}
.article-featured-image figcaption {
    font-size: 13px;
    text-align: center;
    padding: 12px;
    background: var(--c-bg-alt);
    color: var(--c-text-soft);
}

/* 3. Контент статьи */
.article-content {
    font-size: 17px;
    line-height: 1.7;
    color: var(--c-text);
}
.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin: 0 0 1.5em;
}
.article-content h2 {
    font-size: 28px;
    margin: 2em 0 1em;
    line-height: 1.3;
}
.article-content h3 {
    font-size: 22px;
    margin: 1.8em 0 0.8em;
}
.article-content a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 500;
}
.article-content a:hover {
    text-decoration: underline;
}
.article-content ul {
    padding-left: 20px;
}
.article-content blockquote {
    padding-left: 20px;
    border-left: 3px solid var(--c-accent);
    font-style: italic;
    color: var(--c-text-soft);
}

/* 4. Футер статьи (теги) */
.article-footer {
    margin-top: 40px;
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.article-tags span {
    color: var(--c-text-soft);
    font-weight: 500;
}
.article-tags a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: 30px;
    text-decoration: none;
    color: var(--c-text);
    transition: all 0.2s;
}
.article-tags a:hover {
    background: var(--c-accent);
    color: var(--c-accent-fg);
    border-color: var(--c-accent);
}

/* 5. Блок автора */
.author-box {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--c-border);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-box__name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}
.author-box__bio {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--c-text-soft);
    line-height: 1.6;
}
.author-box__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-accent);
    text-decoration: none;
}
.author-box__link:hover {
    text-decoration: underline;
}

/* Адаптивность для статьи */
@media (max-width: 992px) {
    /* На мобильных сайдбар уходит, поэтому контент занимает всю ширину */
    .article-main {
        order: -1; /* Ставим контент статьи выше сайдбара */
    }
}
@media (max-width: 576px) {
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}