/* Скрытие канваса частиц */
#anton-particle-canvas {
    display: none;
}

/* Секция категорий */
.site-category {
    padding: clamp(80px, 5vw, 100px) 0;
    background-color: #0A0A0F; /* Основной тёмный фон */
    color: #E6E6E6; /* Светло-серый текст */
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.category-header {
    text-align: center;
    margin-bottom: 60px;
}

.category-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    color: #FFFFFF; /* Белый для заголовков */
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.category-title:hover {
    color: #D1FE6A; /* Неоновый лаймовый при наведении */
}

.category-description {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 18px;
    color: #E6E6E6; /* Светло-серый */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.category-post {
    background: #1A1A1A; /* Фон карточек */
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(5px); /* Стеклянный эффект */
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.category-post:hover {
    transform: translateY(-5px); /* Только подъём, без свечения */
}

.category-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.5s ease;
}

.category-post:hover .category-post-thumbnail img {
    transform: scale(1.03);
}

.category-post-content {
    padding: 20px;
}

.category-post-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
}

.category-post-title a {
    color: #FFFFFF; /* Белый для заголовков */
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-post-title a:hover {
    color: #D1FE6A; /* Неоновый лаймовый при наведении */
}

.category-post-excerpt {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 18px;
    color: #E6E6E6; /* Светло-серый */
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-post-read-more {
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        #D1FE6A 0%, /* Неоновый лаймовый */
        #F6EB61 100% /* Мягкий жёлтый */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Для читаемости градиента */
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.category-post-read-more:hover {
    color: #F6EB61; /* Однотонный жёлтый для читаемости */
    text-shadow: none; /* Убираем тень при наведении */
}

.category-no-posts {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 18px;
    color: #E6E6E6; /* Светло-серый */
    text-align: center;
}

.category-pagination {
    margin-top: 60px;
    text-align: center;
}

.category-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}

.category-pagination a,
.category-pagination span {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    color: #B3B3B3; /* Серый */
    background: rgba(26, 26, 34, 0.9);
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid rgba(209, 254, 106, 0.15); /* Неоновая лаймовая рамка */
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.category-pagination a:hover {
    background: linear-gradient(
        135deg,
        #D1FE6A 0%, /* Неоновый лаймовый */
        #F6EB61 100% /* Мягкий жёлтый */
    );
    color: #0A0A0F;
    transform: translateY(-2px);
}

.category-pagination .current {
    background: linear-gradient(
        135deg,
        #D1FE6A 0%, /* Неоновый лаймовый */
        #F6EB61 100% /* Мягкий жёлтый */
    );
    color: #0A0A0F;
    border: 1px solid rgba(209, 254, 106, 0.3);
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .category-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-category {
        padding: 60px 0;
    }
    .category-title {
        font-size: clamp(28px, 4vw, 36px);
    }
    .category-description {
        font-size: 16px;
    }
    .category-posts-grid {
        grid-template-columns: 1fr;
    }
    .category-post {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .site-category {
        padding: 40px 0;
    }
    .category-title {
        font-size: clamp(24px, 3.5vw, 32px);
    }
    .category-post-title {
        font-size: 20px;
    }
    .category-post-excerpt {
        font-size: 16px;
    }
    .category-post-read-more {
        font-size: 14px;
    }
    .category-pagination a,
    .category-pagination span {
        font-size: 16px;
        padding: 8px 12px;
    }
}