/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 0, 0, 0.3);
  padding: 1rem 0;
  pointer-events: none;
  /* Ensure menu always stays visible during page transitions */
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.bottom-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
  pointer-events: auto;
  overflow: visible;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ff0000;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem;
  overflow: visible;
  /* Prevent text selection on desktop too */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Center icon is bigger - styles applied to child elements */
.bottom-nav-item-center .bottom-nav-icon {
  width: 60px;
  height: 60px;
  font-size: 2rem;
}

.bottom-nav-item-center .bottom-nav-logo {
  max-height: 60px;
}

.bottom-nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.bottom-nav-logo {
  width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.bottom-nav-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
  background-color: black;
  padding: 0.25rem 0.5rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-nav-item:hover .bottom-nav-label,
.bottom-nav-item:focus .bottom-nav-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item:focus .bottom-nav-icon {
  transform: scale(1.1);
  color: #ff3333;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
  color: #ff3333;
}

/* Mobile: App-style navigation */
@media (max-width: 768px) {
  .bottom-nav {
    padding: 1rem 0;
    /* Prevent text selection on entire nav */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
  
  .bottom-nav-container {
    gap: 0.75rem;
    padding: 0 0.5rem;
    justify-content: space-around;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .bottom-nav-icon {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  
  .bottom-nav-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .bottom-nav-item {
    gap: 0.25rem;
    padding: 0.25rem;
    flex: 1;
    min-width: 0;
    /* Prevent text selection and tap highlight */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
  
  .bottom-nav-item * {
    /* Prevent text selection on all child elements */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
  
  .bottom-nav-icon {
    /* Prevent tap highlight on icons */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
  
  .bottom-nav-item-center .bottom-nav-icon {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
  }
  
  .bottom-nav-item-center .bottom-nav-logo {
    max-height: 50px;
  }
}

@media (max-width: 480px) {
  .bottom-nav {
    padding: 0.875rem 0;
  }
  
  .bottom-nav-container {
    gap: 0.5rem;
    padding: 0 0.25rem;
  }
  
  .bottom-nav-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .bottom-nav-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .bottom-nav-item-center .bottom-nav-icon {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  
  .bottom-nav-item-center .bottom-nav-logo {
    max-height: 45px;
  }
}

/* Ensure bottom nav doesn't overlap content */
body {
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 110px;
  }
}

@media (max-width: 480px) {
  body {
    padding-bottom: 100px;
  }
}
