/* =====================================================
   BOOKENDS — HOMEPAGE LAYOUT
   Save as: homepage/home.css
   Uses only the --nv-* variables from the global style.css,
   so light and dark mode both work automatically.
===================================================== */


/* =====================================================
   INTRO BANNER
===================================================== */
.bk-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 44px 48px;
    margin-bottom: 48px;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 185, 154, .20), transparent 45%),
        linear-gradient(135deg, var(--nv-brand-dark) 0%, var(--nv-brand) 100%);
    color: #fff;
    box-shadow: var(--nv-shadow-md);
}

.bk-intro::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, .05);
    pointer-events: none;
}

.bk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(38, 185, 154, .20);
    color: #8fe3d0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bk-eyebrow svg {
    width: 16px;
    height: 16px;
}

.container .bk-intro h1 {
    margin: 18px 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    color: #fff;
}

.bk-intro h1 span {
    color: #5fd1b7;
}

.container .bk-lead {
    margin: 0 0 28px;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

.bk-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bk-intro a.bk-btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.bk-intro a.bk-btn-outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: #fff;
}

.bk-intro-stats {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bk-intro-stats li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--nv-radius);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
    font-size: 15px;
    font-weight: 500;
}

.bk-intro-stats svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #5fd1b7;
}


/* =====================================================
   SECTION HEADINGS
===================================================== */
.bk-section {
    margin-bottom: 48px;
}

.bk-section-head {
    margin-bottom: 20px;
}

.container .bk-section-head h2 {
    position: relative;
    margin: 0 0 6px;
    padding-left: 16px;
    font-family: var(--nv-font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--nv-heading);
}

.bk-section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 3px;
    background: var(--nv-accent);
}

.container .bk-section-head p {
    margin: 0;
    padding-left: 16px;
    font-size: 15px;
    color: var(--nv-muted-text);
}


/* =====================================================
   ICON MENU
===================================================== */
.icon-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.icon-menu > a {
    display: block;
    border-radius: var(--nv-radius);
    text-decoration: none;
}

.menu-item {
    height: 100%;
    min-height: 136px;
    padding: 22px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: var(--nv-icon-menu-item-bg);
    border: 1px solid var(--nv-icon-menu-item-border);
    border-radius: var(--nv-radius);
    box-shadow: var(--nv-shadow-sm);
    cursor: pointer;

    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.menu-item:hover {
    transform: translateY(-4px);
    background: var(--nv-icon-menu-item-hover);
    border-color: var(--nv-accent);
    box-shadow: var(--nv-shadow-md);
}

.menu-item svg {
    box-sizing: content-box;
    width: 24px;
    height: 24px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--nv-icon-menu-icon-bg);
    color: var(--nv-icon-menu-icon);
    stroke-width: 1.75;
    transition: background-color .2s ease, color .2s ease;
}

.menu-item:hover svg {
    background: var(--nv-button-accent);
    color: var(--nv-button-accent-text);
}

.menu-item span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--nv-icon-menu-item-text);
}


/* =====================================================
   TWO-COLUMN LAYOUT
===================================================== */
.bk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    margin-bottom: 40px;
}

.bk-col-main,
.bk-col-side {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.bk-col-side {
    position: sticky;
    top: 90px; /* clears the sticky header */
}


/* =====================================================
   CARD HEADINGS (h4s output by the include files)
===================================================== */
.bk-card > h4,
.bk-card .recent-blogs > h4,
.bk-card h3 {
    display: block;
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 14px;
    font-size: 21px;
    border-bottom: 1px solid var(--nv-border);
}

.bk-card > h4::after,
.bk-card .recent-blogs > h4::after {
    bottom: -1px;
    width: 44px;
    height: 3px;
}


/* =====================================================
   PROMO BANNER
===================================================== */
.bk-promo {
    display: block;
    border-radius: var(--nv-radius);
    overflow: hidden;
    box-shadow: var(--nv-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.bk-promo img {
    display: block;
    width: 100%;
    height: auto;
}

.bk-promo:hover {
    transform: translateY(-3px);
    box-shadow: var(--nv-shadow-md);
}


/* =====================================================
   DID YOU KNOW? (overrides fact.php inline styles)
===================================================== */
.bk-card.bk-fact {
    padding: 0;
    overflow: hidden;
}

.bk-fact .did-you-know {
    grid-template-columns: 38% 62%;
}

.bk-fact .did-you-know-image {
    min-height: 240px;
    background: var(--nv-surface-sunken);
}

.bk-fact .did-you-know-content {
    padding: 30px 32px;
    background: linear-gradient(180deg, var(--nv-accent-tint) 0%, var(--nv-surface) 70%);
}

.bk-fact .did-you-know-content h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    font-family: var(--nv-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nv-accent-strong);
}

.bk-fact .did-you-know-content h4::after {
    display: none;
}

.bk-fact .did-you-know-content h4 span {
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--nv-muted-text);
}

.container .bk-fact .did-you-know-content .fact {
    margin: 0 0 14px;
    font-family: var(--nv-font-heading);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--nv-heading);
}

.container .bk-fact .did-you-know-content .details {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--nv-text-soft);
}


/* =====================================================
   RECENT BLOG ARTICLES
===================================================== */
.recent-blogs ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.recent-blogs ul > li {
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--nv-border);
}

.recent-blogs ul > li:first-child {
    padding-top: 0;
}

.recent-blogs ul > li:last-child {
    border-bottom: none;
}

.recent-blog-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.recent-blog-image {
    flex: 0 0 140px;
    width: 140px;
    height: 100px;
    overflow: hidden;
    border-radius: var(--nv-radius-sm);
    background: var(--nv-surface-sunken);
}

.recent-blog-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.recent-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.recent-blog-row:hover .recent-blog-image img {
    transform: scale(1.05);
}

.recent-blog-content {
    flex: 1 1 0;
    min-width: 0;
}

.recent-blog-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.recent-blog-title a {
    color: var(--nv-heading);
}

.recent-blog-title a:hover {
    color: var(--nv-accent-strong);
}

.recent-blog-excerpt {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--nv-muted-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-blog-date {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--nv-accent-strong);
}

/* "More blog articles..." link */
.container .bk-blogs > p:last-child {
    margin: 18px 0 0;
}

.bk-blogs > p:last-child a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid var(--nv-border-strong);
    color: var(--nv-text-soft);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s ease, color .2s ease;
}

.bk-blogs > p:last-child a:hover {
    border-color: var(--nv-accent);
    color: var(--nv-accent-strong);
}


/* =====================================================
   RECENT COMMENTS
===================================================== */
.home-comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--nv-border);
    font-size: 15px;
}

.home-comment:first-child {
    padding-top: 0;
}

.home-comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-comment > strong {
    color: var(--nv-heading);
}

.home-comment > a {
    font-weight: 600;
}

.container .home-comment p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--nv-text-soft);
}

.home-comment small {
    font-size: 12px;
    color: var(--nv-muted-text);
}

.admin-reply {
    margin: 12px 0 0 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--nv-accent);
    border-radius: 0 var(--nv-radius-sm) var(--nv-radius-sm) 0;
    background: var(--nv-accent-tint);
    font-size: 14px;
}

.admin-reply strong {
    color: var(--nv-accent-strong);
}

.container .admin-reply p {
    margin: 4px 0;
    font-size: 14px;
}


/* =====================================================
   RECOMMENDED LINKS
===================================================== */
.top-songs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-songs li {
    padding: 14px 0;
    line-height: 1.4;
    border-bottom: 1px solid var(--nv-border);
}

.top-songs li:first-child {
    padding-top: 0;
}

.top-songs li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.top-songs li a {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--nv-heading);
}

.top-songs li a::after {
    content: " \2197";
    font-size: 13px;
    color: var(--nv-accent);
}

.top-songs li a:hover {
    color: var(--nv-accent-strong);
}

.smaller {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--nv-muted-text);
}


/* =====================================================
   SIDEBAR CALL-TO-ACTION CARDS
===================================================== */
.bk-card.bk-cta {
    text-align: center;
    border: none;
    color: #fff;
    background:
        radial-gradient(circle at 0% 100%, rgba(38, 185, 154, .30), transparent 55%),
        linear-gradient(160deg, var(--nv-brand-dark), var(--nv-brand));
}

.bk-cta > svg {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    color: #5fd1b7;
}

.bk-card.bk-cta h3 {
    margin: 0 0 8px;
    padding: 0;
    border: none;
    color: #fff;
}

.container .bk-cta p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
}

.bk-card.bk-help h3 {
    margin: 0 0 8px;
    padding: 0;
    font-size: 18px;
    border: none;
}

.container .bk-help p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--nv-muted-text);
}


/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .bk-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .bk-col-side {
        position: static;
    }
}

@media (max-width: 860px) {
    .bk-intro {
        grid-template-columns: minmax(0, 1fr);
        padding: 36px 28px;
    }
}

@media (max-width: 700px) {
    .bk-intro {
        padding: 30px 20px;
        border-radius: 14px;
        margin-bottom: 36px;
    }

    .bk-intro-actions .bk-btn {
        flex: 1 1 auto;
    }

    .bk-section {
        margin-bottom: 36px;
    }

    .container .bk-section-head h2 {
        font-size: 22px;
    }

    .icon-menu {
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    }

    .menu-item {
        min-height: 112px;
        padding: 16px 8px;
    }

    .menu-item svg {
        width: 20px;
        height: 20px;
        padding: 10px;
        margin-bottom: 10px;
    }

    .menu-item span {
        font-size: 12.5px;
    }

    .bk-fact .did-you-know {
        grid-template-columns: 1fr;
    }

    .bk-fact .did-you-know-image {
        min-height: 0;
    }

    .bk-fact .did-you-know-content {
        padding: 22px 18px;
    }

    .container .bk-fact .did-you-know-content .fact {
        font-size: 20px;
    }

    .recent-blog-row {
        gap: 12px;
    }

    .recent-blog-image {
        flex-basis: 100px;
        width: 100px;
        height: 75px;
    }
}