/* Book Blog Page Styles */

/* Override base.css scroll-blocking for scrollable content pages */
html:has(body.book-blog-page) {
    touch-action: auto;
    overflow-x: hidden;
}

body.book-blog-page {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    touch-action: auto;
    overscroll-behavior: auto;
}

/* Breadcrumbs */
.book-blog-breadcrumbs {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
    font-size: 0.85rem;
    color: #888;
}

.book-blog-breadcrumbs a {
    color: #3C4BFB;
    text-decoration: none;
}

.book-blog-breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 0.4rem;
    color: #ccc;
}

/* Hero */
.book-blog-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.book-blog-hero-content {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.book-blog-cover {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-blog-cover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, #D4B9FB80 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(30px);
}

.book-blog-cover-img {
    width: 200px;
    height: auto;
    border-radius: 16px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.15);
}

.book-blog-info {
    flex: 1;
}

.book-blog-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.book-blog-author {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.book-blog-why-read {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 600;
}

.book-blog-summary {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.book-blog-listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3C4BFB 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(60, 75, 251, 0.35);
    font-family: inherit;
    text-decoration: none;
}

.book-blog-listen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 75, 251, 0.45);
}

/* Mini Player inside cover */
.book-blog-cover .mini-player {
    width: 100%;
    max-width: 240px;
    margin-top: 1rem;
}

/* Dialogue Description */
.book-blog-dialogue-description {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.book-blog-dialogue-description p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    text-align: center;
}

/* Theme Sections */
.book-blog-themes {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.book-blog-themes-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

.theme-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.theme-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.theme-header:hover {
    background-color: #f9f9f9;
}

.theme-header-text {
    flex: 1;
}

.theme-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.35rem;
}

.theme-explanation {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.theme-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #888;
    transition: transform 0.3s;
}

.theme-section.collapsed .theme-toggle {
    transform: rotate(-90deg);
}

.theme-concepts {
    padding: 0 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-section.collapsed .theme-concepts {
    display: none;
}

/* Concept Cards */
.concept-card {
    display: flex;
    gap: 1.25rem;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    align-items: flex-start;
    transition: transform 0.2s;
}

.concept-card:hover {
    transform: translateX(4px);
}

.concept-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3C4BFB;
    opacity: 0.6;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    line-height: 1.3;
}

.concept-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.concept-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.concept-content p:last-child {
    margin-bottom: 0;
}

.concept-insight {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.concept-insight:last-child {
    margin-bottom: 0;
}

.concept-insight-learnable {
    background: rgba(60, 75, 251, 0.06);
    border-left: 3px solid #3C4BFB;
}

.concept-insight-actionable {
    background: rgba(76, 175, 80, 0.06);
    border-left: 3px solid #4CAF50;
}

.concept-insight-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 80px;
}

.concept-insight-learnable .concept-insight-label {
    color: #3C4BFB;
}

.concept-insight-actionable .concept-insight-label {
    color: #2e7d32;
}

.concept-insight-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

/* Content Gate */
.theme-gate-wrapper {
    position: relative;
    max-height: 550px;
    overflow: hidden;
}

.theme-gate-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none;
    z-index: 1;
}

.theme-gate-wrapper .theme-section {
    overflow: visible;
}

.theme-gate-wrapper.gate-unlocked {
    max-height: none;
    overflow: visible;
}

.theme-gate-wrapper.gate-unlocked::after {
    display: none;
}

.content-gate-cta-section {
    text-align: center;
    padding: 2.5rem 2rem 2.5rem;
    position: relative;
    z-index: 2;
    margin-top: -120px;
    background: linear-gradient(145deg, #1a1a2e 0%, #1e2340 50%, #1a1a2e 100%);
    border-radius: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(60, 75, 251, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(60, 75, 251, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.content-gate-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(60, 75, 251, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(212, 185, 251, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.content-gate-cta-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    position: relative;
}

.content-gate-cta-section p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
}

.content-gate-btn {
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(60, 75, 251, 0.4);
}

.content-gate-login-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    margin-bottom: 0;
    position: relative;
}

.content-gate-login-text a {
    color: #99a5ff;
    text-decoration: none;
    font-weight: 600;
}

.content-gate-login-text a:hover {
    text-decoration: underline;
    color: #b3bcff;
}

.theme-gated {
    display: none;
}

.content-gate-cta-hidden {
    display: none;
}

.theme-gated.theme-unlocked {
    display: block;
}

/* CTA Section */
.book-blog-cta {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at top left, #C5E67380 0%, transparent 40%),
        radial-gradient(circle at bottom right, #D4B9FB80 0%, transparent 50%);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.book-blog-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.book-blog-cta p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .book-blog-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .book-blog-cover-img {
        width: 160px;
    }

    .book-blog-title {
        font-size: 1.5rem;
    }

    .book-blog-listen-btn {
        width: 100%;
        justify-content: center;
    }

    .theme-header {
        padding: 1.25rem 1.5rem;
    }

    .theme-concepts {
        padding: 0 1.5rem 1.25rem;
    }

    .concept-card {
        padding: 1.25rem;
    }

    .concept-insight {
        flex-direction: column;
        gap: 0.25rem;
    }

    .book-blog-themes-title {
        font-size: 1.35rem;
    }

    .book-blog-cta {
        padding: 2rem 1.5rem;
        margin: 0 1rem 3rem;
    }

    .book-blog-cta h2 {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .book-blog-title {
        font-size: 2.25rem;
    }

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

@media (min-width: 1024px) {
    .book-blog-cover-img {
        width: 240px;
    }

    .book-blog-title {
        font-size: 2.5rem;
    }
}
