/* ============================================================
   LAYOUT.CSS — Header & Footer restyled from cyberskins design
   Source: wp-content/themes/cyberskins/main.css + cs2-shop.html

   Cyberskins palette:
     bg-0:    #080A0E   (page background)
     bg-1:    #0B0D12   (footer background)
     bg-card: #0D1018   (card surfaces)
     red:     #F5222D   (primary accent)
     orange:  #FF6B00   (secondary accent)
     txt:     #F0F2F8   (primary text)
     txt2:    #8B8F9A   (muted text)
     txt3:    #4A4E5A   (dim text)
     bdr:     rgba(255,255,255,0.07)
     bdr2:    rgba(255,255,255,0.13)
   ============================================================ */

/* ── CSS tokens: cyberskins palette available on every page ── */
:root {
    --cs-bg-0:    #080A0E;
    --cs-bg-1:    #0B0D12;
    --cs-bg-card: #0D1018;
    --cs-red:     #F5222D;
    --cs-orange:  #FF6B00;
    --cs-txt:     #F0F2F8;
    --cs-txt2:    #8B8F9A;
    --cs-txt3:    #4A4E5A;
    --cs-bdr:     rgba(255, 255, 255, 0.07);
    --cs-bdr2:    rgba(255, 255, 255, 0.13);
}


/* ══════════════════════════════════════════════
   HEADER
   Maps: cyberskins `nav#main-nav`
   ══════════════════════════════════════════════ */

/* Cyberskins nav is always dark — no gradient top line */
.header::before {
    display: none;
}

/* Dark glass nav — cyberskins: rgba(8,10,14,0.88) + blur(24px) */
.header {
    background: rgba(8, 10, 14, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--cs-bdr);
    box-shadow: none;
}

/* On scroll: more opaque, sharper shadow */
.header--scrolled {
    background: rgba(8, 10, 14, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
}


/* ── Nav links — Rajdhani, uppercase, red underline ── */

/* Maps: cyberskins .nav-links a */
.header__nav-link {
    font-family: 'Rajdhani', 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cs-txt2);
    opacity: 1;         /* override style.css 0.85 */
}

/* Red underline slide (cyberskins uses var(--red)) */
.header__nav-link::after {
    background-color: var(--cs-red) !important;
    height: 1px;
}

.header__nav-link:hover {
    color: var(--cs-txt) !important;
    opacity: 1;
    text-shadow: none;
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
    width: 100%;
}

.header__nav-link--active {
    color: var(--cs-txt) !important;
    opacity: 1;
    text-shadow: none;
}


/* ── Search form — flex row so input + button stay in one line ── */
.header__search-form {
    display: flex;
    align-items: center;
}

/* ── Icon Buttons — maps: cyberskins .nav-icon-btn ── */
.header__icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.header__icon-btn:hover {
    border-color: rgba(245, 34, 45, 0.45);
    background: rgba(245, 34, 45, 0.08);
    color: #fff;
    box-shadow: 0 0 14px rgba(245, 34, 45, 0.2);
}


/* ── Cart badge — maps: cyberskins .nav-cart-count (red circle) ── */
.header__cart-badge {
    background: var(--cs-red);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 800;
    border: 1.5px solid #080A0E;
    top: -5px;
    right: -5px;
}

.header__cart-badge:empty {
    display: none;
}


/* ── Wishlist badge — same red circle style ── */
.header__icon-btn--wishlist {
    position: relative;
}

.header__wish-badge {
    background: var(--cs-red);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    min-width: unset;
    padding: 0;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    border: 1.5px solid #080A0E;
    position: absolute;
    top: -5px;
    right: -5px;
    display: none;
    align-items: center;
    justify-content: center;
}

.header__wish-badge:not(:empty) {
    display: flex;
}


/* ── Steam Login / My Account button
   Maps: cyberskins .btn-primary-nav
   Red-orange gradient, skewed clip-path, shine animation ── */
.header__login {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--cs-red), var(--cs-orange));
    border: none;
    padding: 10px 22px;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    gap: 10px;
}

/* Shine sweep — maps: cyberskins .btn-primary-nav::after */
.header__login::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    animation: csLoginShine 3s infinite 1s;
    pointer-events: none;
    z-index: 1;
}

@keyframes csLoginShine {
    0%, 100% { left: -60%; }
    50%       { left: 130%; }
}

.header__login:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--cs-red), var(--cs-orange));
    border: none;
    box-shadow: 0 0 30px rgba(245, 34, 45, 0.5), 0 0 60px rgba(255, 107, 0, 0.2);
}


/* Login text above the shine */
.header__login-text {
    position: relative;
    z-index: 2;
}


/* ── Burger — red bars when open ── */
.header__burger--open .header__burger-bar {
    background-color: var(--cs-red);
    box-shadow: 0 0 8px rgba(245, 34, 45, 0.5);
}


/* ── Mobile nav overlay ── */
.header__mobile-nav {
    background-color: rgba(8, 10, 14, 0.99);
    border-top: 1px solid var(--cs-bdr);
}

/* Mobile nav links — Barlow Condensed, cyberskins style */
.header__mobile-nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.header__mobile-nav-link:hover {
    color: var(--cs-red);
    text-shadow: 0 0 16px rgba(245, 34, 45, 0.4);
}

/* Mobile login button — same red-orange treatment */
.header__mobile-login {
    background: linear-gradient(135deg, var(--cs-red), var(--cs-orange)) !important;
    color: #fff !important;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%) !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.header__mobile-login:hover {
    box-shadow: 0 0 24px rgba(245, 34, 45, 0.5) !important;
    filter: none !important;
}

/* Mobile search submit button */
.header__mobile-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: color .2s ease;
    flex-shrink: 0;
}

.header__mobile-search-btn:hover {
    color: var(--cs-red);
}

.header__mobile-search-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Mobile search input focus: red border instead of green */
.header__mobile-search-input:focus {
    border-color: rgba(245, 34, 45, 0.5);
}

/* Desktop search input focus: red instead of green */
.header__search-wrap.open .header__search-input {
    border-color: rgba(245, 34, 45, 0.55);
}


/* ══════════════════════════════════════════════
   FOOTER
   Maps: cyberskins `.site-footer` 4-column grid
   ══════════════════════════════════════════════ */

.footer {
    background: var(--cs-bg-1);
    border-top: 1px solid var(--cs-bdr);
    position: relative;
}

/* 4-column grid: 280px brand + 3 equal nav cols */
.footer-top {
    display: grid;
    grid-template-columns: 280px 1fr 1fr 1fr;
    gap: 0;
    padding: 56px clamp(20px, 5vw, 52px) 48px;
    border-bottom: 1px solid var(--cs-bdr);
}

.footer-col-wrap {
    padding-right: 40px;
}

.footer-col-wrap:last-child {
    padding-right: 0;
}


/* ── Brand column ── */
.footer-logo-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cs-txt);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-link:hover {
    color: var(--cs-txt);
    text-decoration: none;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.footer-desc {
    font-size: 12.5px;
    color: var(--cs-txt2);
    line-height: 1.65;
    margin-top: 16px;
    max-width: 240px;
}

/* Social row */
.footer-socials {
    display: flex;
    gap: 9px;
    margin-top: 22px;
}

.footer-social {
    width: 36px;
    height: 36px;
    background: var(--cs-bg-card);
    border: 1px solid var(--cs-bdr2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-txt2);
    text-decoration: none;
    font-size: 0;    /* hide any text, keep SVG */
    transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.footer-social:hover {
    border-color: rgba(245, 34, 45, 0.55);
    color: var(--cs-txt);
    background: rgba(245, 34, 45, 0.07);
    text-decoration: none;
}

.footer-social svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* ── Nav column title — red bar + uppercase label ── */
.footer-col-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--cs-txt);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col-title::before {
    content: '';
    width: 14px;
    height: 1px;
    background: var(--cs-red);
    flex-shrink: 0;
}


/* ── Nav links — red dot + indent on hover ── */
.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* Cover both fallback HTML and real wp_nav_menu() output */
.footer-col-links a,
.footer-col-links li a {
    font-size: 13px;
    color: var(--cs-txt2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
    transition: color .2s ease, padding-left .25s ease;
}

.footer-col-links a::before,
.footer-col-links li a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cs-red);
    opacity: 0;
    transition: opacity .2s ease, left .25s ease;
}

.footer-col-links a:hover,
.footer-col-links li a:hover {
    color: var(--cs-txt);
    padding-left: 12px;
    text-decoration: none;
}

.footer-col-links a:hover::before,
.footer-col-links li a:hover::before {
    opacity: 1;
    left: 0;
}


/* ── Footer bottom bar ── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(20px, 5vw, 52px);
}

.footer-copy {
    font-size: 11px;
    color: var(--cs-txt3);
    letter-spacing: .05em;
}


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: 240px 1fr 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        padding-bottom: 40px;
    }
    .footer-col-wrap { padding-right: 0; }
}

@media (max-width: 768px) {
    .header__login {
        padding: 9px 14px;
        font-size: 11px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 0;
    }
    .footer-desc { max-width: 100%; }
    .footer-bottom { padding: 16px 0; }
}
