/* CryptoChampion header, sidebar & footer (from front-page.php) */

* {
  box-sizing: border-box;
}

/* VAG @font-face is injected in wp_head only when the file exists (see inc/performance.php). */

.font-vag,
body.ccg-theme {
  font-family: VAG, "Segoe UI", system-ui, sans-serif;
}

body.ccg-theme {
  background-color: #000;
  margin: auto;
  /* max-width: 1800px; */
}

body.ccg-theme a {
  color: #0f3049;
  text-decoration: none;
}

body.ccg-theme a:hover {
  color: #694114;
}

.ccg-skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.ccg-skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 99999;
}

.button {
  background: linear-gradient(180deg, #53ea9a, #116638);
  border-radius: 12px;
  color: #0c572f;
  cursor: pointer;
  font-size: 24px;
  gap: 20px;
  height: 58px;
  min-width: 250px;
  padding: 5px;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition: 0.3s ease;
}

.button:hover {
  transform: translateY(-10px) scale(1);
}

.button div {
  align-items: center;
  border-radius: 12px;
  display: flex;
  height: 100%;
  justify-content: center;
  line-height: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

.btn-green {
  text-shadow: -1px -1px 0 #53ea9a, 1px -1px 0 #53ea9a, -1px 1px 0 #53ea9a, 1px 1px 0 #53ea9a;
}

.btn-green div {
  background: #46c883;
}

#header {
  align-items: center;
  background-color: #c5f6ed;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  margin-bottom: 0px;
  padding: 20px;
  position: relative;
  width: 100%;
  z-index: 50;
}

.dashboard {
  display: none;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.dashboard img {
  display: block;
  height: 32px;
  width: auto;
}

.ccg-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.ccg-header__brand .site-logo,
.ccg-header__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logos,
#header .custom-logo,
#header .site-logo img {
  display: block;
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.metamask-logo {
  height: 40px;
  width: auto;
}

.ccg-header-wallet {
  flex-shrink: 0;
}

.ccg-sidebar-wallet {
  display: none;
  margin-top: 12px;
  width: 100%;
}

.ccg-sidebar-wallet .button {
  margin: 0;
  min-width: 0;
  transform: none;
  width: 100%;
}

.ccg-sidebar-wallet .button:hover {
  transform: translateY(-6px) scale(1);
}

.ccg-sidebar-wallet .font-vag {
  font-size: clamp(20px, 4.5vw, 24px);
}

.main-menu {
  align-items: center;
  color: #0f3049;
  display: flex;
  font-size: 24px;
  gap: 20px;
  justify-content: center;
  transition: 0.3s ease;
}

.main-menu a:hover {
  color: #fff;
  text-shadow: -1px -1px 0 #000;
  transition: 0.2s ease;
}

.sidebar-menu {
  background-color: #08101f;
  height: 100vh;
  height: 100dvh;
  left: -100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: fixed;
  top: 0;
  transition: left 0.3s ease-in-out;
  width: 100%;
  z-index: 100;
  -webkit-overflow-scrolling: touch;
}

.sidebarOpen {
  left: 0;
}

.sidebar-container {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 auto;
  min-height: 100%;
  padding: 0 24px 32px;
  width: 100%;
}

.sidebar-container .sidebar-header {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 20px 0;
  width: 100%;
}

.sidebar-container .sidebar-header .logo {
  display: block;
  height: auto;
  max-width: 150px;
  object-fit: contain;
  width: auto;
}

.sidebar-container .sidebar-header a {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.sidebar-container .sidebar-header .close {
  display: block;
  height: 40px;
  width: 40px;
}

.sidebar-container > a {
  border-radius: 12px;
  box-sizing: border-box;
  display: block;
  margin-bottom: 12px;
  width: 100%;
}

.btn-sidemenu {
  background: linear-gradient(180deg, #50596b, #242a35);
  color: #fff;
  font-size: clamp(22px, 5vw, 22px);
  height: 64px;
  min-width: 0;
  text-shadow: -1px -1px 0 #50596b, 1px -1px 0 #50596b, -1px 1px 0 #50596b, 1px 1px 0 #50596b;
  width: 100%;
}

.btn-sidemenu div {
  background: #3a4456;
  border-radius: 12px;
}

.sidebar-info {
  color: #c5f6ed;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 24px;
  padding: 0 8px;
  text-align: center;
  width: 100%;
}

#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.site-footer.ccg-footer {
  align-items: center;
  background-color: #000;
  border: 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  min-height: 220px;
  padding: 24px 50px;
  width: 100%;
}

.ccg-footer__brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
}

.ccg-footer__brand .custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

.ccg-footer__logo,
.site-footer.ccg-footer .custom-logo,
.site-footer.ccg-footer img.ccg-footer__logo {
  display: block;
  height: 150px;
  max-width: 180px;
  object-fit: contain;
  width: auto;
}

.ccg-footer__menu {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: clamp(14px, 2.5vw, 32px);
  justify-content: center;
  width: auto;
}

.ccg-footer__menu a {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.ccg-footer__menu a:hover {
  color: #c5f6ed;
}

.ccg-footer__info {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: clamp(20px, 4vw, 56px);
  justify-content: flex-end;
  text-align: right;
  width: auto;
}

.ccg-footer__info span {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
}

/* Inner page shell lives in assets/css/main.css */

@media (max-width: 1200px) {
  body.home .main-menu {
    transform: scale(0.8);
  }

  body.home #loginMetamask.button {
    transform: translateY(0) scale(0.8);
  }

  body.home #loginMetamask.button:hover {
    transform: translateY(-10px) scale(0.8);
  }
}

@media (max-width: 950px) {
  #header {
    gap: 12px;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .dashboard {
    display: block;
  }

  .main-menu {
    display: none !important;
  }

  .ccg-header-wallet {
    display: none !important;
  }

  .ccg-sidebar-wallet {
    display: block;
  }

  .logos,
  #header .custom-logo,
  #header .site-logo img {
    height: 80px;
  }
}

@media (max-width: 1100px) {
  .site-footer.ccg-footer {
    flex-wrap: wrap;
    justify-content: center;
    padding: 32px 24px;
    row-gap: 20px;
  }

  .ccg-footer__menu {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
    order: 2;
  }

  .ccg-footer__info {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
    text-align: center;
  }

  .ccg-footer__info span {
    white-space: normal;
  }
}

@media (max-width: 600px) {

  .ccg-footer__logo,
  .site-footer.ccg-footer .custom-logo {
    height: 120px;
    max-width: 150px;
  }

  .ccg-footer__info {
    flex-direction: column;
    gap: 8px;
  }
}

.docsSlider.is-slider-ready .slick-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.docsSlider.is-slider-ready .slick-slide {
  box-sizing: border-box;
  float: none;
  height: auto;
  margin-bottom: 0;
  transform: scale(0.9);
}

.docsSlider.is-slider-ready .slick-slide > div {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
}

.docsSlider.is-slider-ready .partner {
  align-items: center;
  display: inline-flex !important;
  justify-content: center;
  width: 100% !important;
}

.docsSlider.is-slider-ready .partner img {
  display: block;
  height: auto;
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

@media (max-width: 768px) {
  .docsSlider.is-slider-ready .partner img {
    max-height: 40px;
  }
}

.game-info.is-slider-ready .slick-track {
  align-items: stretch;
}

.game-info.is-slider-ready .slick-slide {
  box-sizing: border-box;
  float: none;
  height: auto;
}

.game-info.is-slider-ready .slick-slide > div,
.game-info.is-slider-ready .info-data {
  height: 100%;
  width: 100% !important;
}

.game-info.is-slider-ready .magic-dots.slick-dots {
  margin-top: 24px;
  width: auto !important;
}

.game-info.is-slider-ready .magic-dots.slick-dots ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-info.is-slider-ready .magic-dots.slick-dots li {
  margin: 0;
}
