/*============================
  Wonder Park - Mobile Footer Menu
  UI/UX Design: Modern Minimalist
============================*/

.mobile-footer-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  gap: 8px;
}

.mobile-menu-item {
  flex: 1;
  text-align: center;
}

.mobile-menu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  text-decoration: none;
  color: #6B7280;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 16px;
  min-height: 64px;
  position: relative;
  overflow: hidden;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: #111827;
  background-color: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.mobile-menu-link:active {
  transform: translateY(0);
  background-color: rgba(0, 0, 0, 0.08);
}

.mobile-menu-icon {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
}

.mobile-menu-link:hover .mobile-menu-icon,
.mobile-menu-link.active .mobile-menu-icon {
  transform: scale(1.05);
}

.mobile-menu-text {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  font-family: "IBM Plex Sans", sans-serif;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.mobile-menu-link:hover .mobile-menu-text,
.mobile-menu-link.active .mobile-menu-text {
  font-weight: 600;
  color: #111827;
}

/* CTA Button - Réservation avec animation super engageante */
.mobile-menu-item:nth-child(2) .mobile-menu-link {
  background: linear-gradient(135deg, #1976D2 0%, #E91E63 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 12px #E91E63;
  animation: ctaAttention 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.mobile-menu-item:nth-child(2) .mobile-menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.mobile-menu-item:nth-child(2) .mobile-menu-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2s ease-out infinite;
}

.mobile-menu-item:nth-child(2) .mobile-menu-link:hover {
  background: linear-gradient(135deg, #E91E63 0%, #FF006F 100%);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 18px rgba(255, 0, 111, 0.4);
  animation: ctaAttentionHover 1s ease-in-out infinite;
}

.mobile-menu-item:nth-child(2) .mobile-menu-link:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 3px 15px rgba(255, 0, 111, 0.3);
}

.mobile-menu-item:nth-child(2) .mobile-menu-icon,
.mobile-menu-item:nth-child(2) .mobile-menu-text {
  color: #FFFFFF !important;
  position: relative;
  z-index: 2;
}

.mobile-menu-item:nth-child(2) .mobile-menu-icon {
  animation: iconBounce 2s ease-in-out infinite;
}

/* Animation CTA principale - attire l'attention */
@keyframes ctaAttention {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 12px rgba(255, 0, 111, 0.25);
  }
  25% {
    transform: scale(1.02);
    box-shadow: 0 3px 15px rgba(255, 0, 111, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 4px 18px rgba(255, 0, 111, 0.4);
  }
  75% {
    transform: scale(1.02);
    box-shadow: 0 3px 15px rgba(255, 0, 111, 0.3);
  }
}

/* Animation de l'icône qui bounce */
@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-2px);
  }
  60% {
    transform: translateY(-1px);
  }
}

/* Effet de brillance qui traverse le bouton */
@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* Effet ripple (ondulation) */
@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
  }
}

/* Animation encore plus intense au hover */
@keyframes ctaAttentionHover {
  0%, 100% {
    transform: translateY(-3px) scale(1.02);
  }
  50% {
    transform: translateY(-4px) scale(1.04);
  }
}

/* Notification badge minimalist */
.mobile-menu-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -4px;
  width: 6px;
  height: 6px;
  background: #FF006F;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-link[data-notification="true"] .mobile-menu-icon::after {
  opacity: 1;
  transform: scale(1);
}

/* Dark mode support */
body.dark-mode .mobile-footer-menu {
  background: rgba(17, 24, 39, 0.95);
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mobile-menu-link {
  color: #9CA3AF;
}

body.dark-mode .mobile-menu-link:hover,
body.dark-mode .mobile-menu-link.active {
  color: #F9FAFB;
  background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .mobile-menu-link:hover .mobile-menu-text,
body.dark-mode .mobile-menu-link.active .mobile-menu-text {
  color: #F9FAFB;
}

/* Add bottom padding to body to prevent content being hidden behind mobile menu */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 88px;
  }
  
  .footer-four {
    margin-bottom: 0;
  }
}

/* Hide mobile menu on large screens */
@media (min-width: 992px) {
  .mobile-footer-menu {
    display: none !important;
  }
  
  body {
    padding-bottom: 0 !important;
  }
}

/* Animation for menu appearance */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for very small screens */
@media (max-width: 374px) {
  .mobile-menu-container {
    padding: 0 12px;
    gap: 4px;
  }
  
  .mobile-menu-icon {
    font-size: 18px;
  }
  
  .mobile-menu-text {
    font-size: 10px;
  }
  
  .mobile-menu-link {
    min-height: 58px;
    padding: 10px 6px;
  }
}
