/* ====================================
   Mobile Bottom Navigation Bar - Compact Premium Design
   ==================================== */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(26, 31, 58, 0.98) 0%, rgba(26, 31, 58, 1) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15), 0 -1px 0 rgba(255, 255, 255, 0.05) inset;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 4px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  max-width: 72px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-nav-item:active::before {
  opacity: 1;
}

.bottom-nav-item:active {
  transform: scale(0.92) translateY(2px);
}

.bottom-nav-item:hover {
  color: rgba(255, 255, 255, 1);
}

.bottom-nav-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bottom-nav-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-nav-item:active .bottom-nav-icon {
  transform: scale(0.9);
}

.bottom-nav-item:active .bottom-nav-icon::after {
  opacity: 1;
}

.bottom-nav-icon i {
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  line-height: 1;
}

/* Remix Icon specific styles */
.bottom-nav-icon [class^="ri-"],
.bottom-nav-icon [class*=" ri-"] {
  font-size: 22px;
  font-weight: 400;
}

/* Default Icons - Dark with White Icon */
.bottom-nav-icon {
  background: rgba(15, 18, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-nav-icon i {
  color: white;
}

/* Emergency Button - Special Red */
.bottom-nav-icon.emergency {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.bottom-nav-icon.emergency i {
  color: white;
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.75);
}

.bottom-nav-item:active .bottom-nav-label {
  transform: scale(0.95);
}

.bottom-nav-item:hover .bottom-nav-label {
  color: rgba(255, 255, 255, 1);
}

/* Show on mobile only */
@media (max-width: 991px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Add padding to body to prevent content being hidden */
  body {
    padding-bottom: 100px;
  }
}



@media (max-width: 576px) {
  .bottom-nav-item {
    padding: 5px 3px;
    gap: 3px;
  }
  
  .bottom-nav-icon {
    width: 40px;
    height: 40px;
  }
  
  .bottom-nav-icon i,
  .bottom-nav-icon [class^="ri-"],
  .bottom-nav-icon [class*=" ri-"] {
    font-size: 19px;
  }
  
  .bottom-nav-label {
    font-size: 9px;
  }
}

/* Extra animations for premium feel */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.bottom-nav-item:active .bottom-nav-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: ripple 0.6s ease-out;
}
