/* ===== Book Promotion Page Styles ===== */

.book-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* Hero: cover + info side by side */
.book-hero {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.book-cover {
    flex-shrink: 0;
    width: 280px;
}

.book-cover img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(20, 20, 42, 0.12);
}

.book-cover-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, var(--color-surface-alt), var(--color-border));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.book-info {
    flex: 1;
}

.book-info h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 8px;
    line-height: 1.2;
}

.book-author {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.book-genre {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.book-blurb {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 32px;
    white-space: pre-line;
}

.book-buy-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--color-navy);
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.book-buy-btn:hover {
    background: var(--color-primary-dim);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 20, 42, 0.15);
}

/* Excerpt section */
.book-excerpt {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

.book-excerpt h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.book-excerpt-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
    white-space: pre-line;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 16px;
}

/* Series section */
.book-series {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

.book-series h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.series-books {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.series-book-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 240px;
}

.series-book-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(20, 20, 42, 0.08);
    transform: translateY(-2px);
}

.series-book-card.current {
    border-color: var(--color-primary);
    background: rgba(154, 123, 45, 0.04);
}

.series-book-thumb {
    width: 60px;
    flex-shrink: 0;
}

.series-book-thumb img {
    width: 100%;
    border-radius: 4px;
}

.series-book-num {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.series-book-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
}

.series-book-status {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Author bio section */
.book-author-bio {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

.book-author-bio h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.author-bio-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
}

@media (max-width: 640px) {
    .series-books {
        flex-direction: column;
    }
    .author-bio-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Powered by footer */
.book-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.book-footer a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 400;
}

.book-footer a:hover {
    color: var(--color-primary);
}

/* Loading / not found states */
.book-loading,
.book-not-found {
    text-align: center;
    padding: 120px 24px;
    color: var(--color-text-muted);
}

.book-not-found h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 640px) {
    .book-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }
    .book-cover {
        width: 200px;
    }
    .book-info {
        text-align: center;
    }
}
