﻿.categories-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-row {
    width: 100%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.category-header {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    margin: 0;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

    .category-link:hover {
        background-color: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        color: #fff;
    }

.category-content {
    padding: 1.5rem;
}

.category-books-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.category-book {
    transition: transform 0.2s ease;
}

    .category-book:hover {
        transform: translateY(-8px);
    }

.empty-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: rgba(0, 180, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    min-height: 180px;
}

.empty-category-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 180, 255, 0.1);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .category-books-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-books-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .category-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .category-header {
        padding: 1rem 1.2rem;
    }

    .category-content {
        padding: 1.2rem 1rem;
    }
}

@media (max-width: 480px) {
    .category-books-row {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }

    .category-book {
        display: flex;
        justify-content: center;
    }
}
