/* Navbar Styles */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  background: white;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(139, 47, 201, 0.15);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  pointer-events: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: auto;
}

/* Logo - Fresh Implementation */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 10;
  position: relative;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 48px;
  width: 120px;
  min-width: 120px;
  max-width: 200px;
  object-fit: contain;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.logo-img {
  height: 3rem;
  object-fit: contain;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links button {
  color: #374151;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 1rem;
  padding: 0.5rem 0;
}

.nav-links button:hover {
  color: #6A1B9A;
}

/* Actions - already defined above with pointer-events */
/* .nav-actions defined at top of file */

.verify-btn {
  background: linear-gradient(135deg, #8B2FC9 0%, #E91E8C 50%, #F5A623 100%);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  font-size: 1rem;
}

.verify-btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 100;
  pointer-events: auto;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
  background-color: #F3F4F6;
}

/* Ensure mobile menu button is always visible on mobile */
@media (max-width: 767px) {
  .mobile-menu-btn,
  .mobile-menu-btn.mobile-only {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Make sure icons inside are clickable */
  .mobile-menu-btn i {
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
  }
}

.mobile-menu-btn i {
  color: #111827;
  width: 1.5rem;
  height: 1.5rem;
}

/* Close icon hidden by default */
.mobile-menu-btn .close-icon {
  display: none !important;
}

.mobile-menu-btn .menu-icon {
  display: block !important;
}

/* Mobile Menu - Hidden by default */
.mobile-menu,
.mobile-menu.mobile-only {
  display: none !important;
}

.mobile-menu.show,
.mobile-menu.mobile-only.show {
  display: flex !important;
  flex-direction: column;
  padding: 1rem 0;
  background: white;
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-menu button:hover {
  color: #6A1B9A;
}

.mobile-menu .verify-btn {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .mobile-only {
    display: flex !important;
  }
  
  .mobile-only.mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  /* Keep mobile menu hidden by default even with .mobile-only class */
  .mobile-only.mobile-menu:not(.show) {
    display: none !important;
  }
  
  /* Ensure nav-actions and mobile menu button are visible on mobile */
  .nav-actions {
    display: flex !important;
    align-items: center;
  }
  
  .mobile-menu-btn.mobile-only {
    display: flex !important;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-actions .verify-btn {
    display: none;
  }
  
  /* Ensure logo stays visible on mobile */
  .logo {
    flex-shrink: 0;
  }
  
  .logo-img {
    height: 40px;
    width: auto;
    max-width: 140px;
  }
  
  /* Better mobile menu button styling */
  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    padding: 0.5rem;
    margin-left: 0.5rem;
  }
  
  .mobile-menu-btn i {
    width: 24px;
    height: 24px;
  }
  
  /* Mobile menu buttons styling */
  .mobile-menu button {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid #f3f4f6;
  }
  
  .mobile-menu button:last-of-type {
    border-bottom: none;
  }
  
  .mobile-menu .verify-btn {
    display: block;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    text-align: center;
    font-weight: 600;
  }
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
  
  .desktop-only {
    display: flex !important;
  }
  
  .desktop-only.verify-btn {
    display: inline-block !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
  
  .nav-links {
    display: flex !important;
  }
}

/* === FINAL MOBILE MENU BUTTON OVERRIDE === */
/* Ensure button is always clickable on mobile */
@media (max-width: 767px) {
  .mobile-menu-btn.mobile-only,
  button.mobile-menu-btn,
  .nav-actions .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
  }
  
  /* Ensure icons are visible */
  .mobile-menu-btn svg,
  .mobile-menu-btn i {
    display: block !important;
    visibility: visible !important;
    pointer-events: none !important;
  }
}
