/* Frontend styles for Display Books */

.display-books-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 20px 0;
}

.book-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.book-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.book-cover img {
    max-width: 120px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.book-details {
    flex: 1;
}

.book-header {
    margin-bottom: 10px;
}

.book-title {
    margin: 0 0 2px 0 !important;
    font-size: 1.4em;
}

.book-author {
    margin: 0 0 2px;
    font-style: italic;
    color: #555;
}

.book-meta {
    font-size: 0.9em;
    color: #777;
    margin: 0 0 2px;
}

.book-publisher,
.book-year {
    display: inline;
}

.book-isbn {
    font-size: 0.9em;
    color: #777;
    margin: 0 0 8px;
}

.book-summary {
    font-size: 0.9em;
    line-height: 1.6;
}

.book-of-quarter-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.book-of-quarter-tag {
    display: inline-block !important;
    background: #9d3228 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    line-height: 1 !important;
}

@media (max-width: 768px) {
    .book-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .book-header {
        margin-bottom: 0;
    }

    .book-title {
        padding-right: 0 !important;
        font-size: 1.2em;
    }

    .book-of-quarter-tag {
    }
    
    .book-cover {
        align-self: center;
        margin-bottom: 15px;
    }

    .book-details {
        width: 100%;
    }

    .book-summary {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-out;
        padding-top: 0;
        margin-top: 0;
    }
    
    .book-summary.expanded {
        max-height: 1000px;
        margin-top: 10px;
        transition: max-height 0.5s ease-in;
    }
    
    .toggle-description {
        display: inline-block;
        margin-top: 10px;
        font-size: 0.9em;
        font-weight: bold;
        text-decoration: none;
        color: #9d3728;
    }
}
