/* Book Cover & Card Styles */
.book-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.book-cover-wrapper {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #1a1a2e;
}

.book-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Dynamic text cover fallback */
.book-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1rem 1rem 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    position: relative;
}

.book-cover-fallback .fallback-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-cover-fallback .fallback-author {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-card:hover .book-cover-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.3);
}

.book-card:hover .book-cover-img {
    transform: scale(1.05);
}

/* Badge styling */
.premium-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CSS Gradients for default covers */
.bg-grad-1 { background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%); }
.bg-grad-2 { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.bg-grad-3 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.bg-grad-4 { background: linear-gradient(135deg, #cc208e 0%, #6713d2 100%); }
.bg-grad-5 { background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%); }

/* Hide pagination showing text & center buttons */
.pagination-wrapper nav .d-none.d-md-block {
    display: none !important;
}
.pagination-wrapper nav {
    justify-content: center !important;
}

/* Custom Premium Pagination Styling */
.pagination-custom .page-link {
    background: var(--card-bg, rgba(255, 255, 255, 0.05)) !important;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1)) !important;
    color: var(--text-main, #f7fafc) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px !important;
    transition: all 0.25s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 40px;
}
.pagination-custom .page-link:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}
.pagination-custom .page-item.disabled .page-link {
    background: rgba(128, 128, 128, 0.05) !important;
    border-color: var(--glass-border, rgba(255, 255, 255, 0.05)) !important;
    color: var(--text-muted, rgba(255, 255, 255, 0.3)) !important;
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.pagination-custom .active-info span {
    border-radius: 8px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    border: none;
}
