/* ==========================================================
   GAMING HEADER — red / grey, angled style
   ========================================================== */

/* ---------- Header colors per mode ---------- */
html[data-theme="dark"] {
    --gzh-top: #111214;
    --gzh-pattern: rgba(255, 255, 255, .025);
    --gzh-bar: #1b1d21;
    --gzh-line: #2a2d33;
    --gzh-link: #c9ccd2;
    --gzh-link-hover: #ffffff;
    --gzh-hover-bg: #2a2d33;
    --gzh-btn: #2a2d33;
    --gzh-logo: #ffffff;
    --gzh-overlay: rgba(10, 11, 13, .97);
    --gzh-input: #1b1d21;
    --gzh-input-text: #ffffff;
    --gzh-drawer: #16181b;
    --gzh-drawer-line: #22252a;
    --gzh-drawer-active: #1f2125;
}
html[data-theme="light"] {
    --gzh-top: #ffffff;
    --gzh-pattern: rgba(0, 0, 0, .03);
    --gzh-bar: #f2f3f5;
    --gzh-line: #dcdfe3;
    --gzh-link: #3a3d44;
    --gzh-link-hover: #111111;
    --gzh-hover-bg: #dcdfe3;
    --gzh-btn: #4a4e56;
    --gzh-logo: #15171a;
    --gzh-overlay: rgba(242, 243, 245, .98);
    --gzh-input: #ffffff;
    --gzh-input-text: #15171a;
    --gzh-drawer: #ffffff;
    --gzh-drawer-line: #eceef1;
    --gzh-drawer-active: #f2f3f5;
}

/* ---------- Base ---------- */
.gz-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.gz-header { position: relative; }

.gz-header button,
.gz-search button {
    font: inherit;
    line-height: 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
}
.gz-header svg,
.gz-search svg { display: block; flex-shrink: 0; }

.gz-shape { clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }

/* ---------- Logo row ---------- */
.gz-top {
    background-color: var(--gzh-top);
    background-image: repeating-linear-gradient(135deg, var(--gzh-pattern) 0 2px, transparent 2px 12px);
    padding: 24px 0;
}
.gz-top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.gz-logo-line {
    position: relative;
    flex: 0 1 110px;
    height: 2px;
    background: var(--gzh-line);
}
.gz-logo-line::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 14px;
    height: 8px;
    background: var(--gz-red);
    transform: skewX(-30deg);
}
.gz-logo-line--l::after { right: 0; }
.gz-logo-line--r::after { left: 0; }

.gz-logo { line-height: 0; }
.gz-logo .custom-logo-link { display: inline-block; }
.gz-logo .custom-logo { max-height: 80px; width: auto; height: auto; }

.gz-header .gz-site-title {
    display: inline-block;
    line-height: 1.1;
    font-size: 30px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gzh-logo);
}
.gz-header .gz-site-title:hover { color: var(--gz-red); }

/* ---------- Menu bar ---------- */
.gz-bar {
    background: var(--gzh-bar);
    border-top: 1px solid var(--gzh-line);
    border-bottom: 3px solid var(--gz-red);
}
.gz-bar-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    height: 54px;
    padding-right: 0;
}

/* ---------- Desktop menu ---------- */
.gz-nav { display: flex; align-items: stretch; min-width: 0; }
.gz-drawer-head,
.gz-drawer-foot { display: none; }

.gz-menu,
.gz-menu ul { list-style: none; margin: 0; padding: 0; }
.gz-menu { display: flex; align-items: stretch; }
.gz-menu li { position: relative; }
.gz-menu > li { display: flex; }

.gz-header .gz-menu a {
    display: flex;
    align-items: center;
    color: var(--gzh-link);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .2s;
}
.gz-header .gz-menu > li > a {
    position: relative;
    z-index: 0;
    padding: 0 16px;
}
.gz-menu > li > a::before {
    content: "";
    position: absolute;
    inset: 11px 4px;
    z-index: -1;
    background: var(--gzh-hover-bg);
    transform: skewX(-15deg) scaleX(0);
    transition: transform .2s ease;
}
.gz-header .gz-menu > li:hover > a,
.gz-header .gz-menu > li:focus-within > a { color: var(--gzh-link-hover); }

.gz-menu > li:hover > a::before,
.gz-menu > li:focus-within > a::before { transform: skewX(-15deg) scaleX(1); }

.gz-header .gz-menu > li.current-menu-item > a,
.gz-header .gz-menu > li.current-menu-ancestor > a { color: #fff; }

.gz-menu > li.current-menu-item > a::before,
.gz-menu > li.current-menu-ancestor > a::before {
    background: var(--gz-red);
    transform: skewX(-15deg) scaleX(1);
}

/* Dropdowns */
.gz-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 230px;
    padding: 6px 0;
    background: var(--gzh-bar);
    border-top: 3px solid var(--gz-red);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.gz-menu .sub-menu .sub-menu { top: -9px; left: 100%; }
.gz-menu li:hover > .sub-menu,
.gz-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.gz-header .gz-menu .sub-menu a {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .3px;
    text-transform: none;
    border-left: 3px solid transparent;
}
.gz-header .gz-menu .sub-menu a:hover {
    color: var(--gzh-link-hover);
    background: var(--gzh-hover-bg);
    border-left-color: var(--gz-red);
}
.gz-header .gz-sub-toggle { display: none; }

/* ---------- Social + theme + search ---------- */
.gz-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.gz-social {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.gz-header .gz-soc,
.gz-header .gz-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 30px;
    background: var(--gzh-btn);
    color: #fff;
    text-decoration: none;
    transition: background-color .2s;
}
.gz-soc svg { width: 15px; height: 15px; }
.gz-theme-toggle svg { width: 16px; height: 16px; }

.gz-header .gz-soc:hover,
.gz-header .gz-soc:focus-visible,
.gz-header .gz-theme-toggle:hover,
.gz-header .gz-theme-toggle:focus-visible {
    background: var(--gz-red);
    color: #fff;
}

.gz-ico-sun,
.gz-ico-moon { display: flex; }
html[data-theme="dark"] .gz-ico-moon,
html[data-theme="light"] .gz-ico-sun { display: none; }

.gz-header .gz-search-open {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 72px;
    margin-left: 8px;
    padding-left: 12px;
    background: var(--gz-red);
    color: #fff;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    transition: background-color .2s;
}
.gz-header .gz-search-open:hover,
.gz-header .gz-search-open:focus-visible { background: var(--gz-red-hover); }
.gz-search-open svg { width: 21px; height: 21px; }

/* ---------- Search overlay ---------- */
.gz-search {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--gzh-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.gz-search::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gz-red);
}
.gz-search.is-active { opacity: 1; visibility: visible; }

.gz-search-inner {
    width: 100%;
    max-width: 720px;
    text-align: center;
    transform: translateY(-16px);
    transition: transform .3s ease;
}
.gz-search.is-active .gz-search-inner { transform: none; }

.gz-search-label {
    margin: 0 0 14px;
    color: var(--gz-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.gz-search-form {
    display: flex;
    align-items: stretch;
    background: var(--gzh-input);
    border-left: 5px solid var(--gz-red);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.gz-search .gz-search-input,
.gz-search .gz-search-input:focus {
    flex: 1;
    min-width: 0;
    height: 68px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: var(--gzh-input-text);
    font-size: 24px;
    font-weight: 600;
}
.gz-search .gz-search-input::placeholder { color: var(--gz-muted); opacity: 1; }

.gz-search .gz-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    padding-left: 12px;
    background: var(--gz-red);
    color: #fff;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    transition: background-color .2s;
}
.gz-search .gz-search-submit:hover { background: var(--gz-red-hover); }
.gz-search-submit svg { width: 24px; height: 24px; }

.gz-search-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.gz-search-tags-title { color: var(--gz-muted); font-size: 13px; margin-right: 4px; }
.gz-search .gz-tag {
    padding: 7px 16px;
    background: var(--gzh-btn);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    transition: background-color .2s;
}
.gz-search .gz-tag:hover,
.gz-search .gz-tag:focus-visible { background: var(--gz-red); color: #fff; }

.gz-search .gz-search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    background: var(--gzh-btn);
    color: #fff;
    transition: background-color .2s;
}
.gz-search .gz-search-close:hover,
.gz-search .gz-search-close:focus-visible { background: var(--gz-red); }
.gz-search-close svg { width: 22px; height: 22px; }
.admin-bar .gz-search .gz-search-close { top: 56px; }

/* ---------- Backdrop + scroll lock ---------- */
.gz-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.gz-backdrop.is-active { opacity: 1; visibility: visible; }
body.gz-locked { overflow: hidden; }

/* ---------- Burger ---------- */
.gz-header .gz-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    width: 54px;
    padding: 0 15px;
}
.gz-burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--gz-red);
    transition: width .2s;
}
.gz-burger span:nth-child(2) { width: 15px; }
.gz-header .gz-burger:hover span:nth-child(2) { width: 24px; }

/* ==========================================================
   MOBILE / TABLET  (≤ 921px)
   ========================================================== */
@media (max-width: 921px) {
    .gz-bar-inner { height: 50px; padding-left: 0; }
    .gz-header .gz-burger { display: flex; }

    /* Off-canvas drawer */
    .gz-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;
        width: 300px;
        max-width: 86vw;
        flex-direction: column;
        background: var(--gzh-drawer);
        border-right: 3px solid var(--gz-red);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .3s ease, visibility 0s linear .3s;
    }
    .gz-nav.is-open {
        transform: none;
        visibility: visible;
        transition: transform .3s ease;
    }
    .admin-bar .gz-nav { top: 32px; }

    .gz-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 14px 14px 20px;
        border-bottom: 3px solid var(--gz-red);
    }
    .gz-drawer-title {
        color: var(--gzh-logo);
        font-size: 17px;
        font-weight: 800;
        font-style: italic;
        letter-spacing: 2px;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .gz-header .gz-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 38px;
        flex-shrink: 0;
        background: var(--gzh-btn);
        color: #fff;
    }
    .gz-header .gz-drawer-close:hover { background: var(--gz-red); }
    .gz-drawer-close svg { width: 20px; height: 20px; }

    /* Numbered menu items */
    .gz-menu { flex-direction: column; align-items: stretch; counter-reset: gz-item; }
    .gz-menu li,
    .gz-menu > li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid var(--gzh-drawer-line);
    }
    .gz-header .gz-menu > li > a { flex: 1; gap: 14px; padding: 15px 20px; }

    .gz-menu > li > a::before,
    .gz-menu > li:hover > a::before,
    .gz-menu > li:focus-within > a::before,
    .gz-menu > li.current-menu-item > a::before,
    .gz-menu > li.current-menu-ancestor > a::before {
        content: counter(gz-item, decimal-leading-zero);
        position: static;
        z-index: auto;
        background: none;
        transform: none;
        color: var(--gz-red);
        font-size: 11px;
        letter-spacing: 0;
    }
    .gz-menu > li > a::before { counter-increment: gz-item; }

    .gz-header .gz-menu > li.current-menu-item > a,
    .gz-header .gz-menu > li.current-menu-ancestor > a {
        color: var(--gzh-link-hover);
        background: var(--gzh-drawer-active);
        box-shadow: inset 3px 0 0 var(--gz-red);
    }

    /* Mobile sub-menus */
    .gz-menu .sub-menu,
    .gz-menu .sub-menu .sub-menu {
        position: static;
        flex-basis: 100%;
        display: none;
        min-width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: var(--gzh-drawer-active);
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    .gz-menu li.is-open > .sub-menu { display: block; }
    .gz-menu .sub-menu li { border-bottom: 0; border-top: 1px solid var(--gzh-drawer-line); }
    .gz-header .gz-menu .sub-menu a { flex: 1; padding: 12px 20px 12px 46px; border-left: 0; }
    .gz-header .gz-menu .sub-menu .sub-menu a { padding-left: 62px; }

    .gz-header .gz-sub-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        width: 50px;
        color: var(--gz-muted);
    }
    .gz-sub-toggle svg { width: 16px; height: 16px; transition: transform .25s; }
    .gz-menu li.is-open > .gz-sub-toggle svg { transform: rotate(180deg); }

    .gz-drawer-foot { display: block; margin-top: auto; padding: 20px; }
    .gz-social--drawer { gap: 8px; }

    .gz-logo-line { flex-basis: 60px; }

    .gz-search .gz-search-input,
    .gz-search .gz-search-input:focus { height: 58px; font-size: 18px; }
    .gz-search .gz-search-submit { width: 64px; }
}

@media (max-width: 782px) {
    .admin-bar .gz-nav { top: 46px; }
}

@media (max-width: 480px) {
    .gz-top { padding: 16px 0; }
    .gz-logo .custom-logo { max-height: 56px; }
    .gz-header .gz-site-title { font-size: 22px; letter-spacing: 2px; }
    .gz-logo-line { display: none; }

    .gz-actions,
    .gz-social { gap: 4px; }
    .gz-header .gz-soc,
    .gz-header .gz-theme-toggle { width: 34px; height: 28px; }
    .gz-header .gz-search-open { width: 58px; }

    .gz-search { padding: 16px; }
    .gz-search .gz-search-close { top: 16px; right: 16px; }
}

/* Very small phones: social icons move to the drawer only */
@media (max-width: 359px) {
    .gz-social--bar { display: none; }
}

/* Respect "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
    .gz-header *,
    .gz-header *::before,
    .gz-search,
    .gz-search *,
    .gz-backdrop { transition: none !important; }
}