/* ======================================================
   menu.css — 12.17.2025 — 03:22 AM CST
   Navigation + Submenus + Mobile Overlay + Mobile Topbar
   FINAL MERGED / STABLE
   GDRankin The Bee Place 3.0 — TBP-3.5 SandBox
   ====================================================== */


/* ======================================================
   TOP NAV BAR
   ====================================================== */

.tbp-nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 2000;
}

.tbp-logo-img { height: 42px; }


/* ======================================================
   DESKTOP MENU
   ====================================================== */

.tbp-nav-main {
  flex: 1;
  display: flex;
  justify-content: center;
}

.tbp-menu {
  list-style: none;
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.tbp-menu-item { position: relative; }

.tbp-menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #E8E2C8;
  font-size: 16px;
  padding: 8px 10px;
  user-select: none;
}

.tbp-menu-link:hover  { color: #CFB53B; }
.tbp-menu-link:active { color: #F1D77B; }

#tbp-more-item { margin-right: 10px; }


/* ======================================================
   DROPDOWN ARROW — GOLD METALLIC
   ====================================================== */

.tbp-arrow {
  width: 16px;
  height: 16px;
  display: inline-block;
  mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">\
<polygon points="0,0 20,0 10,14"/>\
</svg>') no-repeat center / contain;

  background: linear-gradient(
    to bottom,
    #000000 0%,
    #2a2a2a 15%,
    #F1D77B 55%,
    #8a6b00 85%,
    #000000 100%
  );
}

.tbp-expander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  margin-right: 4px;
  cursor: pointer;
}


/* ======================================================
   LEAF ICON
   ====================================================== */

.tbp-leaf-dot {
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-right: 6px;
  mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">\
<polygon points="4,0 14,10 4,20"/>\
</svg>') no-repeat center / contain;

  background: linear-gradient(
    to right,
    rgba(255,215,0,0.2),
    #CFBA6F,
    rgba(255,215,0,0.8)
  );
}


/* ======================================================
   DESKTOP SUBMENU PANEL
   ====================================================== */

.tbp-submenu-panel {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  display: none;
  pointer-events: none;
  z-index: 3000;
}

.tbp-submenu-panel.is-open {
  display: block;
  pointer-events: auto;
}

.tbp-submenu-group {
  position: absolute;
  top: 0;
  background: rgba(0,0,0,0.88);
  border: 1px solid #333;
  border-radius: 4px;
  padding: 10px 14px;
  white-space: nowrap;
  display: none;
}

.tbp-submenu-group.is-active { display: block; }

.tbp-submenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tbp-submenu-item { padding: 4px 0; }

.tbp-submenu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E8E2C8;
  font-size: 15px;
  text-decoration: none;
}

.tbp-submenu-link:hover  { color: #CFB53B; }
.tbp-submenu-link:active { color: #F1D77B; }

.tbp-submenu-link.level-2 { padding-left: 4px; }
.tbp-submenu-link.level-3 { padding-left: 14px; }
.tbp-submenu-link.level-4 { padding-left: 22px; }


/* ======================================================
   MOBILE OVERLAY MENU — RESTORED STYLING
   ====================================================== */

.tbp-mobile-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  z-index: 1500;
  padding: 0 20px;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}

.tbp-mobile-overlay.is-open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.tbp-mobile-inner {
  background: rgba(0,0,0,0.9);
  border: 1px solid #333;
  border-radius: 4px;
  padding: 16px 20px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}


/* MOBILE MENU LIST */

.tbp-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tbp-mobile-item-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.tbp-mobile-link {
  color: #E8E2C8;
  font-size: 22px;
  text-decoration: none;
  flex: 1;
}

.tbp-mobile-link:hover  { color: #CFB53B; }
.tbp-mobile-link:active { color: #F1D77B; }

.tbp-mobile-submenu {
  display: none;
  padding-left: 22px;
}

.tbp-mobile-item.is-expanded > .tbp-mobile-submenu {
  display: block;
}


/* MOBILE SUBMENU TOGGLE ARROWS */

.tbp-mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin-right: 4px;
  position: relative;
}

.tbp-mobile-toggle::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #F1D77B;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tbp-mobile-item.is-expanded
  > .tbp-mobile-item-row .tbp-mobile-toggle::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

.tbp-mobile-toggle-empty {
  width: 24px;
  height: 24px;
  display: inline-block;
}


/* ======================================================
   MOBILE TOPBAR IMAGE + HOTSPOTS
   ====================================================== */

.tbp-mobile-topbar { display: none; }

@media (max-width: 640px) {

  .tbp-logo-wrap,
  .tbp-nav-right,
  .tbp-nav-main { display: none !important; }

  .tbp-nav-bar {
    justify-content: center !important;
    padding: 0 !important;
  }

  .tbp-mobile-topbar {
    display: block !important;
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    line-height: 0;
  }

  .tbp-mobile-topbar-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
  }

  .tbp-mobile-hotspot {
    position: absolute;
    top: 0;
    bottom: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  /* 18 / 64 / 18 */
  .tbp-mobile-hotspot--hamburger { left: 0;   width: 18%; }
  .tbp-mobile-hotspot--home      { left: 18%; width: 64%; }
  .tbp-mobile-hotspot--search    { right: 0;  width: 18%; }
}


/* ======================================================
   DESKTOP SAFETY
   ====================================================== */

@media (min-width: 641px) {
  .tbp-mobile-topbar { display: none !important; }
}


/* ======================================================
   END OF FILE
   ====================================================== */
