/* Стили для блога Zrelaya Manka */

/* Заголовок блога */
.blog-header {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.blog-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
}

.blog-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Категории блога */
.blog-categories {
    background-color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: #e0e0e0;
}

.category-btn.active {
    background-color: #3498db;
    color: white;
}

/* Сетка блога */
.blog-posts {
    padding: 4rem 0;
}

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

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-category img {
    width: 24px;
    height: 24px;
}

.blog-category span {
    font-weight: 600;
    color: #3498db;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-date {
    display: flex;
    align-items: center;
}

.blog-read-more {
    color: #3498db;
    font-weight: 600;
}

/* Индивидуальный пост блога */
.blog-post {
    padding: 4rem 0;
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    margin: 0.5rem 0 1rem;
}

.blog-post-header .blog-meta {
    margin: 0;
}

.blog-author {
    margin-right: 1rem;
}

.blog-featured-image {
    margin-bottom: 2rem;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content p, .blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-tip {
    background-color: #f1f7fe;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.blog-tip svg {
    flex-shrink: 0;
    color: #3498db;
}

.blog-tip p {
    margin: 0;
}

.blog-author-bio {
    display: flex;
    gap: 2rem;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-top: 0;
}

.blog-share {
    margin-top: 3rem;
    text-align: center;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.facebook {
    background-color: #3b5998;
    color: white;
}

.twitter {
    background-color: #1da1f2;
    color: white;
}

.pinterest {
    background-color: #bd081c;
    color: white;
}

.btn-share:hover {
    opacity: 0.9;
    color: white;
}

/* Похожие статьи */
.related-posts {
    margin-top: 4rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Отзывчивый дизайн */
@media (max-width: 992px) {
    .blog-grid, .related-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }
    .blog-grid, .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .blog-author-bio {
        flex-direction: column;
        text-align: center;
    }
    .author-image {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 576px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    .blog-post-content p, .blog-post-content ul, .blog-post-content ol {
        font-size: 1rem;
    }
    .blog-author-bio {
        padding: 1.5rem;
    }
    .social-share-buttons {
        flex-direction: column;
    }
    .btn-share {
        width: 100%;
        justify-content: center;
    }
}