/* ---------- Base Styles ---------- */
.header-desktop {
  display: block;
}

.header-mobile {
  display: none;
}

@media (max-width: 991px) {
  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: block;
    width: 100%;
    background: #0f0f1b;
    border-bottom: 1px solid #2affff;
    padding: 10px 0;
    box-shadow: 0 0 10px #2affff80;
    z-index: 100;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 15px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #00ffe7;
    font-family: 'Orbitron', sans-serif;
  }

  .logo img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #00ffe7;
    background: #1a1a2e;
    padding: 2px;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 35px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
  }

  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 16px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu::-webkit-scrollbar {
    width: 6px;
  }

  .mobile-menu::-webkit-scrollbar-thumb {
    background-color: #00ffe7;
    border-radius: 10px;
  }

  .mobile-menu a,
  .mobile-menu .submenu-toggle {
    display: block;
    padding: 10px;
    background: #0f0f1b;
    border: 1px solid #2affff;
    border-radius: 6px;
    color: #00ffe7;
    font-size: 15px;
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px #2affff80;
    margin-top: 10px;
  }

  .mobile-menu a:hover,
  .mobile-menu .submenu-toggle:hover {
    background: #111133;
    color: #ffffff;
    box-shadow: 0 0 8px #00ffe7;
  }

  .submenu-toggle::after {
    content: '▾';
    float: right;
    transition: transform 0.3s ease;
  }

  .submenu-toggle.active::after {
    transform: rotate(180deg);
  }

  .submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    padding-left: 10px;
  }

  .submenu.show {
    max-height: 500px;
    opacity: 1;
  }

  .submenu a {
    background: none;
    border: none;
    padding: 6px 0;
    font-size: 14px;
    color: #9effff;
    font-family: monospace;
  }

  .submenu a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #00ffe7;
  }
}

#search-results {
  position: absolute;
  top: 100%; /* Just below the input */
  left: 15px;
  right: 15px;
  background: #1a1a2e;
  color: #00ffe7;
  border: 1px solid #2affff;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 0 10px #2affff80;
  z-index: 9999;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  padding: 5px 0;
}

.search-item {
  padding: 8px 12px;
  font-family: monospace;
  cursor: pointer;
}

.search-item a {
  color: #00ffe7;
  text-decoration: none;
  display: block;
}

.search-item:hover {
  background-color: #2affff20;
}


