/* Scrollable rounded container */
.trending-books-container {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    margin-top: 20px;

    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--secondary-bg);
}

/* Grid layout for books */
.trending-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding-right: 10px;
}

.trending-app-container {

    margin: 30px;

}

/* Book card design */
.trending-book-card {
    background: var(--background-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trending-book-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

/* Book details */
.trending-book-cover {
    width: 100px;
    height: 140px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 10px;
}

.trending-book-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.trending-book-author {
    font-size: 0.85rem;
    color: var(--text-color-secondary);
    margin-top: 4px;
    font-style: italic;
}

.trending-book-stats {
    display: block;
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--link-color);
    font-weight: 500;
}

.trending-page-subtitle {
    font-size: 1.2rem;
    color: var(--text-color-secondary);
    margin-top: 5px;
    text-align: center;
    font-style: italic;
    position: relative;
    padding-bottom: 10px;
}

.trending-page-subtitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--link-color);
    border-radius: 2px;
}
