/* 
* Blog Stylesheet for Persikovaya-Pshyonka.com
* Additional styles for blog pages
* Author: Persikovaya-Pshyonka.com team
* Version: 1.0
*/

/* ===== BLOG HEADER ===== */
.blog-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-header h1 {
    color: white;
    margin-bottom: 15px;
}

.blog-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

/* ===== BLOG CATEGORIES ===== */
.blog-categories {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 70px;
    z-index: 99;
}

.categories-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.category-item {
    padding: 8px 20px;
    margin: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--background-light);
    transition: var(--transition);
}

.category-item:hover, .category-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* ===== BLOG ARTICLES ===== */
.blog-articles {
    padding: 60px 0;
}

.article-category {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

.article-date {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.article-excerpt {
    margin: 15px 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== SINGLE ARTICLE ===== */
.article-single {
    padding: 60px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 15px;
}

.article-featured-image {
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-featured-image img {
    width: 100%;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.article-content ul, .article-content ol {
    margin: 20px 0 20px 30px;
}

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

.article-tips {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: var(--border-radius-large);
    margin: 40px 0;
}

.article-tips h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.article-tips ul {
    margin-left: 20px;
}

.article-share {
    margin: 60px 0;
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-light);
    transition: var(--transition);
}

.btn-social:hover {
    background-color: var(--primary-color);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.article-related {
    margin: 60px 0;
}

.article-related h3 {
    text-align: center;
    margin-bottom: 30px;
}

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

.related-article {
    display: block;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.related-article img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-article h4 {
    padding: 15px;
    font-size: 16px;
    color: var(--text-color);
    transition: var(--transition);
}

.related-article:hover h4 {
    color: var(--primary-color);
}

/* ===== RESPONSIVE BLOG ===== */
@media (max-width: 992px) {
    .article-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .blog-categories {
        top: 0;
        position: relative;
    }

    .article-meta {
        flex-direction: column;
        gap: 5px;
    }

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

@media (max-width: 576px) {
    .blog-header {
        padding: 40px 0;
    }

    .article-featured-image {
        margin-bottom: 30px;
    }

    .article-tips {
        padding: 15px;
    }
}
