/* =============================================
   NAVIGATION - SIMPLE APP DRAWER (LEFT SIDE)
   ============================================= */

/* Navbar Container */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #050507; /* Darker solid color */
  border-bottom: 2px solid rgba(214, 178, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Move burger to left */
  padding: 0 15px;
  z-index: 10001; /* Keep navbar above everything */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Burger Button - Left Aligned */
#burgerBtn {
  display: flex; /* Always flex now, hidden on desktop below */
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid rgba(214, 178, 94, 0.4);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  z-index: 10002;
  transition: all 0.2s ease;
}

#burgerBtn:active {
  transform: scale(0.9);
}

#burgerBtn span {
  width: 24px;
  height: 2px;
  background: #d6b25e;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transformation to X */
#burgerBtn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#burgerBtn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#burgerBtn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Links Container */
#navLinks {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* Push desktop links to right */
}

/* Desktop Item Style */
#navLinks .nav-link,
#navLinks .nav-item {
  text-decoration: none;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  margin: 0;
  padding: 8px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#navLinks .nav-link:hover {
  background: rgba(214, 178, 94, 0.1);
  color: #d6b25e;
}

#navLinks .nav-link.active {
  color: #d6b25e;
  background: rgba(214, 178, 94, 0.15);
}

/* DESKTOP HIDE BURGER */
@media (min-width: 992px) {
  #burgerBtn {
    display: none !important;
  }
}

/* =============================================
   MOBILE OVERRIDES (DRAWER STYLE)
   ============================================= */

@media (max-width: 991px) {
  #burgerBtn {
    display: flex !important;
  }

  /* SIDEBAR DRAWER */
  #navLinks {
    position: fixed;
    top: 70px; /* START BELOW NAVBAR */
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: calc(100vh - 70px);
    background: #0d0d12; /* Solid dark color */
    flex-direction: column;
    padding: 20px 0;
    margin: 0;
    gap: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.6);
    border-right: 1px solid rgba(214, 178, 94, 0.15);
    z-index: 10000;
    overflow-y: auto;
    display: flex !important;
  }

  #navLinks.open {
    transform: translateX(0);
  }

  /* OVERLAY BACKDROP */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* MOBILE ITEMS - FULL WIDTH CLICKABLE */
  #navLinks .nav-link,
  #navLinks .nav-item {
    display: flex !important;
    flex-direction: row !important; /* Horizontal layout Icon | Text */
    align-items: center !important;
    width: 100% !important;
    padding: 18px 25px !important; /* Large touch target */
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    cursor: pointer !important;
  }

  /* PREVENT CHILDREN FROM STEALING CLICKS */
  #navLinks .nav-link *,
  #navLinks .nav-item * {
    pointer-events: none !important;
  }

  #navLinks .nav-link:hover,
  #navLinks .nav-item:hover {
    background: rgba(214, 178, 94, 0.08) !important;
    color: #fff !important;
    padding-left: 30px !important; /* Interactive feel */
  }

  #navLinks .nav-link.active,
  #navLinks .nav-item.active {
    background: rgba(214, 178, 94, 0.12) !important;
    color: #e5c37d !important;
  }

  /* Indicator for active item */
  #navLinks .nav-link.active::before,
  #navLinks .nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d6b25e;
    box-shadow: 2px 0 10px rgba(214, 178, 94, 0.4);
  }

  /* Icon spacing */
  #navLinks .nav-icon {
    width: 22px;
    height: 22px;
    margin-right: 15px; /* Gap between icon and text */
    opacity: 0.8;
  }

  /* ADMIN LINK SPECIAL */
  #navLinks .nav-admin {
    margin-top: 10px !important;
    border-top: 1px solid rgba(214, 178, 94, 0.1) !important;
    background: rgba(214, 178, 94, 0.03) !important;
  }
}

/* Extra Small Screens */
@media (max-width: 400px) {
  #navLinks {
    width: 250px;
  }
}
