/* blog.css - Стили для страницы "Блог" */

.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(248, 251, 253, 0.9) 0%, rgba(240, 247, 255, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Blog Navigation */
.blog-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    z-index: 999;
    margin-bottom: 60px;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
}

.category {
    padding: 10px 25px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid rgba(10, 111, 194, 0.2);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category.active, .category:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-post {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(10, 31, 60, 0.05);
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(10, 31, 60, 0.15);
    border-color: rgba(10, 111, 194, 0.1);
}

.post-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="10" y="20" width="80" height="60" rx="5" fill="none" stroke="%23ffffff" stroke-width="1" opacity="0.3"/><rect x="15" y="25" width="70" height="10" fill="%23ffffff" opacity="0.2"/><rect x="15" y="40" width="50" height="5" fill="%23ffffff" opacity="0.3"/><rect x="15" y="50" width="60" height="5" fill="%23ffffff" opacity="0.3"/><rect x="15" y="60" width="40" height="5" fill="%23ffffff" opacity="0.3"/></svg>');
    background-size: cover;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark);
}

.post-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: rgba(10, 111, 194, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid rgba(10, 31, 60, 0.1);
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin: 80px 0;
    border-radius: 15px;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.newsletter p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

.newsletter-form .btn {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.newsletter-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .newsletter h2 {
        font-size: 28px;
    }
    
    .newsletter p {
        font-size: 18px;
    }
}