/* book-landing.css — Isolated styles for /book and /book/toc */

/* Hero */
.book-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: -2rem -1rem 0;
    padding: 4rem 1rem;
}

.book-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    z-index: 0;
}

.book-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.book-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.book-hero .subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.25rem;
}

.book-hero .author {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.book-hero .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.book-hero .price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.book-hero .cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
}

.btn-hero:hover {
    transform: translateY(-1px);
}

.btn-hero-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-hero-primary:hover {
    background: var(--color-primary-hover);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sections */
.book-section {
    max-width: 760px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.book-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.book-section p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Author section */
.author-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 760px;
}

.author-section .quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text);
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

/* TOC Preview (landing page) */
.toc-preview {
    max-width: 760px;
    margin: 3rem auto;
}

.toc-preview .part-group {
    margin-bottom: 1.5rem;
}

.toc-preview .part-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.toc-preview .chapter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-preview .chapter-list li {
    padding: 0.4rem 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.toc-preview .chapter-list li .ch-num {
    color: var(--color-text);
    font-weight: 600;
    margin-right: 0.35rem;
}

.toc-full-link {
    text-align: center;
    margin-top: 1.5rem;
}

.toc-full-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.toc-full-link a:hover {
    text-decoration: underline;
}

/* Social proof / dedication */
.dedication-section {
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem 1rem;
}

.dedication-section blockquote {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* FAQ */
.book-faq {
    max-width: 760px;
    margin: 3rem auto;
}

.book-faq details {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.book-faq summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
}

.book-faq summary:hover {
    background: var(--color-surface-hover);
}

.book-faq details[open] summary {
    border-bottom: 1px solid var(--color-border);
}

.book-faq details p {
    padding: 1rem 1.25rem;
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Bottom CTA */
.book-bottom-cta {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.book-bottom-cta h2 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.book-bottom-cta .cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Full TOC page */
.toc-page {
    max-width: 760px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.toc-page h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.toc-page .toc-intro {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.toc-part {
    margin-bottom: 2.5rem;
}

.toc-part h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 1rem;
}

.toc-chapter {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.toc-chapter:last-child {
    border-bottom: none;
}

.toc-chapter h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.toc-chapter h3 .ch-num {
    color: var(--color-primary);
    margin-right: 0.25rem;
}

.toc-chapter p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .book-hero {
        min-height: 50vh;
        padding: 3rem 1rem;
    }
    .book-hero h1 {
        font-size: 2rem;
    }
    .book-hero .cta-group {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
