/* ===== BOOK DETAIL PAGE STYLES ===== */

.book-detail-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin: 0 auto 3rem;
    max-width: 1400px;
    padding: 0 2rem;
}

.book-detail-cover {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.book-detail-cover img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 107, 107, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.book-detail-cover img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(255, 107, 107, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.book-detail-info {
    animation: fadeInUp 0.8s ease-out;
}

.book-synopsis {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(26, 26, 46, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.book-synopsis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        var(--accent-light) 50%, 
        var(--accent-color) 100%);
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
}

.book-synopsis h2 {
    font-family: 'Kalnia Glaze', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    letter-spacing: 1px;
}

.book-synopsis p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.book-synopsis p:last-child {
    margin-bottom: 0;
}

.book-reviews {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(26, 26, 46, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid rgba(233, 69, 96, 0.3);
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.15);
    position: relative;
}

.book-reviews::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 8rem;
    font-family: 'Playfair Display', serif;
    color: rgba(78, 205, 196, 0.15);
    line-height: 1;
    pointer-events: none;
}

.book-reviews h3 {
    font-family: 'Kalnia Glaze', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.book-reviews blockquote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.8rem;
    line-height: 1.8;
    font-size: 1.1rem;
    padding-left: 1.5rem;
    border-left: 3px solid rgba(78, 205, 196, 0.5);
    position: relative;
    z-index: 1;
}

.book-reviews blockquote em {
    color: var(--accent-light);
    font-weight: 600;
    font-style: normal;
}

.book-reviews blockquote:last-child {
    margin-bottom: 0;
}

/* ===== PURCHASE OPTIONS ===== */
.purchase-options {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(26, 26, 46, 0.8) 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(233, 69, 96, 0.4);
    box-shadow: 
        0 20px 60px rgba(233, 69, 96, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.purchase-options::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.purchase-options h2 {
    font-family: 'Kalnia Glaze', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 2.5rem;
    text-align: center;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    position: relative;
    z-index: 1;
}

.purchase-options h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.purchase-options h3:first-of-type {
    margin-top: 0;
}

.purchase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ebook-purchase {
    margin-bottom: 2rem;
}

.purchase-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.7) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(233, 69, 96, 0.3);
    border-color: rgba(233, 69, 96, 0.5);
}

.purchase-card h3 {
    font-family: 'Kalnia Glaze', serif;
    color: var(--accent-light);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-light);
    margin: 1rem 0;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    font-family: 'Playfair Display', serif;
}

.format {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.delivery-info {
    color: rgba(78, 205, 196, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
    font-style: italic;
    font-weight: 500;
}

.stripe-btn {
    background: linear-gradient(135deg, #635BFF 0%, #7A73FF 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 20px rgba(99, 91, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 100%;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.stripe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.stripe-btn:hover::before {
    left: 100%;
}

.stripe-btn:hover {
    background: linear-gradient(135deg, #7A73FF 0%, #9D97FF 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(99, 91, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stripe-btn:active {
    transform: translateY(-1px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .book-detail-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .book-detail-cover {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .book-synopsis, .book-reviews {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .purchase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .purchase-options h2 {
        font-size: 2rem;
    }
    
    .book-synopsis h2 {
        font-size: 1.8rem;
    }
    
    .book-reviews h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .book-detail-container {
        padding: 0 1rem;
    }
    
    .book-synopsis, .book-reviews {
        padding: 1.5rem;
    }
    
    .purchase-options {
        padding: 1.5rem;
    }
    
    .purchase-options h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .purchase-card {
        padding: 2rem 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .stripe-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}