/* books-grid.css - Styles pour la grille de livres */

/* Carte de livre */
.book-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Image de couverture */
.book-card-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Placeholder pour image manquante */
.book-card-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.book-card-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.book-card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #6c757d;
    width: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Corps de la carte */
.book-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
}

.book-card-content {
    flex-grow: 1;
}

/* Titre du livre */
.book-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
    line-height: 1.3;
}

.book-card-title:hover {
    color: var(--bs-primary, #0d6efd);
}

/* Auteur et édition */
.book-card-author {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

/* Description */
.book-card-description {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Stats (nombre de chapitres) */
.book-card-stats {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Actions */
.book-card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.book-card-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Section titre de grille */
.books-grid-title {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 2rem;
    text-align: center;
}

/* Message vide */
.books-grid-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.books-grid-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .book-card-cover,
    .book-card-placeholder {
        max-width: 30%;
        object-fit: cover;
        margin-left: auto;
        margin-right: auto;
    }

    .book-card-cover-placeholder {
        max-width: 100%;
        object-fit: cover;
        margin-left: auto;
        margin-right: auto;
    }
    
    .book-card-title {
        font-size: 1.1rem;
    }
    
    .books-grid-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .book-card-actions .btn {
        min-width: 100px;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .book-card-cover,
    .book-card-placeholder {
        height: 200px;
    }
    
    .book-card-actions {
        flex-direction: column;
    }
    
    .book-card-actions .btn {
        width: 100%;
    }
}
