/* blog/static/blog/css/blog.css */
/* СБРОС ВСЕХ СТИЛЕЙ ДЛЯ ФИЛЬТРОВ */
.blog-body .filters,
body .filters,
.filters {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    background: #2a2a2a !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    border: 1px solid #444 !important;
    font-family: Arial, sans-serif !important;
}

.blog-body .filters span,
body .filters span,
.filters span {
    all: initial !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    font-family: Arial, sans-serif !important;
}

.blog-body .filters a,
body .filters a,
.filters a {
    all: initial !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    background: #333 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    border: 2px solid #555 !important;
    font-weight: 500 !important;
    font-family: Arial, sans-serif !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.blog-body .filters a.active,
body .filters a.active,
.filters a.active {
    background: #444 !important;
    border-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1) !important;
}

.blog-body .filters a:hover,
body .filters a:hover,
.filters a:hover {
    background: #444 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Остальные стили блога */
.blog-body {
    background: #000000 !important;
    color: #ffffff !important;
    font-family: 'Arial', sans-serif !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ФИОЛЕТОВЫЕ ЗАГОЛОВКИ */
.posts-section h1,
.blog-post-detail h1,
.type-posts-page h1,
.top-detail h1 {
    color: #6A0DAD !important;
    border-bottom: 2px solid #6A0DAD !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
    font-size: 2rem !important;
}

.widget-title {
    color: #ffffff !important;
    border-bottom: 1px solid #333 !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    font-size: 1.2rem !important;
}

/* Остальные стили... */
.blog-header {
    background: #1a1a1a;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.blog-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-header h1 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

.blog-nav {
    display: flex;
    gap: 25px;
}

.blog-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.blog-nav a:hover {
    background: #ffffff;
    color: #000000;
}

.blog-main {
    min-height: 80vh;
    padding: 40px 0;
}

.blog-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: #666;
    box-shadow: 0 8px 25px rgba(255,255,255,0.05);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-card h3 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #e0e0e0;
    flex-wrap: wrap;
}

.post-meta .category {
    background: #444;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-excerpt {
    color: #d0d0d0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: #333;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid #ffffff;
}

.read-more:hover {
    background: #ffffff;
    color: #000000;
}

.blog-sidebar {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #444;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.categories-list,
.popular-posts-list,
.recent-posts-list,
.post-types-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li,
.popular-posts-list li,
.recent-posts-list li,
.post-types-list li {
    margin-bottom: 10px;
}

.categories-list a,
.popular-posts-list a,
.recent-posts-list a,
.post-types-list a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.categories-list a:hover,
.popular-posts-list a:hover,
.recent-posts-list a:hover,
.post-types-list a:hover {
    background: #333;
    border-color: #555;
}

.post-count,
.views,
.post-date {
    color: #b0b0b0;
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    background: #333;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #555;
    font-weight: 500;
}

.tag-cloud-item:hover {
    background: #444;
    border-color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 18px;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: #333;
    border-color: #666;
}

.pagination .current {
    background: #333;
    border-color: #666;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
}

.empty-state h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.blog-footer {
    background: #1a1a1a;
    padding: 30px 0;
    border-top: 1px solid #333;
    text-align: center;
}

.blog-footer p {
    color: #b0b0b0;
    margin: 0;
}

@media (max-width: 768px) {
    .blog-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .filters {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .filters span {
        text-align: center !important;
    }
}