/*
 * /books/ — client deck 12Oct26 slide 17 (books.php books_shelf_markup()):
 *   .books-shelf          all of his books, cover + title + Amazon link
 *   .shelf-book__placeholder  stand-in cover until the client sends the art
 *   .books-series-title   "Blue the Ancient Rock" over the existing content
 */

.books-shelf {
    max-width: 1100px;
    margin: 0 auto 64px;
    padding: 0 16px;
}

.books-shelf__title,
.books-series-title {
    margin: 0 0 32px;
    color: #ffffff;
    font-family: Orbitron, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.books-series-title {
    margin-bottom: 40px;
}

.books-shelf__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shelf-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.shelf-book__cover {
    display: block;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 571 / 911;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shelf-book__cover:hover,
.shelf-book__cover:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    outline: none;
}

.shelf-book__cover:focus-visible {
    outline: 3px solid #FFCC00;
    outline-offset: 3px;
}

.shelf-book__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shelf-book__placeholder {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 22px 16px;
    background:
        radial-gradient(circle at 70% 25%, rgba(255, 204, 0, 0.18), transparent 55%),
        linear-gradient(160deg, #2b2b2b, #111111);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #ffffff;
    text-align: left;
}

.shelf-book__ph-author {
    color: #FFCC00;
    font-family: Orbitron, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shelf-book__ph-title {
    font-family: Orbitron, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.shelf-book__title {
    margin: 4px 0 0;
    color: #ffffff;
    font-family: Orbitron, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.shelf-book__buy {
    margin-top: auto; /* buttons line up even when a title wraps */
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: #FFCC00;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* same hover language as the site's yellow buttons (spec 12 §7, 2026-09-27) */
.shelf-book__buy:hover,
.shelf-book__buy:focus-visible {
    background: #292929;
    color: #ffffff;
}

@media (max-width: 900px) {
    .books-shelf__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .books-shelf__title,
    .books-series-title {
        font-size: 24px;
    }

    .books-shelf__list {
        gap: 28px 16px;
    }

    .shelf-book__ph-title {
        font-size: 15px;
    }

    .shelf-book__title {
        font-size: 14px;
    }

    .shelf-book__buy {
        align-self: stretch;
        padding: 10px 4px;
        font-size: 12px;
        letter-spacing: 0;
        white-space: nowrap;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shelf-book__cover {
        transition: none;
    }
}

/* Deck 19Oct26 slide 8: "put heading closer to the books collection" — the
   series section's 150px top padding left "Blue the Ancient Rock" ~200px
   above its covers. */
.books-series-title {
    margin-bottom: 16px;
}

body.page-id-1354 .elementor-1354 > .elementor-element-4b37823 {
    --padding-top: 36px;
    padding-top: 36px !important;
}
