/* Mobile Bottom Navigation Additional Styles */

/* Ensure body has padding on mobile to prevent content overlap */
@media (max-width: 767px) {
  body {
    padding-bottom: 70px !important;
  }
  
  /* Add padding to main content wrapper if exists */
  main {
    padding-bottom: 20px;
  }
}

/* Animation for bottom nav appearance */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-bottom-nav {
  animation: slideUp 0.3s ease-out;
}

/* Ripple effect on tap */
.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(44, 54, 145, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.nav-item:active::before {
  width: 100px;
  height: 100px;
}

/* Smooth color transitions */
.nav-item svg,
.nav-item span {
  position: relative;
  z-index: 1;
}

/* Badge pulse animation */
@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.cart-badge {
  animation: badgePulse 2s infinite;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .mobile-bottom-nav {
    background: #1a1a1a;
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.1);
  }
  
  .nav-item {
    color: #aaa;
  }
  
  .nav-item.active {
    color: #4a5ab3;
  }
}

/* Extra small devices (phones in landscape) */
@media (max-width: 575px) {
  .nav-item span {
    font-size: 10px;
  }
  
  .nav-item svg {
    width: 22px;
    height: 22px;
  }
}

/* iOS safe area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}
