/* ============================================================
   SELECT BOOK (BOOK DETAIL) - Libryzo E Library
   Luxury Cosmic Gold & Crimson Design (Matching Home Page)
   ============================================================ */

.select-book-page {
    background-color: var(--color-deep-black, #050508);
    color: var(--color-white, #f5f0e8);
    overflow-x: hidden;
}

/* ==================== HERO SECTION ==================== */
.book-detail-hero {
    position: relative;
    min-height: 85vh;
    padding: 145px 0 85px;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* --- Cover Column --- */
.book-cover-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
}

.book-cover-frame-wrapper {
    position: relative;
    display: inline-block;
    perspective: 1200px;
    margin-bottom: 25px;
}

.book-cover-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 60px rgba(139, 0, 0, 0.35), inset 5px 0 10px rgba(255, 255, 255, 0.12), inset -5px 0 10px rgba(0, 0, 0, 0.5);
    background: #0e0e16;
    transition: var(--transition-smooth, all 0.4s ease);
}

.book-cover-frame:hover {
    transform: translateY(-8px) rotateY(-4deg);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85), 0 0 80px rgba(255, 45, 45, 0.45);
}

.book-cover-img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.book-cover-glow-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 26px;
    border: 2px solid rgba(255, 45, 45, 0.35);
    pointer-events: none;
    animation: glowRingPulse 3.5s ease-in-out infinite;
}

@keyframes glowRingPulse {
    0%, 100% {
        border-color: rgba(255, 45, 45, 0.3);
        box-shadow: 0 0 20px rgba(255, 45, 45, 0.2);
    }
    50% {
        border-color: rgba(240, 215, 140, 0.5);
        box-shadow: 0 0 35px rgba(240, 215, 140, 0.3);
    }
}

.book-cover-floating-badge {
    position: absolute;
    bottom: 20px;
    left: -15px;
    z-index: 10;
    animation: floatSlow 4s ease-in-out infinite;
}

.book-rating-pill {
    background: rgba(15, 15, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 22px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold-light, #f0d78c);
    font-weight: 700;
    font-size: 0.95rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.book-rating-pill span.reviews-count {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 0.85rem;
    margin-left: 4px;
}

/* --- Info Column --- */
.book-hero-info {
    position: relative;
    z-index: 5;
}

.book-hero-title {
    font-family: var(--font-cinzel, serif);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    margin: 12px 0 10px;
    line-height: 1.15;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15), 0 0 60px rgba(139, 0, 0, 0.2);
}

.book-hero-author {
    font-family: var(--font-playfair, serif);
    font-size: 1.35rem;
    color: var(--color-gold-light, #f0d78c);
    margin-bottom: 20px;
    font-style: italic;
}

.book-hero-summary {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 26px;
    max-width: 640px;
}

/* --- Highlight Chips --- */
.book-meta-chips {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.book-meta-chip {
    background: var(--glass-bg, rgba(15, 15, 30, 0.6));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth, all 0.3s ease);
}

.book-meta-chip:hover {
    border-color: rgba(240, 215, 140, 0.3);
    transform: translateY(-2px);
}

.book-meta-chip i {
    color: var(--color-glowing-red, #ff2d2d);
    font-size: 1.15rem;
}

.book-meta-chip span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 600;
}

/* --- Price & Pass Banner --- */
.book-pricing-box {
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.5) 0%, rgba(15, 15, 30, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 26px;
    max-width: 580px;
    backdrop-filter: blur(16px);
}

.book-price-val {
    font-family: var(--font-cinzel, serif);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    background: var(--gradient-gold, linear-gradient(135deg, #d4a853, #f0d78c));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 4px;
}

.book-price-note {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-top: 4px;
}

.book-pass-notice {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gold-light, #f0d78c);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Reading Progress Card --- */
.book-progress-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(139, 0, 0, 0.1));
    border: 1px solid rgba(240, 215, 140, 0.25);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 26px;
    max-width: 580px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.book-progress-bar-bg {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin: 10px 0 8px;
}

.book-progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b0000, #ff2d2d, #f0d78c);
}

/* --- Action Buttons --- */
.book-actions-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.book-actions-row .btn {
    padding: 13px 26px;
    font-size: 0.95rem;
}

.wishlist-btn-active {
    color: #ff4d6d !important;
    border-color: rgba(255, 77, 109, 0.5) !important;
}

.book-unlocked-badge {
    color: var(--color-gold-light, #f0d78c);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 215, 140, 0.1);
    border: 1px solid rgba(240, 215, 140, 0.25);
    padding: 10px 20px;
    border-radius: 30px;
}

.book-purchase-legal-copy {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.82rem;
    max-width: 580px;
    line-height: 1.6;
    margin-top: 14px;
}

.book-purchase-legal-copy a {
    color: var(--color-gold-light, #f0d78c);
    text-decoration: underline;
}

/* ==================== READER & AUDIO SECTION ==================== */
.book-reader-audio-section {
    position: relative;
    padding: var(--section-padding, 90px 0);
    background: transparent;
    overflow: hidden;
}

.reader-glass-card {
    padding: clamp(24px, 3.5vw, 38px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reader-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-formats-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.reader-action-box {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    margin-top: auto;
}

/* --- Listen Block --- */
.listen-block {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.listen-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.listen-title {
    font-family: var(--font-raleway, sans-serif);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listen-title i {
    color: var(--color-gold-light, #f0d78c);
}

/* ==================== ABOUT & DETAILS SECTION ==================== */
.book-about-section {
    position: relative;
    padding: var(--section-padding, 90px 0);
    background: transparent;
}

.book-description-card {
    padding: clamp(24px, 3.5vw, 38px);
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.9;
}

.book-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.book-details-list li:last-child {
    border-bottom: none;
}

.book-details-list .detail-label {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-details-list .detail-label i {
    color: var(--color-gold-light, #f0d78c);
}

.book-details-list .detail-value {
    color: #fff;
    font-weight: 600;
    text-align: right;
}

/* ==================== REVIEWS SECTION ==================== */
.book-reviews-section {
    position: relative;
    padding: var(--section-padding, 90px 0);
    background: transparent;
}

.review-form-card {
    padding: clamp(24px, 4vw, 42px);
    margin-bottom: 40px;
}

.review-input-field {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 10, 18, 0.65);
    color: #fff;
    font-family: var(--font-inter, sans-serif);
    transition: var(--transition-smooth, all 0.3s ease);
}

.review-input-field:focus {
    outline: none;
    border-color: var(--color-gold-light, #f0d78c);
    box-shadow: 0 0 20px rgba(240, 215, 140, 0.2);
}

.review-card-item {
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b0000, #3d0510);
    border: 1px solid rgba(240, 215, 140, 0.3);
    color: var(--color-gold-light, #f0d78c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.review-stars {
    color: var(--color-gold-light, #f0d78c);
    font-size: 0.95rem;
}

.review-quote {
    color: rgba(255, 255, 255, 0.74);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 16px;
    flex: 1;
}

.review-author-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .book-detail-hero {
        padding-top: 120px;
        text-align: center;
    }

    .book-hero-summary {
        margin-left: auto;
        margin-right: auto;
    }

    .book-meta-chips {
        justify-content: center;
    }

    .book-pricing-box,
    .book-progress-card {
        margin-left: auto;
        margin-right: auto;
    }

    .book-actions-row {
        justify-content: center;
    }

    .book-purchase-legal-copy {
        margin-left: auto;
        margin-right: auto;
    }
}
