*, *:after, *:before {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

*:focus {
    outline: none;
}

html, 
body {
    height: 100%;
    background: #1e222b;
    color:#000;
    padding: 0; 
    margin:0;
    font-family:'main', sans-serif;
}

html {
    scroll-behavior: smooth;
}


/** LINKI **/
a {
    color:#000;
    text-decoration: none;
}

/** HEADER **/
header {
    width:100%;
    border-bottom: 1px solid #303741;
}

/** NAVIGATION **/
.navigation {
    display: flex;
    align-items: center;
    gap: 12px; 
    margin:0 auto;
    max-width:1200px;
    width:100%;
    padding: 15px 0px;
    min-height: 44px;
}


#menu-header-menu {
    margin-block-start: 0em;
    margin-block-end: 0em;
    padding-inline-start: 0px;
    list-style:none;
    display:flex;
}

header .menu-item a {
    padding: 10px 15px;
    z-index: 100;
    text-transform: uppercase;
    font-weight: 700;
    font-family: gigabold, sans-serif;
    font-size: 17px;
    position: relative;
    color: #f5f5f5;
    text-decoration: none;
    min-height: 35px;
    display: flex;
    align-items: center;
    font-size-adjust: 0.52;
}

header .menu-item a:hover {
    color: #FFCC32;
    border-radius: 6px;
    transition: 
      color 0.16s,
      background 0.14s,
      box-shadow 0.19s;
    text-decoration: none;
    outline: none;
}


header .menu-item a {
    position: relative;
    overflow: hidden;
}

header .menu-item a::after {
    content: '';
    display: block;
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 3px;
    height: 3px;
    background: #FFCC32;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 0.18s, transform 0.18s;
}

header .menu-item a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

@media (max-width: 900px) {
    header .menu-item a::after {
        display: none !important;
    }
}

.logo {
    flex-shrink: 0;
    border-right: 1px solid #303741;
    padding-right: 20px;
}

.logo img {
    max-width:205px;
    height:auto;
}

.custom-logo-link {
    display:flex;
    align-items:center;
}

.main-menu .menu {
    display: flex;
    gap: 18px;
}
  
.main-menu .menu-item:last-child {
    margin-left: auto;
}

/** HAMBURGER **/
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 10px;
    margin-left: 18px;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 48px;
    width: 48px;
  }
  
  .hamburger .bar {
    display: block;
    width: 32px;
    height: 4px;
    margin: 1px 0;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.86,.01,.77,1.01);
    position: relative;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.7);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
  }
  
  @media (max-width: 900px) {
    .hamburger {
      display: flex;
    }
    .main-menu {
      display: none;
      position: absolute;
      top: 79px;
      left: 0;
      right: 0;
      background: #1e222b;
      padding: 18px 0 12px 0;
      z-index: 100;
    }
    .main-menu.active {
      display: block;
    }
    .navigation {
      position: relative;
      padding-left:15px;
      padding-right:15px;
      justify-content:space-between;
    }
    #menu-header-menu {
        flex-direction: column;
  }
  .main-menu .menu-item:last-child {
    margin-left: 0px;
  }
}
  


/** MAIN **/
main {
    background: #1e222b;
    max-width:1200px;
    width:100%;
    margin:0 auto;
}



/** BANNERS **/
.ad-horizontal-slider, .ad-vertical-slider {
    display: flex;
    justify-content: center;
    padding-top:30px;
}

.ad-horizontal-slider img, .ad-vertical-slider img {
    max-width:100%;
    height:auto;
}


/** BUTTONS **/

.btn-more-container {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-more {
    display: inline-block;
    padding: 16px 38px;
    color: #e2e2e8;
    background: transparent;
    border: 2.5px solid var(--color);
    border-radius: 9px;
    font-size: 1.18em;
    font-family: 'gigabold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.14s,
        color 0.14s,
        border-color 0.16s,
        box-shadow 0.17s;
    margin: 24px auto 0 auto;
    box-shadow: 0 0 0 #ffd85730;
    outline: none;
}

/* Obsługa kolorów per sekcja (poprzez dziedziczenie zmiennych CSS) */
.news-color  .btn-more { --color: #FFCC32; }
.tcg-color   .btn-more { --color: #29b6f6; }
.reviews-color .btn-more { --color: #ff4c53; }
.gear-color  .btn-more { --color: #5fffbc; }

.btn-more:hover,
.btn-more:focus {
    background: var(--color, #FFCC32);
    color: #23242b;
    border-color: var(--color, #FFCC32);
    box-shadow: 0 2px 18px var(--color, #FFCC32)40;
    text-decoration: none;
    outline: none;
}

/* Opcjonalnie – żeby tekst nie był przesunięty po kliknięciu */
.btn-more:active {
    filter: brightness(0.94);
}

@media (max-width: 700px) {
    .btn-more {
        width: 100%;
        padding: 15px 0;
        font-size: 1em;
    }
    .btn-more-container {
        padding: 0 8px;
    }
}




/** FOOTER **/

footer {
    width: 100%;
    margin: 1em auto 0;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 26px;
    background: #1c1e27;
    border-top:1px solid #303741;
    padding-top:30px;
    color:#fafafa;
    margin-top:26px;
    padding-bottom:30px;
}

footer a {
    color:#ddd;
}

footer span.footer-menu-title {
    font-size:16px;
    font-family:'gigabold', sans-serif;
    text-transform:uppercase;
}

.footer-info__logo {
    flex-basis: 50%;
}

.footer-info__inner
 {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 1em;
}

.footer-info__socials, .footer_info_links {
    flex-basis: 25%;
}

.footer-info__logo, .footer-info__socials, .footer_info_links {
    display: flex;
    flex-direction: column;
}

.footer-social-menu,
.footer-links-menu {
  display: flex;
  flex-direction: column;
  gap: 0px;
  list-style: none;
  padding: 0;
  margin: 0;
}


/** SEARCH **/
/* SEARCH MODAL OVERLAY */
.search-overlay {
    display: none;
    position: fixed;
    z-index: 2222;
    top: 0; left: 0; right: 0; bottom: 0;
    justify-content: center;
    align-items: center;
  }
  .search-overlay.active { display: flex; }
  .search-overlay-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(25,26,36,0.93);
    z-index: 1;
    transition: background .23s;
  }
  .search-overlay-box {
    position: relative;
    z-index: 2;
    padding: 38px 32px 40px 32px;
    background: #181b22;
    border-radius: 19px;
    box-shadow: 0 8px 40px #000b;
    min-width: 370px;
    max-width: 95vw;
    width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: searchPop .25s cubic-bezier(.82,-0.04,.38,1.23);
  }
  @keyframes searchPop {
    0% { transform: scale(0.92) translateY(16px); opacity:0; }
    100% { transform: scale(1) translateY(0); opacity:1; }
  }
  .search-overlay-form {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    gap: 0;
  }
  .search-overlay-form input[type="search"] {
    flex: 1;
    padding: 15px 19px;
    border-radius: 12px 0 0 12px;
    border: 2.2px solid #ffe47a;
    background: #1e222b;
    color: #ffe47a;
    font-size: 1.23em;
    outline: none;
    transition: border .18s;
    font-family: 'gigabold', sans-serif;
  }
  .search-overlay-form input[type="search"]:focus {
    border-color: #ffd857;
  }
  .search-overlay-form button[type="submit"] {
    background: #ffe47a;
    color: #181b22;
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 0 18px;
    font-size: 1.17em;
    font-family: 'gigabold', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 65px;
    transition: background .18s;
  }
  .search-overlay-form button[type="submit"]:hover {
    background: #ffd857;
  }
  .search-overlay-close {
    position: absolute;
    top: -35px; right: -18px;
    font-size: 2.1em;
    background: none;
    border: none;
    color: #ffe47a;
    opacity: .85;
    cursor: pointer;
    z-index: 4;
    padding: 0 5px;
    transition: opacity .14s;
  }
  .search-overlay-close:hover { opacity: 1; }
  
  /* Mobile adjustments */
  @media (max-width: 480px) {
    .search-overlay-box { min-width: 0; width: 98vw; padding: 22px 4vw 25px 4vw; }
    .search-overlay-form input[type="search"] { font-size: 1.08em; }
  }
  

  /** COOKIES **/
  .cookie-banner {
    position: fixed;
    bottom: 18px;
    left: 0; right: 0;
    background: #23242b;
    color: #e2e2e8;
    z-index: 99999;
    max-width: 80%;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 4px 28px #0008;
    padding: 32px 30px 24px 30px;
    font-size: 1em;
    animation: cookie-slide-in .7s cubic-bezier(.8,-0.1,.22,1.1);
  }
  .cookie-banner__content p {
    margin: 0 0 18px 0;
  }
  .cookie-banner__content a {
    color: #ffe47a;
    text-decoration: underline;
  }
  .cookie-banner__buttons {
    display: flex;
    gap: 16px;
  }
  .cookie-btn {
    font-family: gigabold,sans-serif;
    border: none;
    border-radius: 8px;
    padding: 10px 26px;
    cursor: pointer;
    font-size: 1.05em;
    margin-right: 4px;
    transition: background .13s, color .13s;
  }
  .cookie-btn.primary { background: #FFCC32; color: #23242b; font-weight: bold; }
  .cookie-btn.primary:hover { background: #ffe47a; }
  .cookie-btn.secondary { background: #23242b; color: #FFCC32; border: 2px solid #FFCC32;}
  .cookie-btn.secondary:hover { background: #33354a; color: #ffe47a; }
  
  .cookie-details {
    margin-top: 16px;
    background: #191a1f;
    border-radius: 10px;
    padding: 18px 20px 8px 20px;
  }
  
  @media (max-width: 600px) {
    .cookie-banner {
      left: 2vw; right: 2vw; max-width: 96vw; padding: 16px 6vw 18px 6vw;
      font-size: 1em;
    }
  }
  @keyframes cookie-slide-in {
    from { transform: translateY(120px); opacity: 0;}
    to { transform: translateY(0); opacity: 1;}
  }
  