/*
 * Curated Lists Page
 * Modern dark theme consistent with site redesign
 */

@layer pages {
    /* ============================================================
       PAGE LAYOUT
       ============================================================ */
    .curated-page {
        min-height: calc(100vh - 200px);
    }

    /* ============================================================
       HERO SECTION (Header Image)
       ============================================================ */
    .curated-hero {
        position: relative;
        width: 100%;
        max-height: 300px;
        overflow: hidden;
        background: var(--curated-hero-bg, #1a1a1a);
    }

    .curated-hero-inner {
        max-width: 1200px;
        margin: 0 auto;
    }

    .curated-hero-img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* ============================================================
       CONTENT SECTION
       ============================================================ */
    .curated-content {
        padding: 40px 24px 60px;
        background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
    }

    .curated-content-inner {
        width: min(1000px, 92%);
        margin: 0 auto;
    }

    /* ============================================================
       HEADER (Title + Description)
       ============================================================ */
    .curated-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .curated-header h1 {
        font: 700 clamp(28px, 4vw, 42px)/1.2 "Barlow Condensed", sans-serif;
        color: var(--text-headline, #fff);
        margin: 0 0 16px;
    }

    .curated-header-text {
        font: 400 16px/1.7 "Jost", sans-serif;
        color: var(--text-body, #bdbdbd);
        max-width: 700px;
        margin: 0 auto;
    }

    /* ============================================================
       STATS BAR
       ============================================================ */
    .curated-stats {
        margin-bottom: 40px;
    }

    .curated-stats-title {
        font: 600 14px/1 "Jost", sans-serif;
        color: var(--text-subhead, #999);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        text-align: center;
        margin: 0 0 20px;
    }

    .curated-stats-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .curated-stat-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px 24px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        min-width: 100px;
    }

    .curated-stat-value {
        font: 700 28px/1 "Barlow Condensed", sans-serif;
        color: var(--btn-yellow-bg, #edad01);
    }

    .curated-stat-label {
        font: 400 12px/1 "Jost", sans-serif;
        color: var(--text-subhead, #999);
        margin-top: 6px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* ============================================================
       AUDIOBOOK CARDS
       ============================================================ */
    .curated-audiobooks {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .curated-book-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        overflow: hidden;
    }

    .curated-book-inner {
        display: grid;
        grid-template-columns: 42% 1fr;
        gap: 30px;
        padding: 24px;
    }

    /* Left Column */
    .curated-book-left {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .curated-book-cover {
        flex-shrink: 0;
    }

    .curated-book-cover img {
        width: 100%;
        max-width: 320px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .curated-book-meta {
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1;
    }

    .curated-meta-item {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 6px;
        line-height: 1.5;
    }

    .curated-meta-item dt {
        font: 600 14px/1.5 "Jost", sans-serif;
        color: var(--text-body, #bdbdbd);
    }

    .curated-meta-item dt::after {
        content: ":";
    }

    .curated-meta-item dd {
        font: 400 14px/1.5 "Jost", sans-serif;
        color: var(--text-body, #bdbdbd);
        margin: 0;
    }

    .curated-meta-item dd a {
        color: var(--btn-yellow-bg, #edad01);
        text-decoration: none;
    }

    .curated-meta-item dd a:hover {
        text-decoration: underline;
    }

    .curated-length-speeds {
        display: inline;
    }

    .curated-length-speeds span {
        display: block;
    }

    .curated-length-speeds small {
        color: var(--text-subhead, #999);
        font-size: 12px;
        margin-right: 6px;
    }

    .curated-rating {
        display: inline-flex;
        align-items: center;
    }

    /* Right Column */
    .curated-book-right {
        display: flex;
        flex-direction: column;
    }

    .curated-book-title {
        font: 700 24px/1.3 "Barlow Condensed", sans-serif;
        margin: 0 0 12px;
    }

    .curated-book-title a {
        color: var(--text-headline, #fff);
        text-decoration: none;
    }

    .curated-book-title a:hover {
        color: var(--btn-yellow-bg, #edad01);
    }

    .curated-book-description {
        font: 400 15px/1.7 "Jost", sans-serif;
        color: var(--text-body, #bdbdbd);
        max-height: 22em;
        overflow: hidden;
        margin-bottom: 12px;
    }

    .curated-read-more {
        font: 500 14px/1 "Jost", sans-serif;
        color: var(--btn-yellow-bg, #edad01);
        text-decoration: none;
        margin-bottom: 20px;
        display: none;
    }

    .curated-book-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: auto;
    }

    /* Quote */
    .curated-book-quote {
        padding: 20px 24px;
        background: rgba(255, 211, 20, 0.05);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0;
    }

    .curated-book-quote p {
        font: 400 16px/1.6 "Jost", sans-serif;
        font-style: italic;
        color: var(--text-body, #bdbdbd);
        margin: 0 0 8px;
    }

    .curated-book-quote cite {
        font: 500 14px/1 "Jost", sans-serif;
        color: var(--text-subhead, #999);
        font-style: normal;
    }

    /* ============================================================
       FOOTER CTA
       ============================================================ */
    .curated-footer-cta {
        margin-top: 50px;
        padding: 40px 24px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 16px;
        text-align: center;
    }

    .curated-footer-inner h3 {
        font: 600 20px/1.3 "Jost", sans-serif;
        color: var(--text-headline, #fff);
        margin: 0 0 20px;
    }

    /* ============================================================
       RESPONSIVE - TABLET
       ============================================================ */
    @media (max-width: 900px) {
        .curated-book-inner {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .curated-book-description {
            max-height: 18em;
        }
    }

    @media (max-width: 768px) {
        .curated-content {
            padding: 30px 20px 50px;
        }

        .curated-book-cover img {
            max-width: 250px;
        }

        .curated-stat-card {
            padding: 12px 16px;
            min-width: 80px;
        }

        .curated-stat-value {
            font-size: 24px;
        }
    }

    /* ============================================================
       RESPONSIVE - MOBILE
       ============================================================ */
    @media (max-width: 480px) {
        .curated-content {
            padding: 24px 16px 40px;
        }

        .curated-header h1 {
            font-size: 26px;
        }

        .curated-book-inner {
            padding: 16px;
        }

        .curated-book-left {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .curated-book-cover img {
            max-width: 200px;
        }

        .curated-meta-item {
            justify-content: center;
        }

        .curated-book-title {
            font-size: 20px;
        }

        .curated-book-actions {
            flex-direction: column;
        }

        .curated-book-actions a {
            width: 100%;
            text-align: center;
        }

        .curated-stats-grid {
            gap: 10px;
        }

        .curated-stat-card {
            flex: 1 1 calc(50% - 10px);
        }
    }

} /* end @layer pages */
