.book-hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../book-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    padding: 2rem;
}

.book-content {
    width: 100%;
    padding: 0;
    background: #1a0f14;
    color: #e6d0d8;
}

.book-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #2a1720, #1a0f14);
    padding: 6rem 4rem 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.book-cover-large {
    position: relative;
    max-width: 400px;
}

.book-cover-large img {
    width: 100%;
    box-shadow: 0 20px 40px rgba(102, 0, 51, 0.8);
    border-radius: 10px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.book-cover-large img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.moon-overlay {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: url('../images/icons/moon.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 0 20px #FFA07A;
    animation: glow 2s infinite alternate;
}

.book-details {
    text-align: left;
}

.book-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 3rem;
    color: #ff3377;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 51, 119, 0.3);
}

.book-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: #ff99cc;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 0, 51, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.synopsis {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #e6d0d8;
}

.spice-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.flame {
    color: #ff3377;
    text-shadow: 0 0 10px rgba(255, 51, 119, 0.5);
}

.content-warnings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(102, 0, 51, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 51, 119, 0.2);
}

.warning-section,
.tropes-section {
    text-align: left;
}

.warning-section h4,
.tropes-section h4 {
    color: #ff99cc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.warning-section p,
.tropes-section p {
    font-size: 0.9rem;
    color: #e6d0d8;
    margin: 0;
}

.purchase-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.purchase-btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.purchase-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: 0.5s;
}

.purchase-btn:hover::before {
    left: 100%;
}

.kindle {
    background: linear-gradient(135deg, #ff6600, #ff9900);
    color: #1a0f14;
}

.paperback {
    background: linear-gradient(135deg, #660033, #B30059);
    color: #e6d0d8;
}

.character-section {
    background: #2a1720;
    padding: 4rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.character-card {
    background: linear-gradient(135deg, #3a2530, #2a1720);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 51, 119, 0.1);
    color: #e6d0d8;
}

.character-card h3 {
    color: #ff3377;
    margin-bottom: 1rem;
}

.character-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.character-details li + li {
    margin-top: 0.25rem;
}

.playlist-section {
    text-align: center;
    margin-bottom: 4rem;
    background: #2a1720;
    padding: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.playlist-embed {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.preview-chapter {
    background: linear-gradient(135deg, #2a1720, #1a0f14);
    padding: 4rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 51, 119, 0.1);
}

.chapter-content {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #e6d0d8;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px #ff3377;
    }
    to {
        box-shadow: 0 0 40px #ff3377;
    }
}

@media (max-width: 768px) {
    .book-intro {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 1.5rem 2rem;
        gap: 2rem;
    }

    .book-cover-large {
        margin: 0 auto;
        max-width: 300px;
    }

    .book-title {
        font-size: 2rem;
    }

    .book-details {
        text-align: center;
    }

    .book-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .meta-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .synopsis {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }

    .spice-level {
        justify-content: center;
        font-size: 0.95rem;
    }

    .purchase-options {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .purchase-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .content-warnings {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }

    .warning-section h4,
    .tropes-section h4 {
        justify-content: flex-start;
    }

    .character-section,
    .playlist-section,
    .preview-chapter {
        padding: 2rem 1.5rem;
    }

    .character-section h2,
    .playlist-section h2,
    .preview-chapter h2 {
        font-size: 1.75rem;
    }

    .character-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .character-card {
        padding: 1.5rem;
    }

    .chapter-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .book-intro {
        padding: 3rem 1rem 1.5rem;
        gap: 1.5rem;
    }

    .book-cover-large {
        max-width: 250px;
    }

    .book-title {
        font-size: 1.75rem;
    }

    .book-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .meta-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .synopsis {
        font-size: 0.95rem;
    }

    .spice-level {
        font-size: 0.85rem;
    }

    .content-warnings {
        padding: 1rem;
    }

    .purchase-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .character-section,
    .playlist-section,
    .preview-chapter {
        padding: 1.5rem 1rem;
    }

    .character-card {
        padding: 1.25rem;
    }

    .character-card h3 {
        font-size: 1.25rem;
    }

    .character-details {
        font-size: 0.9rem;
    }

    .chapter-content {
        font-size: 0.95rem;
    }
}
