/* ========================================
   RASTI - Books Showcase Page
   ======================================== */

.books-showcase {
    min-height: calc(100vh - var(--navbar-height));
    padding: calc(var(--navbar-height) + 2rem) 0 4rem 0;
    background: var(--gray-50);
    margin-bottom: 0;
}

/* Header */
.books-header {
    text-align: center;
    margin-bottom: 3rem;
}

.books-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.books-header .section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Books Grid - 3 columns */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Book Card Container */
.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* 3D Book Effect - Flexible size with subtle shadow */
.book-3d {
    position: relative;
    max-width: 280px;
    transition: all 0.3s ease;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Hover effect - only on devices with pointer (mouse) */
@media (hover: hover) {
    .book-card:hover .book-3d {
        transform: translateY(-3px);
        border-color: var(--primary);
    }

    .book-card:hover .book-card-title {
        color: var(--primary);
    }
}

/* Glow Effect - Radial gradient that follows cursor */
.book-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background-image: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, -20%),
            #ffffff99 0%,
            #ffffff33 30%,
            #0000001f 80%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-3d::after {
    opacity: 1;
}

/* Book Cover Image */
.book-cover-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Book Card Title - Below the book */
.book-card-title {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: center;
    max-width: 200px;
    line-height: 1.4;
    font-family: var(--font-sans);
    transition: color 0.3s ease;
}

/* CTA Section */
.books-cta {
    text-align: center;
    padding-top: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .book-3d {
        max-width: 220px;
    }
}

@media (max-width: 600px) {
    .books-showcase {
        padding: calc(var(--navbar-height) + 1rem) 0 2rem 0;
    }

    .books-header .section-title {
        font-size: 1.75rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .book-3d {
        max-width: 100%;
    }

    .book-card-title {
        font-size: 0.85rem;
        margin-top: 0.75rem;
        max-width: 100%;
    }
}