/* 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;
    background: linear-gradient(to bottom, #EBEDFF 0%, #EBEDFF 10%, #ffffff 70%);
}

/* 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-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;
}

/* 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;
}

/* 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;
    }
}
