/* Books List Page Styles */

/* Books List Container */
.bookslist-container {
    background: #000000;
    min-height: calc(100vh - 140px); /* Adjust based on header and footer height */
}

.bookslist-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px 15px;
}

/* Book Item Style */
.book-list-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.book-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

/* Book Cover */
.book-list-cover-wrapper {
    flex-shrink: 0;
}

.book-list-cover {
    width: 100px;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 6px;
}

/* Book Info */
.book-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
}

.book-list-title {
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 5px;
    line-height: 1.3;
}

.book-list-author {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.book-list-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-list-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.book-list-category,
.book-list-score {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.book-list-score {
    color: #FFD700;
    font-weight: bold;
}

/* Placeholder Styles */
.book-placeholder {
    background: rgba(255, 255, 255, 0.05);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.book-placeholder-cover {
    width: 100px;
    height: auto;
    aspect-ratio: 2/3;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.book-placeholder-title {
    width: 60%;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0;
}

.book-placeholder-author {
    width: 40%;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 8px 0;
}

.book-placeholder-description {
    width: 90%;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 0 8px;
}

.book-placeholder-meta-item {
    width: 80px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-list-item {
        gap: 12px;
        padding: 8px;
    }
    
    .book-list-cover,
    .book-placeholder-cover {
        width: 80px;
    }
    
    .book-list-title {
        font-size: 15px;
    }
    
    .book-list-author {
        font-size: 12px;
    }
    
    .book-list-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .book-list-score {
        font-size: 13px;
    }
    
    .book-placeholder-title {
        height: 16px;
    }
    
    .book-placeholder-author {
        height: 12px;
    }
    
    .book-placeholder-description {
        height: 32px;
    }
    
    .book-placeholder-score {
        height: 14px;
    }
}

@media (max-width: 400px) {
    .book-list-item {
        gap: 10px;
        padding: 6px;
    }
    
    .book-list-cover,
    .book-placeholder-cover {
        width: 70px;
    }
    
    .book-list-title {
        font-size: 14px;
    }
    
    .book-list-author {
        font-size: 11px;
    }
    
    .book-list-description {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }
    
    .book-list-score {
        font-size: 12px;
    }
    
    .book-placeholder-title {
        height: 15px;
    }
    
    .book-placeholder-author {
        height: 11px;
    }
    
    .book-placeholder-description {
        height: 28px;
    }
    
    .book-placeholder-score {
        height: 13px;
    }
}