﻿
.category-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

    .breadcrumb a {
        color: var(--accent);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

.category-hero {
    background: var(--glass);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

    .category-hero h1 {
        margin: 0 0 1rem 0;
        color: var(--text);
        font-size: 2rem;
    }

.category-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.book-card {
    background: var(--glass);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .book-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.book-cover {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--glass-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .book-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--glass-dark), var(--glass));
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.book-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text);
    line-height: 1.3;
}

.book-author {
    font-size: 1rem;
    color: var(--muted);
    margin: 0 0 1rem 0;
    font-style: italic;
}

.book-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.book-pages,
.book-year {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.book-download {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

    .book-download:hover {
        background: var(--accent-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    }

    .book-download:active {
        transform: translateY(0);
    }

.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    .category-hero {
        padding: 1.5rem;
    }

        .category-hero h1 {
            font-size: 1.5rem;
        }

    .book-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        height: 180px;
    }
}
