/* ============================================
   SHARED MOBILE MENU STYLES
   Reference: casting.css (Starmark Standard)
   ============================================ */

/* --- Hamburger Toggle Button --- */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #d4af37;
  cursor: pointer;
  z-index: 3003;
  transition: transform .3s
}

.menu-toggle:hover {
  transform: scale(1.1);
  color: #fff;
}

/* --- Hide default nav & show toggle on mobile/tablet portrait --- */
@media (max-width: 900px),
(max-width: 1025px) and (orientation: portrait) {
  nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .logo img {
    width: 35px;
    height: 35px
  }

  .logo span {
    font-size: 1.1rem
  }

  header {
    padding: 15px 20px;
    z-index: 3002;
  }
}

/* --- Slide-In Panel --- */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: rgba(13, 1, 1, 0.98);
  padding-top: 80px;
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow-y: auto
}

.nav-mobile.open {
  transform: translateX(0);
  box-shadow: -5px 0 15px rgba(212, 175, 55, 0.1);
}

.nav-mobile ul {
  list-style: none;
  padding: 0;
  display: block
}

.nav-mobile li a {
  display: block;
  padding: 15px 25px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  font-weight: 600;
  transition: background .2s
}

.nav-mobile li.parent-active>a {
  color: #ffd700 !important;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), transparent) !important;
  border-left: 4px solid #d4af37 !important;
  padding-left: 35px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.8) !important;
}

@media (hover: hover) {
  .nav-mobile li a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
  }
}

.nav-mobile li a.active-page {
  color: #d4af37;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-left: none;
  margin: 0;
}

/* --- Submenu Accordion --- */
.nav-mobile .submenu {
  display: none;
  position: relative !important;
  background: rgba(0, 0, 0, 0.4) !important;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.6) !important;
  padding: 5px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  min-width: auto;
}

.nav-mobile .submenu li a {
  color: rgba(255, 255, 255, 0.7) !important;
  padding-left: 50px !important;
  font-size: 0.95rem !important;
  font-family: 'Poppins', sans-serif !important;
  border-bottom: none !important;
}

.nav-mobile .submenu li a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding-left: 55px !important;
  border-left: none !important;
}

/* --- Golden Glow Active Page --- */
.nav-mobile li a.active-page {
  color: #ffd700 !important;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), transparent) !important;
  border-left: 4px solid #d4af37 !important;
  padding-left: 35px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.8) !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.nav-mobile .submenu li a.active-page {
  background: #5c0c0c !important;
  color: #fff !important;
  border-radius: 10px !important;
  border-left: 5px solid #d4af37 !important;
  border-bottom: none !important;
  margin: 5px 10px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  padding-left: 40px !important;
}

/* --- Landscape Mode (Phones) --- */
@media (max-width: 900px) and (orientation: landscape) {
  .nav-mobile {
    padding-top: 60px;
  }

  .nav-mobile li a {
    padding: 8px 25px;
    font-size: 0.9rem;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }

  header {
    padding: 5px 20px;
  }
}


/* Fix for iframe click piercing on mobile */
body.menu-open iframe {
  pointer-events: none !important;
}
