/* Navbar Base Styles */
nav[data-name="navbar"] {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  width: 100%;
  z-index: 9999;
}

/* Mobile Drawer (Slide-in from Right) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  /* dynamic viewport height */
  max-width: 400px;
  background-color: #000000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  overflow-y: auto;
  border-left: 4px solid #FDE047;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Texture Pattern for Drawer (CSS-only, no external images) */
.drawer-texture {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background-image: linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a),
    linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Prevent body scroll when menu open */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Navigation Links */
.nav-link {
  position: relative;
  display: inline-block;
  transition: all 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Explore Dropdown */
.explore-dropdown-content {
  animation: slideDown 0.2s ease-out forwards;
  transform-origin: top center;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Safe Area Insets (iPhone X+ support) */
.safe-area-padding {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
