/* =========================================================
   BOOKS
   ========================================================= */

.bookGrid {
    align-items: stretch;
    grid-auto-rows: 1fr;

    gap: 36px;

    width: 100%;
    max-width: 1200px;
}

.bookCard {
    width: 260px;
    height: 100%;
}

.bookCardHighlight {
    border-color: var(--gold-light);
    box-shadow:
        0 0 0 2px rgba(201, 166, 91, 0.18),
        0 0 35px rgba(201, 166, 91, 0.35);
}

.bookCoverWrap {
    position: relative;

    width: 100%;
    height: 390px;

    overflow: hidden;
    background: #0d120e;
}

.bookCover {
    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #0d120e;
    border-bottom: 1px solid var(--border);
}

.comingSoonBadge {
    position: absolute;
    top: 18px;
    right: 18px;

    padding: 7px 13px;

    border: 1px solid var(--gold-light);
    border-radius: 4px;

    background: rgba(10, 14, 10, 0.9);
    color: var(--gold-light);

    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.bookCardContent {
    min-height: 310px;
    padding: 22px;
}

.bookSeries {
    margin-bottom: 8px;

    color: var(--gold);

    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.genreTags {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-bottom: 10px;
}

.genreTag {
    display: inline-block;

    padding: 3px 8px;

    border: 1px solid rgba(201, 166, 91, 0.4);
    border-radius: 999px;

    background: rgba(201, 166, 91, 0.08);

    color: var(--gold-light);

    font-size: 0.62rem;
    font-weight: bold;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.releaseDate {
    margin-bottom: 8px;

    color: var(--gold);

    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bookCard h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.bookDescription {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 0.95rem;
    line-height: 1.55;
}

.bookDescription.long {
    font-size: 0.84rem;
    line-height: 1.45;
}

.bookDescription.veryLong {
    font-size: 0.78rem;
    line-height: 1.38;
}

.bookActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: auto;
}

.bookActions .secondaryButton,
.bookActions .primaryButton {
    margin-top: 0;
    align-self: auto;
}

.amazonButton {
    text-align: center;
}

.bookModalAmazonButton {
    margin-top: 20px;
}

/* The shared .primaryButton rule sets display:inline-block.
   This makes the modal Amazon link truly disappear when JS marks it hidden. */
.bookModalAmazonButton[hidden] {
    display: none;
}

/* =========================================================
   BOOK PROFILE MODAL
   ========================================================= */

.bookProfileModal {
    width: min(950px, 100%);
}


.bookProfileTop {
    display: grid;

    grid-template-columns:
        210px 1fr;

    gap: 30px;

    align-items: start;

    margin-bottom: 30px;
}


.bookModalCover {
    width: 210px;
    max-height: 320px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.4);
}


.bookProfileIntro h2 {
    margin-bottom: 12px;
}


.bookProfileIntro #bookModalDescription {
    margin-top: 14px;

    line-height: 1.65;
}


.bookProfileSection {
    margin-top: 26px;

    padding-top: 20px;

    border-top:
        1px solid rgba(201, 166, 91, 0.18);
}


/* Artwork thumbnails */

.bookArtLinks {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


.bookArtThumbnail {
    width: 90px;
    height: 90px;

    padding: 0;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 4px;

    background: #080b09;

    cursor: pointer;
}


.bookArtThumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.bookArtThumbnail:hover {
    border-color: var(--gold-light);
}



