/* Listicle Layout - reusable across all listicle pages */

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

body.listicle-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 */
.listicle-hero {
    text-align: center;
    padding: 3rem 1.5rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.listicle-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.listicle-subtitle {
    color: #666;
    font-size: 1.05rem;
    margin-top: 0.75rem;
    line-height: 1.6;
}

/* Book entries container */
.listicle-entries {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Individual book entry - two column */
.listicle-book-entry {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Left column: text content */
.listicle-book-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.listicle-book-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3C4BFB;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.listicle-book-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.listicle-book-author {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.listicle-insights-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.listicle-insights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.listicle-insights li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.listicle-insights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3C4BFB 0%, #667eea 100%);
}

/* Right column: cover + player */
.listicle-book-media {
    flex-shrink: 0;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .listicle-book-entry {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .listicle-book-media {
        width: 100%;
    }

    .listicle-hero h1 {
        font-size: 1.6rem;
    }

    .listicle-insights li {
        text-align: left;
    }
}
