/* ============================================================
   BOOKS — Novel Pages, Buy Links, Free Fiction, Where To Buy,
           Buttons Row, Book Product Pages
   ============================================================ */

/* --- Novel Base --- */

.Novel {
    width: 100%;
}

    .Novel .NovelOuterTable {
        border: 0;
        width: 100%;
    }

    .Novel img {
        width: 327px;
    }

    .Novel h1 {
        font-size: 1.6em;
        margin-top: 1em;
        text-align: center;
    }

    .Novel h2 {
        margin-top: 1em;
    }

    .Novel .bookcover {
        border: silver 1px solid;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
    }

    .Novel .NovelTitle {
        font-family: "Titillium Web", sans-serif;
        font-size: 2.25rem;
        font-weight: 700;
        letter-spacing: -0.5px;
        text-align: center;
        margin-bottom: 0.15rem;
        margin-top: 0;
        color: #000;
    }

    .Novel .NovelSubTitle {
        font-family: "Titillium Web", sans-serif;
        font-size: 1rem;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 300;
        color: #a2aab5;
        margin-top: 0;
        margin-bottom: 0.25rem;
    }

    .Novel .AuthorName {
        text-align: center;
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 1.5rem;
    }

    .Novel .NovelBlurb {
        font-size: 13pt;
        text-align: justify;
    }

        .Novel .NovelBlurb .badges a img {
            margin: .5em;
        }

.NovelOuterTable td {
    vertical-align: top;
}

    .NovelOuterTable .bookcover_column {
        width: 33%;
    }

    .NovelOuterTable .book_description_row {
        vertical-align: top;
        padding: 10px;
        width: 67%;
    }

.bookcover_column h1 {
    color: black;
}

.bookcover_column .buy_icons {
    padding-top: 10px;
    display: table;
    margin: 0 auto;
}

    .bookcover_column .buy_icons a {
        display: table-cell;
        text-align: center;
    }

    .bookcover_column .buy_icons img {
        visibility: visible;
        padding: 3px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

.bookcover_small {
    display: none;
    visibility: hidden;
    margin-bottom: 10px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
    max-width: 327px;
}

/* --- Book Grid / Bookbox --- */

.bookswrap {
    padding: 0.5rem 0 0 0;
}

.bookbox {
    vertical-align: top;
    margin: 1rem 0 2rem 0;
    box-sizing: border-box;
}

    .bookbox .bookcover {
        display: table;
        margin: 0 auto .8rem auto;
        border: 1px solid gainsboro;
    }

.series-page-row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.bookti, .bookti a {
    font-size: 1.1rem;
    display: table;
    line-height: 1.3rem;
    text-align: center;
    margin: 0 auto;
    padding-bottom: .4rem;
    font-weight: bold;
    text-decoration: none;
}

.booknum {
    font-size: .9rem;
    line-height: 1.2rem;
    color: gray;
    display: table;
    text-align: center;
    margin: 0 auto;
    padding-bottom: .5rem !important;
}

.booksflexwrap {
    flex-wrap: wrap !important;
}

    .booksflexwrap .bookcover {
        width: auto;
    }

/* --- Buttons Row --- */

.buttons-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 3rem 0;
    line-height: 100%;
    justify-content: center;
}

.buttons-row-left-justify {
    justify-content: center;
}

    .buttons-row a:link,
    .buttons-row a:visited {
        display: inline-block;
        padding: 0.6rem 1.25rem;
        font-family: "Titillium Web", sans-serif;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        color: #fff;
        background-color: #111;
        border: 2px solid #111;
        border-radius: 0.25rem;
        transition: all 0.2s ease;
        margin: 0;
    }

    .buttons-row a:hover,
    .buttons-row a:active {
        color: #fff;
        background-color: #3040ee;
        border-color: #3040ee;
    }

    .buttons-row a:link .buttons-fa-icon,
    .buttons-row a:visited .buttons-fa-icon {
        font-weight: 900;
        color: rgba(255, 255, 255, 0.75) !important;
        padding-left: 5px !important;
        transition: color 0.2s ease;
    }

    .buttons-row a:hover .buttons-fa-icon,
    .buttons-row a:active .buttons-fa-icon {
        color: #fff !important;
    }

.buttons-row-special a:link,
.buttons-row-special a:visited {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

a.buybookbtn:link,
a.buybookbtn:visited {
    color: white;
    background-color: #3040ee;
    border-color: #3040ee;
}

a.buybookbtn:hover,
a.buybookbtn:active {
    color: white;
    border: 1px solid #AB4500;
    background-color: #AB4500;
}

/* --- Buy Links Panel --- */

.buy_icons {
    margin: 0 auto;
    display: table;
}

    .buy_icons h1 { color: black; }
    .buy_icons p { font-size: 1em; margin-top: -15px; }
        .buy_icons p a { color: black; text-decoration: underline; }

.mobile_buy_icons {
    display: none;
    visibility: hidden;
    margin: 0 auto;
}

    .mobile_buy_icons h1 { color: black; }
    .mobile_buy_icons .buy_icons a { display: table-cell; text-align: center; }
    .mobile_buy_icons .buy_icons img {
        padding: 3px; display: block; margin-left: auto; margin-right: auto; width: 100%;
    }

.buy-links-panel {
    border: 0 !important;
    display: table;
    width: 100%;
}

h3.buy-heading {
    margin-bottom: 1rem !important;
}

.buy-links-panel .card-header {
    background-color: transparent;
    border: 0 !important;
    padding: 1rem 0 0 0;
    margin: 0;
    text-align: left !important;
}

.buy-links-panel .nav-item {
    margin: 0 6px 10px 0;
    display: inline-block;
    border: 0 solid transparent;
    font-size: 1rem;
    line-height: 1rem;
}

.buy-links-panel a.nav-link,
.buy-links-panel a.active.nav-link {
    color: gray;
    background-color: #F7F7F7;
    border: 1px solid silver !important;
    padding: 10px 14px;
    border-radius: 0 !important;
}

    .buy-links-panel a.nav-link:hover,
    .buy-links-panel a.active.nav-link:hover {
        color: dimgray !important;
        background-color: #eaeaea;
    }

.buy-links-panel .nav-item a.active.nav-link {
    font-weight: 400 !important;
    background-color: dimgray !important;
    border-color: dimgray !important;
    color: white !important;
}

.buy-links-panel .card-header ul {
    margin: 0 !important;
    padding: 0 !important;
}

.buy-links-panel .card-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
}

.buy-links-panel ul.buy-links-list {
    display: inline-block;
    vertical-align: top;
    margin: 0 !important;
    padding: 0 2.5rem 1.5rem 0 !important;
    min-width: 10rem;
}

    .buy-links-panel ul.buy-links-list li {
        display: block !important;
        margin: 0 !important;
        padding: 0.2rem 0 !important;
        list-style-type: none;
    }

        .buy-links-panel ul.buy-links-list li.format {
            font-family: "Titillium Web", sans-serif;
            font-weight: 700;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #000;
            padding-bottom: 0.5rem !important;
            margin-bottom: 0.25rem !important;
            border-bottom: 2px solid #eee;
        }

    .buy-links-panel ul.buy-links-list a {
        text-decoration: none;
        color: #444;
        font-size: 0.95rem;
        transition: color 0.15s ease;
    }

        .buy-links-panel ul.buy-links-list a:hover {
            color: #3040ee;
        }

.buy-links-panel .regions-buy-pane ul.buy-links-list {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.more_novel_info {
    width: 60%;
    text-align: center;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
}

/* --- Book Product Page --- */

.book-page ~ .blog-sidebar,
.page-global:has(.book-page) ~ .blog-sidebar {
    display: none !important;
    visibility: collapse !important;
}

.page-global .book-page .blog-content,
.page-global:has(.book-page) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

    .book-page .page-global-title,
    .page-global:has(.book-page) .page-global-title {
        visibility: hidden;
        height: 0;
        margin: 0;
        padding: 0;
    }

/* Hero layout */
.book-hero {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.book-hero-cover {
    flex: 0 0 auto;
    width: 18rem;
}

    .book-hero-cover img {
        width: 100%;
        height: auto;
        border-radius: 0.25rem;
        box-shadow: 0 4px 2rem rgba(0, 0, 0, 0.15);
        border: 1px solid #eee;
    }

.book-hero-info {
    flex: 1;
    min-width: 0;
}

    .book-hero-info .NovelBlurb {
        font-size: 1.05rem;
        line-height: 1.8;
        color: #505050;
    }

        .book-hero-info .NovelBlurb p {
            margin-bottom: 1rem;
        }

            .book-hero-info .NovelBlurb p:last-child {
                margin-bottom: 0;
            }

            .book-hero-info .NovelBlurb p strong {
                color: #000;
            }

.book-hero-cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: left;
}

/* Reader Praise */
.reader-praise {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

    .reader-praise blockquote,
    .reader-praise p {
        font-size: 1rem;
        line-height: 1.7;
        color: #505050;
        margin-bottom: 1rem;
        padding: 0;
        border: none;
        background: none;
        font-style: italic;
        position: relative;
    }

        .reader-praise p::before,
        .reader-praise blockquote::before { display: none; }
        .reader-praise p::after,
        .reader-praise blockquote::after { display: none; }

        .reader-praise p:last-child,
        .reader-praise blockquote:last-child { margin-bottom: 0; }

/* Section Headings */
.Novel h2,
.book-page h2 {
    font-family: "Titillium Web", sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 300;
    color: #a2aab5;
    letter-spacing: 2px;
    line-height: 1;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* About the Author on book pages */
.Novel table:has(td img[src*="Author"]) {
    border: none;
}

    .Novel table:has(td img[src*="Author"]) td {
        vertical-align: top;
        padding: 0 1rem 0 0;
        border: none;
    }

        .Novel table:has(td img[src*="Author"]) td:first-child img {
            width: 8rem;
            border-radius: 0.5rem;
            box-shadow: 0 2px 1rem rgba(0, 0, 0, 0.1);
        }

/* Featured / Latest Releases */
#latestReleases {
    margin-bottom: 1em;
}

.featuredBook {
    font-size: 1rem;
}

    .featuredBook .latestReleasesTitle {
        font-weight: bold;
        text-align: center;
    }

    .featuredBook img {
        padding-bottom: 1.1em;
        padding-top: 1.1em;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .featuredBook a {
        color: #444;
        text-decoration: underline;
    }

/* Newsletter Signup (book pages) */
#mc_embed_signup {
    background: #fff;
    clear: left;
    max-width: 400px;
}

    #mc_embed_signup .button {
        background-color: black;
        color: rgba(255, 255, 255, .75);
        height: 44px;
        line-height: 1.5em;
    }

#mce-email-address {
    font-weight: bold;
}

#newsletter-signup img {
    float: right;
    padding: 1em;
    padding-left: 2em;
    margin-top: 1.5em;
}

#newsletter-signup p {
    padding-top: 2em;
    margin-bottom: 0;
}

.main-widget {
    width: 100%;
    display: table;
    margin-top: 3rem;
    padding-top: 3rem;
}

    .main-widget.related-books {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

/* Where To Buy */
.wtb {
    border-top: 1px solid #eee;
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
}

.wtb-heading {
    font-family: "Titillium Web", sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 300;
    color: #a2aab5;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.wtb-sub {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.wtb-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

    .wtb-logos a {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s ease, transform 0.2s ease;
        opacity: 0.55;
    }

        .wtb-logos a:hover {
            opacity: 1;
            transform: scale(1.05);
        }

    .wtb-logos img {
        height: 28px;
        width: auto;
        max-width: 120px;
        object-fit: contain;
        filter: grayscale(100%);
        transition: filter 0.2s ease;
    }

    .wtb-logos a:hover img {
        filter: grayscale(0%);
    }

@media screen and (max-width: 575px) {
    .wtb-logos { gap: 1.25rem 1.5rem; }
        .wtb-logos img { height: 22px; max-width: 100px; }
}

/* Where To Buy (legacy) */
#wheretobuy {
    margin-top: 2em;
}

    #wheretobuy h3 { text-align: center; margin-bottom: 1em; }
    #wheretobuy img { width: auto; max-height: 40px; margin-right: 2em; margin-bottom: 0.5em; margin-top: 0.5em; }
    #wheretobuy ul { list-style: none; justify-content: space-around; text-align: center; }
    #wheretobuy li { display: inline; }

/* Free Fiction */
.ff-intro { margin-bottom: 2.5rem; }
    .ff-intro p { font-size: 1.05rem; line-height: 1.8; color: #505050; }
    .ff-intro .hp-btn { margin-top: 0.5rem; }

.ff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.ff-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 4rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

    .ff-card:hover {
        box-shadow: 0 0 4rem rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

.ff-card-img { display: block; overflow: hidden; height: 11rem; flex-shrink: 0; }
    .ff-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ff-card:hover .ff-card-img img { transform: scale(1.04); }

.ff-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.ff-card-title {
    font-family: "Titillium Web", sans-serif;
    font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3;
}
    .ff-card-title a { color: #000; text-decoration: none; }
        .ff-card-title a:hover { color: #3040ee; }

.ff-card-desc { font-size: 0.85rem; line-height: 1.6; color: #666; margin-bottom: 1rem; flex: 1; }

.ff-card-link {
    font-family: "Titillium Web", sans-serif;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #3040ee; text-decoration: none; margin-top: auto;
}
    .ff-card-link:hover { color: #111; }

.ff-youtube-cta { text-align: center; padding: 2rem 0; border-top: 1px solid #eee; margin-top: 1rem; }
    .ff-youtube-cta p { font-size: 0.95rem; color: #666; margin-bottom: 1rem; }
    .ff-youtube-cta a img { max-width: 100%; border-radius: 0.5rem; transition: opacity 0.2s ease; }
    .ff-youtube-cta a:hover img { opacity: 0.85; }

.ff-support { text-align: center; font-size: 0.9rem; color: #888; margin-bottom: 2rem; }
    .ff-support a { color: #3040ee; font-weight: 600; text-decoration: none; }
        .ff-support a:hover { color: #111; }

/* Book page responsive */
@media screen and (max-width: 991px) {
    .ff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 767px) {
    .book-hero { flex-direction: column; align-items: center; text-align: center; }
    .book-hero-cover { width: 14rem; }
    .book-hero-cta { justify-content: center; }
    .Novel .NovelTitle { font-size: 1.75rem; }

    .buy-links-panel .card-body { flex-direction: column; }
    .buy-links-panel ul.buy-links-list { padding-right: 0 !important; padding-bottom: 1.5rem !important; }

    .Novel table:has(td img[src*="Author"]) { display: block; text-align: center; }
        .Novel table:has(td img[src*="Author"]) td { display: block; padding: 0; margin-bottom: 1rem; }
            .Novel table:has(td img[src*="Author"]) td:first-child img { margin: 0 auto; display: block; }
}

@media screen and (max-width: 575px) {
    .ff-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .ff-card-img { height: 10rem; }
}

#about-image-col {
    width: 200px;
    border-style: none;
}

    #about-image-col img {
        margin-bottom: 1em;
    }

@media screen and (max-width: 600px) {
    #about-image-col {
        display: none;
        height: 0;
    }
}
