/* ===== СТРАНИЦА КАТЕГОРИЙ В СТИЛЕ ПОРТФОЛИО 2025 ===== */
.site-category {
    min-height: 100vh;
}

.category-content {
    position: relative;
    padding: 80px 0;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок категории */
.category-header {
    text-align: left;
    margin-bottom: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
    font-weight: 800;
    color: #E6E6E6;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: left;
}

.category-description {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.3rem;
    color: #B0B0B0;
    max-width: 800px;
    line-height: 1.6;
    text-align: left;
}

/* Сетка статей */
.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.category-post {
    background: #1A1A1A;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: postAppear 0.6s ease forwards;
}

@keyframes postAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-post:hover {
    transform: translateY(-8px);
    border-color: rgba(107, 142, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Изображение статьи */
.category-post-thumbnail {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #0A0A0F;
}

.category-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.category-post:hover .category-post-thumbnail img {
    transform: scale(1.08);
}

/* Заглушка для изображения */
.category-post-thumbnail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2A2A2A;
    color: #666;
    text-align: center;
}

.category-post-thumbnail-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.category-post-thumbnail-placeholder span {
    font-size: 0.9rem;
    font-family: 'Source Sans 3', sans-serif;
}

/* Наложение на изображение */
.category-post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.category-post:hover .category-post-thumbnail::after {
    opacity: 0.8;
}

/* Контент статьи */
.category-post-content {
    padding: 2.5rem;
    position: relative;
    text-align: left;
}

.category-post-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #E6E6E6;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-align: left;
}

.category-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-post:hover .category-post-title a {
    color: #77E6FF;
}

.category-post-excerpt {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: #B0B0B0;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
} 

/* Кнопка "Читать далее" */
.category-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #77E6FF;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(107, 196, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-post-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(4, 6, 7, 0.1), transparent);
    transition: left 0.6s ease;
}

.category-post-read-more:hover {
    background: rgba(107, 196, 255, 0.1);
    border-color: rgba(107, 171, 255, 0.6);
    transform: translateX(8px);
    color: #77E6FF;
}

.category-post-read-more:hover::before {
    left: 100%;
}

/* Сообщение "нет статей" */
.category-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.25rem;
    color: #B0B0B0;
    font-family: 'Source Sans 3', sans-serif;
}

.category-no-posts i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.category-no-posts h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #E6E6E6;
}

.category-no-posts p {
    font-size: 1rem;
    opacity: 0.7;
}

/* Пагинация */
.category-pagination {
    margin-top: 4rem;
    text-align: center;
}

.category-pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #B0B0B0;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-pagination .page-numbers:hover {
    background: rgba(107, 196, 255, 0.1);
    color: #77E6FF;
    border-color: rgba(107, 208, 255, 0.3);
}

.category-pagination .page-numbers.current {
    background: rgba(107, 208, 255, 0.15);
    color: #77E6FF;
    border-color: rgba(107, 225, 255, 0.3);
}

/* Анимации появления */
.category-post:nth-child(1) { animation-delay: 0.1s; }
.category-post:nth-child(2) { animation-delay: 0.2s; }
.category-post:nth-child(3) { animation-delay: 0.3s; }
.category-post:nth-child(4) { animation-delay: 0.4s; }
.category-post:nth-child(5) { animation-delay: 0.5s; }
.category-post:nth-child(6) { animation-delay: 0.6s; }

/* Адаптивность */
@media (max-width: 1200px) {
    .category-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .category-content {
        padding: 4rem 0;
    }
    
    .category-container {
        padding: 0 1rem;
    }
    
    .category-header {
        margin-bottom: 3rem;
        padding: 2rem 0;
        text-align: center;
    }
    
    .category-title {
        text-align: center;
    }
    
    .category-description {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-post-content {
        padding: 2rem;
    }
    
    .category-post-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .category-content {
        padding: 3rem 0;
    }
    
    .category-container {
        padding: 0 0.75rem;
    }
    
    .category-posts-grid {
        gap: 1.25rem;
    }
    
    .category-post-content {
        padding: 1.5rem;
    }
    
    .category-post-title {
        font-size: 1.2rem;
    }
    
    .category-post-excerpt {
        font-size: 0.9rem;
    }
}

/* Поддержка Font Awesome */
.category-post-read-more i,
.category-pagination i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.category-post-read-more:hover i {
    transform: translateX(3px);
}