/* ========================================================
   SUDHEER KABEER - BOOK LANDING & PDF VIEWER STYLES
======================================================== */

.book-hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(0, 120, 255, 0.15) 0%, transparent 60%),
                linear-gradient(to bottom, #0a0a0a, #111111);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.book-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
}

.book-subtitle {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    font-size: 1.25rem;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(0, 120, 255, 0.1);
    border: 1px solid rgba(0, 120, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

/* 3D Book Mockup Effect */
.book-cover-3d {
    max-height: 480px;
    border-radius: 8px;
    box-shadow: -15px 15px 35px rgba(0, 0, 0, 0.8), 
                0 0 25px rgba(0, 120, 255, 0.2);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.book-cover-3d:hover {
    transform: rotateY(-10deg) scale(1.03);
}

.feature-bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

/* Table of Contents Cards */
.toc-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: 0.3s;
}

.toc-item-card:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 120, 255, 0.05);
    transform: translateY(-2px);
}

/* Purchase Card */
.purchase-card {
    background: linear-gradient(145deg, #161616, #0e0e0e);
    border: 2px solid rgba(0, 120, 255, 0.3);
    border-radius: 24px;
    max-width: 950px;
}

.border-end-lg {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media(max-width: 991px) {
    .border-end-lg { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 30px; }
    .book-title { font-size: 2.6rem; }
}

.qr-img {
    max-width: 200px;
    height: auto;
}

.glow-btn {
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
    border-color: #00c6ff;
    color: #00c6ff;
}

.glow-btn:hover {
    background: #00c6ff;
    color: #000;
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.6);
}

/* ========================================================
   🔥 HEROIC PDF.JS VIEWER MODAL STYLES (MOBILE-OPTIMIZED)
======================================================== */
.pdf-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.pdf-modal.active {
    display: flex;
}

.pdf-modal-dialog {
    background: #0d0d0d;
    width: 100%;
    max-width: 920px;
    height: 94vh;
    border-radius: 16px;
    border: 1px solid rgba(0, 120, 255, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 120, 255, 0.25);
}

.pdf-modal-header {
    padding: 12px 18px;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-modal-footer {
    padding: 12px 18px;
    background: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* സൂം ചെയ്ത ശേഷം മൊബൈലിൽ ഇരുവശങ്ങളിലേക്കും മുകളിലേക്കും സ്വതന്ത്രമായി സ്ക്രോൾ ചെയ്യാൻ */
.pdf-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 10px;
    background: #111111;
    text-align: center;
    position: relative;
    touch-action: pan-x pan-y;
}

/* HD sharp canvas rendering */
#pdfCanvas {
    display: inline-block;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    transition: transform 0.1s ease-out;
}

@media (max-width: 768px) {
    .pdf-modal-dialog {
        height: 98vh;
        border-radius: 8px;
    }
    .pdf-book-title {
        font-size: 0.85rem;
    }
}