/**
 * Стили для страницы блога
 */

.blog-container {
    max-width: 800px;
    padding: 2rem;
}

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

.blog-header h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.blog-header p {
    color: #aaa;
}

.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.blog-post:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-post h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.blog-post .post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-post a {
    color: #00a8ea;
    text-decoration: none;
    font-weight: 500;
}

.blog-post a:hover {
    text-decoration: underline;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.blog-pagination a,
.blog-pagination span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-pagination .current {
    background: #005f99;
    border-color: #005f99;
}

/* Индивидуальные посты */
.blog-post-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-post-detail h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.blog-post-detail .post-date {
    color: #888;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.blog-post-detail .post-content {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-detail .post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-detail .post-content h2 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.blog-post-detail .post-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.blog-post-detail .post-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-post-detail .post-content pre code {
    background: none;
    padding: 0;
}

@media (max-width: 768px) {
    .blog-header h2 {
        font-size: 1.5rem;
    }

    .blog-post,
    .blog-post-detail {
        padding: 1.5rem;
    }

    .blog-post-detail h1 {
        font-size: 2rem;
    }

    .blog-post-detail .post-content {
        font-size: 1rem;
    }
}