/* styles for the completed books page */

.completed-books-container {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 15px;
}

.completed-books-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.book-list {
    display: grid;
    gap: 20px;
}

.book-item {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
}

.book-cover {
    width: 100px;
    height: 150px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 0.9em;
    text-align: center;
}

.book-info {
    flex-grow: 1;
}

.book-title {
    margin-top: 0;
    margin-bottom: 5px;
    color: #0056b3;
    font-size: 1.3em;
}

.book-author {
    margin-top: 0;
    margin-bottom: 10px;
    color: #555;
    font-size: 1em;
    font-style: italic;
}

.book-description {
    margin-top: 0;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

.book-date {
    margin-top: 10px;
    margin-bottom: 0;
    color: #888;
    font-size: 0.85em;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .book-item {
        flex-direction: column;
        align-items: center;
    }

    .book-cover {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .book-info {
        text-align: center;
    }

    .book-date {
        text-align: center;
    }
}