/* ==========================================================
   BOXXHEAD GAMING
   PUBLICATION UI SYSTEM
   Navigation + Cards + Shared Editorial Language
========================================================== */

:root {
    --bx-red: #e31616;
    --bx-red-hot: #ff2929;
    --bx-bg: #080808;
    --bx-panel: #101010;
    --bx-panel-2: #151515;
    --bx-line: rgba(255,255,255,.10);
    --bx-line-strong: rgba(255,255,255,.17);
    --bx-muted: rgba(255,255,255,.60);
    --bx-dim: rgba(255,255,255,.42);
    --bx-radius: 10px;
}


/* ==========================================================
   HEADER
========================================================== */

.v7-header {
    position: relative;
    z-index: 9000;
    width: 100%;
    background: rgba(7,7,7,.98);
    border-bottom: 1px solid var(--bx-line);
}

.v7-header-main {
    background:
        linear-gradient(
            180deg,
            #0b0b0b 0%,
            #070707 100%
        );
}

.v7-header-row {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.v7-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.v7-logo img {
    display: block;
    width: clamp(138px, 13vw, 184px);
    height: auto;
}


/* ==========================================================
   DESKTOP NAVIGATION
========================================================== */

.v7-nav {
    margin-left: auto;
    display: flex;
    align-items: stretch;
    gap: 2px;
}

.v7-nav a {
    position: relative;
    display: flex;
    min-height: 78px;
    align-items: center;
    padding: 0 12px;

    color: rgba(255,255,255,.76);
    text-decoration: none;

    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;

    transition:
        color .16s ease,
        background .16s ease;
}

.v7-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;

    background: var(--bx-red);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform .17s ease;
}

.v7-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.035);
}

.v7-nav a:hover::after,
.v7-nav a.bx-nav-active::after {
    transform: scaleX(1);
}

.v7-nav a.bx-nav-active {
    color: #fff;
}


/* ==========================================================
   SEARCH BUTTON
========================================================== */

.bxpub-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: 6px;
}

.bxpub-search-button {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--bx-line-strong);
    border-radius: 7px;

    background: rgba(255,255,255,.035);
    color: #fff;

    cursor: pointer;

    transition:
        background .16s ease,
        border-color .16s ease;
}

.bxpub-search-button:hover {
    background: var(--bx-red);
    border-color: var(--bx-red);
}

.bxpub-search-icon {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;

    border: 2px solid currentColor;
    border-radius: 50%;
}

.bxpub-search-icon::after {
    content: "";
    position: absolute;

    width: 7px;
    height: 2px;

    right: -5px;
    bottom: -3px;

    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}


/* ==========================================================
   SEARCH PANEL
========================================================== */

.bxpub-search-panel {
    display: none;
    width: 100%;

    border-top: 1px solid var(--bx-line);
    background: #0d0d0d;
}

.bxpub-search-panel.open {
    display: block;
}

.bxpub-search-inner {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 14px 0;
}

.bxpub-search-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
}

.bxpub-search-form input {
    min-width: 0;
    height: 46px;

    padding: 0 15px;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;

    background: #171717;
    color: #fff;

    font: inherit;
    font-size: 14px;
}

.bxpub-search-form input:focus {
    outline: 2px solid var(--bx-red);
    outline-offset: 1px;
}

.bxpub-search-form button {
    min-width: 100px;
    height: 46px;

    padding: 0 18px;

    border: 0;
    border-radius: 6px;

    background: var(--bx-red);
    color: #fff;

    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;

    cursor: pointer;
}


/* ==========================================================
   FEATURED GAME BAR
========================================================== */

.v7-topic-bar {
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.08);

    background: #101010;
}

.v7-topic-inner {
    min-height: 42px;

    display: flex;
    align-items: center;
    gap: 6px;

    overflow-x: auto;
    scrollbar-width: none;
}

.v7-topic-inner::-webkit-scrollbar {
    display: none;
}

.v7-topic-label {
    flex: 0 0 auto;

    margin-right: 8px;

    color: rgba(255,255,255,.36);

    font-size: 9px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.v7-topic-inner a {
    flex: 0 0 auto;

    padding: 7px 10px;

    border-radius: 4px;

    color: rgba(255,255,255,.68);
    text-decoration: none;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .035em;
}

.v7-topic-inner a:hover {
    color: #fff;
    background: rgba(227,22,22,.14);
}


/* ==========================================================
   SHARED SECTION HEADINGS
========================================================== */

.v7-heading-row,
.bxtrend-head,
.bxhub-section-head,
.bx-related-heading {
    position: relative;
}

.v7-heading-row {
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--bx-line);
}

.v7-heading-row::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;

    width: 45px;
    height: 3px;

    background: var(--bx-red);
}

.v7-heading-row h2 {
    letter-spacing: -.035em;
}


/* ==========================================================
   SHARED CARD SURFACES
========================================================== */

.v7-video-story,
.v7-news-story,
.v7-game-row,
.v7-review-row,
.category-card,
.bx-news-card,
.bx-related-card,
.bxhub-news-card,
.bxhub-video-card,
.bxhub-review,
.bxtrend-card,
.public-story-card,
.bx6-content-card {
    overflow: hidden;

    border: 1px solid var(--bx-line);
    border-radius: var(--bx-radius);

    background: var(--bx-panel);

    box-shadow:
        0 8px 25px rgba(0,0,0,.10);

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.v7-video-story:hover,
.v7-news-story:hover,
.v7-game-row:hover,
.v7-review-row:hover,
.category-card:hover,
.bx-news-card:hover,
.bx-related-card:hover,
.bxhub-news-card:hover,
.bxhub-video-card:hover,
.bxhub-review:hover,
.bxtrend-card:hover,
.public-story-card:hover,
.bx6-content-card:hover {
    transform: translateY(-3px);

    border-color: rgba(227,22,22,.48);

    background: #131313;

    box-shadow:
        0 15px 34px rgba(0,0,0,.22);
}


/* ==========================================================
   CARD IMAGES
========================================================== */

.v7-story-image,
.v7-news-thumb,
.category-card-image,
.bx-news-card-image,
.bx-related-image,
.bxhub-media,
.bxtrend-image,
.public-story-image,
.bx6-content-card-image {
    position: relative;
    overflow: hidden;
    background: #111;
}

.v7-story-image img,
.v7-news-thumb img,
.category-card-image img,
.bx-news-card-image img,
.bx-related-image img,
.bxhub-media img,
.bxtrend-image img,
.public-story-image img,
.bx6-content-card-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .25s ease,
        filter .25s ease;
}

.v7-video-story:hover img,
.v7-news-story:hover img,
.category-card:hover img,
.bx-news-card:hover img,
.bx-related-card:hover img,
.bxhub-news-card:hover img,
.bxhub-video-card:hover img,
.bxtrend-card:hover img,
.public-story-card:hover img,
.bx6-content-card:hover img {
    transform: scale(1.025);
}


/* ==========================================================
   LABELS
========================================================== */

.v7-section-tag,
.bx-news-category,
.bx-related-category,
.bxtrend-meta span:first-child,
.bxhub-kicker {
    color: var(--bx-red-hot);

    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}


/* ==========================================================
   STORY HEADLINES
========================================================== */

.v7-story-copy h3,
.v7-news-story h3,
.category-card-body h3,
.bx-news-card-copy h3,
.bx-related-card h3,
.bxhub-news-card h3,
.bxhub-video-card h3,
.bxtrend-card h4,
.public-story-copy h3,
.bx6-content-card-body h3 {
    text-wrap: balance;
    letter-spacing: -.025em;
}

.v7-story-copy h3 a,
.v7-news-story h3 a,
.category-card-body h3 a,
.bx-news-card-copy h3 a,
.bx-related-card h3 a,
.bxhub-news-card h3 a,
.bxhub-video-card h3 a,
.bxtrend-card h4 a,
.public-story-copy h3 a,
.bx6-content-card-body h3 a {
    color: #fff;
    text-decoration: none;
}


/* ==========================================================
   GAME ROWS
========================================================== */

.v7-game-row {
    border-radius: 8px;
}

.v7-game-art {
    overflow: hidden;
    background:
        radial-gradient(
            circle at center,
            rgba(227,22,22,.12),
            #101010 68%
        );
}

.v7-game-copy strong {
    color: #fff;
}

.v7-game-copy span {
    color: var(--bx-red-hot);
}


/* ==========================================================
   REVIEW ROW
========================================================== */

.v7-review-row {
    padding: 14px;
}

.v7-score {
    flex: 0 0 auto;

    min-width: 58px;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 7px;

    border-radius: 7px;

    background: var(--bx-red);
    color: #fff;

    font-size: 14px;
    font-weight: 950;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.v7-header a:focus-visible,
.v7-header button:focus-visible,
.v7-topic-inner a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1050px) {

    .v7-nav a {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 10px;
    }

}


/* ==========================================================
   MOBILE NAVIGATION
========================================================== */

@media (max-width: 760px) {

    .v7-header-row {
        min-height: 70px;
        gap: 12px;
    }

    .v7-logo img {
        width: 142px;
    }

    .v7-menu-button {
        margin-left: auto;
    }

    .bxpub-search {
        margin-left: 0;
    }

    .bxpub-search-button {
        width: 40px;
        height: 40px;
    }

    .v7-nav {
        position: absolute;

        left: 0;
        right: 0;
        top: 70px;

        display: none;

        margin: 0;
        padding: 9px 12px 15px;

        background: #090909;

        border-top: 1px solid var(--bx-line);
        border-bottom: 2px solid var(--bx-red);

        box-shadow:
            0 18px 30px rgba(0,0,0,.42);
    }

    .v7-nav.open {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0,1fr));
        gap: 3px;
    }

    .v7-nav a {
        min-height: 48px;

        padding: 0 13px;

        border-radius: 5px;

        background: rgba(255,255,255,.025);

        font-size: 10px;
    }

    .v7-nav a::after {
        left: 13px;
        right: auto;
        width: 25px;
    }

    .bxpub-search-panel {
        position: relative;
        z-index: 8999;
    }

    .bxpub-search-inner {
        width: min(100% - 24px, 1180px);
    }

    .v7-topic-inner {
        min-height: 39px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 430px) {

    .v7-logo img {
        width: 128px;
    }

    .v7-nav.open {
        grid-template-columns: 1fr;
    }

    .bxpub-search-form {
        grid-template-columns: minmax(0,1fr) 82px;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .v7-nav a,
    .v7-nav a::after,
    .bxpub-search-button,
    .v7-video-story,
    .v7-news-story,
    .v7-game-row,
    .v7-review-row,
    .category-card,
    .bx-news-card,
    .bx-related-card,
    .bxhub-news-card,
    .bxhub-video-card,
    .bxhub-review,
    .bxtrend-card,
    .public-story-card,
    .bx6-content-card,
    .v7-story-image img,
    .v7-news-thumb img,
    .category-card-image img,
    .bx-news-card-image img,
    .bx-related-image img,
    .bxhub-media img,
    .bxtrend-image img {
        transition: none;
    }

}
