/* Blog article page */

.article-hero {
    min-height: 38vh;
    position: relative;
}

.article-hero .hero-bg {
    background:
        radial-gradient(120% 160% at 88% 12%, rgba(124, 76, 255, 0.3) 0%, rgba(124, 76, 255, 0) 58%),
        linear-gradient(180deg, rgba(12, 10, 32, 0.86), rgba(12, 10, 32, 0.38));
}

.article-hero-content {
    max-width: 980px;
    margin: 0 auto;
}

.article-breadcrumbs {
    display: inline-flex;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.article-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

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

.article-category {
    display: inline-flex;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(124, 76, 255, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.65rem;
}

.article-title {
    margin: 0;
    line-height: 1.16;
}

.article-meta {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 1rem;
    align-items: start;
}

.article-content {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(20, 16, 44, 0.86);
    padding: 1.25rem;
}

.article-content p {
    margin: 0 0 1rem;
    color: rgba(246, 244, 255, 0.9);
    line-height: 1.72;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.related-posts {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(20, 16, 44, 0.86);
    padding: 1rem;
}

.related-posts h3 {
    margin: 0 0 0.7rem;
    font-size: 1rem;
}

.related-list {
    display: grid;
    gap: 0.65rem;
}

.related-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.related-item:hover {
    border-color: rgba(124, 76, 255, 0.7);
}

.related-item-title {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.related-item-meta {
    margin: 0.38rem 0 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.article-empty {
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: var(--text-secondary);
    padding: 1.1rem;
}

@media (max-width: 980px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .article-hero {
        min-height: 34vh;
    }

    .article-content,
    .related-posts {
        border-radius: 14px;
        padding: 0.95rem;
    }

    .article-content p {
        font-size: 0.94rem;
    }
}

.article-hero .hero-bg {
    background:
        radial-gradient(120% 160% at 88% 12%, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 237, 255, 0.46));
}

.article-category {
    border-color: rgba(143, 113, 228, 0.16);
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
}

.article-content,
.related-posts {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(111, 92, 170, 0.1);
}

.article-content p {
    color: #4b3a6e;
}

.related-item {
    border-color: rgba(143, 113, 228, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.related-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.article-empty {
    border-color: rgba(143, 113, 228, 0.18);
    background: rgba(255, 255, 255, 0.78);
}
