@charset "UTF-8";
/* ===================================
   Mobile Navigation Styles — Brand73
   With dark/light theme support
   Extracted & adapted from Brand/2023 mobile-nav.css
   =================================== */

/* ===== Desktop: hide mobile nav ===== */
@media screen and (min-width: 951px) {
  .top {
    display: none !important;
  }
}

/* ===== Mobile: show mobile nav, hide desktop bar ===== */
@media screen and (max-width: 950px) {
  #ztopp {
    display: none !important;
  }

  .top {
    height: 44px;
    background-color: #e9ebf0f0;
    width: 100%;
    top: 0;
    position: fixed;
    z-index: 1000;
    border-bottom: 1px solid #ffffff85;
  }

  /* Hamburger icon (left) */
  .wrapper-dropdown-5 {
    width: 44px;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    height: 44px;
    position: absolute;
    left: 0;
    top: 0;
  }

  /* Dropdown panel */
  .wrapper-dropdown-5 .dropdown {
    position: fixed;
    left: 0;
    right: 0;
    list-style: none;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    background-color: #e9ebf0f0;
    border-bottom-width: 1px;
    border-bottom-color: #C1C1C1;
    height: 100vh;
  }

  .wrapper-dropdown-5.active .dropdown {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 100vh;
    margin-top: 0px;
  }

  /* Center logo */
  .logo {
    height: 44px;
    width: 44px;
    display: block;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    position: relative;
    z-index: 1;
  }

  .logo img {
    display: block;
    width: 44px;
    height: 44px;
  }

  /* Pencil icon (right) */
  #pencil {
    height: 44px;
    width: 44px;
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    padding: 0;
    float: none;
  }

  #pencil img {
    display: block;
    width: 44px;
    height: 44px;
  }

  /* Nav grid */
  .index_nav3 {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 95%;
    margin: auto;
    margin-top: 15px;
  }

  .index_nav_icon {
    width: 100%;
    float: left;
    text-align: center;
    box-shadow: 0 0 5px rgb(0 0 0 / 4%) !important;
    border: 1px solid #ffffffeb !important;
    background-color: #f6f6f6a8;
    border-radius: 10px;
  }

  .index_nav_icon a {
    text-decoration: none;
    display: block;
    color: #000000;
  }
}

/* ===== Desktop Theme Toggle in #ztopp ===== */
#ztopp #theme-toggle-li {
  position: absolute;
  top: 18px;
  right: 30px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#ztopp #theme-toggle-li:hover {
  background: rgba(255, 255, 255, 0.1);
}

#ztopp #theme-toggle-li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
}

/* Sun icon — visible in dark mode */
#theme-toggle-li .theme-icon-sun {
  display: none;
  color: #f1c40f;
}

/* Moon icon — visible in light mode */
#theme-toggle-li .theme-icon-moon {
  display: block;
  color: #9ea2a9;
}

#theme-toggle-li .theme-icon-moon:hover {
  color: #2f3c53;
}

html[data-theme="dark"] #theme-toggle-li .theme-icon-sun {
  display: block;
}

html[data-theme="dark"] #theme-toggle-li .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] #ztopp #theme-toggle-li:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===== Dark Mode Overrides — Mobile Nav ===== */
@media screen and (max-width: 950px) {

  /* Top bar: dark translucent background */
  html[data-theme="dark"] .top {
    background-color: #000000cf !important;
    border-bottom: 1px solid #25252585 !important;
  }

  /* Hamburger icon: switch to white version */
  html[data-theme="dark"] .wrapper-dropdown-5 {
    background-image: url(https://www.qijishow.com/down/assets/images/nav_icon2.png) !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  html[data-theme="dark"] .wrapper-dropdown-5 img {
    display: none !important;
  }

  /* Logo: switch to white version */
  html[data-theme="dark"] .logo {
    background-image: url(https://www.qijishow.com/down/assets/images/logo2.png) !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  html[data-theme="dark"] .logo img {
    display: none !important;
  }

  /* Pencil icon: switch to white version */
  html[data-theme="dark"] #pencil {
    background-image: url(https://www.qijishow.com/down/assets/images/pencil_icon2.png) !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  html[data-theme="dark"] #pencil img {
    opacity: 0 !important;
  }

  /* Dropdown panel: dark background */
  html[data-theme="dark"] .wrapper-dropdown-5 .dropdown {
    background-color: #121212fa !important;
    height: 100vh !important;
  }

  /* Active dropdown position */
  html[data-theme="dark"] .wrapper-dropdown-5.active .dropdown {
    margin-top: 42px !important;
    max-height: 100vh !important;
  }

  /* Nav item cards: dark */
  html[data-theme="dark"] .index_nav_icon {
    background-color: #2d2d2d !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  }

  /* Nav item text: white */
  html[data-theme="dark"] .index_nav_icon a {
    color: #ffffff !important;
  }
}

/* ===== Light Mode Page Body Overrides =====
   Brand73 page is dark by default; override to light
   when data-theme="light" */
html[data-theme="light"] {
  background-color: #f0f0f0 !important;
}

html[data-theme="light"] body {
  background-color: #f0f0f0 !important;
  color: #333 !important;
}

/* Scrollbar — light mode */
html[data-theme="light"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: #e0e0e0;
}

html[data-theme="light"] ::-webkit-scrollbar-track-piece {
  background: #e8e8e8;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 4px;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* Desktop bar — light mode */
html[data-theme="light"] #ztopp {
  background-image: none;
  background-color: #ffffffe6;
  border-bottom: 1px solid #e0e0e0;
}

/* Text colors — light mode */
html[data-theme="light"] .copyright4 dd.b a {
  color: #555 !important;
}

html[data-theme="light"] .copyright4 dd.b p {
  color: #999 !important;
}

html[data-theme="light"] .vis p {
  color: #666 !important;
}

html[data-theme="light"] #ss-dropdown-toggle {
  color: #000 !important;
}

/* ===== Dark Mode Page Body ===== */
html[data-theme="dark"] body {
  background-color: #0a0a0a !important;
}

html[data-theme="dark"] #ztopp {
  background-image: none !important;
  background-color: #000000cf !important;
  border-bottom: 1px solid #25252585;
}

html[data-theme="dark"] .logo2 a {
  opacity: 0.7;
}

html[data-theme="dark"] .logo2 a:hover {
  opacity: 1;
}

html[data-theme="dark"] .copyright4 dd.b a {
  color: #aaa !important;
}

html[data-theme="dark"] .copyright4 dd.b p {
  color: #666 !important;
}
