/* ==========================================================
   Single Book — /books/{slug}/
   ========================================================== */

/* --- Hero --- */
.book-single__hero {
    background: var(--bg-blush);
    padding: var(--section-pad) 24px;
}

.book-single__hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
}

.book-single__cover-col {
    display: flex;
    justify-content: center;
}

.book-single__cover {
    width: clamp(240px, 28vw, 400px);
    height: auto;
    transform: rotate(-2deg);
}

.book-single__title {
    margin-top: 14px;
}

.book-single__subtitle {
    margin-top: 10px;
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
}

.book-single__meta {
    margin-top: 12px;
    font-family: var(--font-label);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* --- "Get Your Copy" store panel --- */
.book-single__shop {
    margin-top: 30px;
    max-width: 460px;
}

.book-single__shop-title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand);
}
.book-single__shop-title::after {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--border-brand);
}

.book-single__stores {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

/* One row per store: roundel icon, name + format, arrow */
.book-single__store {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px 13px 13px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.book-single__store:hover {
    transform: translateY(-2px);
    border-color: var(--border-brand);
    box-shadow: var(--shadow-md);
}

.book-single__store-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 auto;
}

/* Brand-tinted roundels — instant recognition */
.book-single__store--amazon .book-single__store-icon    { background: rgba(255, 153, 0, 0.14);  color: #B26500; }
.book-single__store--audible .book-single__store-icon   { background: rgba(248, 153, 28, 0.16); color: #C46A00; }
.book-single__store--spotify .book-single__store-icon   { background: rgba(30, 215, 96, 0.16);  color: #1A9E4B; }
.book-single__store--bn .book-single__store-icon        { background: rgba(46, 87, 53, 0.12);   color: #2E5735; }
.book-single__store--apple .book-single__store-icon     { background: rgba(47, 23, 24, 0.08);   color: var(--text-primary); }

.book-single__store-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.book-single__store-name {
    font-family: var(--font-label);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.book-single__store-format {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.book-single__store-arrow {
    margin-left: auto;
    color: var(--text-muted);
    flex: 0 0 auto;
    transition: transform 0.22s ease, color 0.22s ease;
}

.book-single__store:hover .book-single__store-arrow {
    transform: translateX(3px);
    color: var(--brand);
}

/* Primary row (first purchase option) — the pink hero */
.book-single__store--primary {
    background: var(--brand);
    border-color: var(--brand);
}
.book-single__store--primary:hover {
    border-color: var(--brand-deep);
    background: var(--brand-deep);
}
.book-single__store--primary .book-single__store-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}
.book-single__store--primary .book-single__store-name {
    color: #FFFFFF;
}
.book-single__store--primary .book-single__store-format {
    color: rgba(255, 255, 255, 0.85);
}
.book-single__store--primary .book-single__store-arrow {
    color: rgba(255, 255, 255, 0.8);
}
.book-single__store--primary:hover .book-single__store-arrow {
    color: #FFFFFF;
}

/* "Also on your favorite audio platform" note under the store rows */
.book-single__audio-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.book-single__audio-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: #C46A00;
}

/* Community line — shelves & deal alerts, quiet on purpose */
.book-single__community {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-medium);
    font-size: 0.88rem;
}

.book-single__community-label {
    font-family: var(--font-label);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.book-single__community-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
    color: var(--text-secondary);
}

.book-single__community-link:hover {
    color: var(--brand);
}

.book-single__community-icon {
    display: inline-flex;
}
.book-single__community-icon svg {
    width: 14px;
    height: 14px;
}

.book-single__community-dot {
    color: var(--text-muted);
}

.book-single__awards {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-single__award {
    font-style: italic;
    color: var(--text-secondary);
}

.book-single__award-star {
    color: var(--gold);
    margin-right: 8px;
}

/* --- Blurb --- */
.book-single__blurb {
    background: var(--bg);
    padding: var(--section-pad) 24px;
}

.book-single__blurb-inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-single__blurb-body {
    margin-top: 28px;
}

.book-single__blurb-body p {
    margin-bottom: 1.2em;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* Drop cap on the first paragraph — storybook touch */
.book-single__blurb-body > p:first-child::first-letter {
    font-family: var(--font-heading);
    font-size: 3.4em;
    line-height: 0.85;
    float: left;
    padding: 6px 10px 0 0;
    color: var(--brand);
}

/* --- Praise --- */
.book-single__praise {
    background: var(--bg-cream);
    padding: var(--section-pad) 24px;
}

.book-single__praise-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-single__praise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 34px;
    width: 100%;
}

.book-single__quote {
    background: var(--bg-surface);
    border-radius: 14px;
    border-top: 3px solid var(--brand);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
}

.book-single__quote p {
    font-style: italic;
    line-height: 1.8;
}

.book-single__quote cite {
    display: block;
    margin-top: 14px;
    font-family: var(--font-label);
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* --- Series row --- */
.book-single__series {
    background: var(--bg);
    padding: var(--section-pad) 24px;
}

.book-single__series-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-single__series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 36px;
    margin-top: 36px;
    width: 100%;
}

/* --- Back link --- */
.book-single__back {
    background: var(--bg);
    padding: 0 24px calc(var(--section-pad));
    text-align: center;
}

@media (max-width: 860px) {
    .book-single__hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .book-single__series-label {
        justify-content: center;
    }
    .book-single__awards {
        justify-content: center;
        align-items: center;
    }
    .book-single__shop {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
    .book-single__cover {
        transform: none;
    }
}
