/* ===== BOOKS PAGE STYLES ===== */

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.books-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Book Card */
.book-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Book Cover */
.book-cover {
    height: 320px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.book-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.book-card:hover .book-image {
    transform: scale(1.05);
}

/* Book Info */
.book-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.book-type {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.book-isbn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.book-isbn i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.book-isbn span {
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Book Link */
.book-link {
    margin-top: auto;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 8px 0;
}

.book-link:hover {
    color: var(--accent-secondary);
    gap: 12px;
}


/* Back Section */
.back-section {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.back-button:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .book-cover {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .book-cover {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .book-cover {
        height: 250px;
    }
}