/* Блог: общие стили */

.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Индексная страница блога */

.blog-index {
    padding: 80px 0;
}

.blog-index h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.blog-index .subtitle {
    font-size: 20px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 50px;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.filter-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

.card-content {
    padding: 30px;
}

.card-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.card-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-content p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: #e9ecef;
    color: #495057;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.3s;
}

.tag:hover {
    background: #dee2e6;
}

/* Страница статьи */

.blog-article {
    padding: 60px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
}

.article-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

.article-meta span {
    margin: 0 5px;
}

.article-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.table-of-contents {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px 25px;
    margin-bottom: 40px;
    border-radius: 5px;
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 32px;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.article-content h2:first-child {
    border-top: none;
    margin-top: 0;
}

.article-content h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: #007bff;
    text-decoration: underline;
}

.article-content a:hover {
    color: #0056b3;
}

.article-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 30px 0;
}

.article-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.article-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-cta {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    text-align: center;
}

.article-cta h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.article-cta p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.article-cta .btn {
    background: #fff;
    color: #667eea;
    border: none;
}

.article-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Адаптивность */

@media (max-width: 768px) {
    .blog-index h1 {
        font-size: 36px;
    }

    .blog-index .subtitle {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 26px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-cta {
        padding: 30px 20px;
    }

    .article-cta h3 {
        font-size: 22px;
    }

    .article-cta p {
        font-size: 16px;
    }
}