/*
Mobile Bottom Navigation Bar - Plafon PVC Jateng
Interactive App-Like Experience for Mobile Users
*/

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1050;
  padding: 0 0.5rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 3px;
  position: relative;
  transition: var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bottom-nav-item svg,
.bottom-nav-item i {
  font-size: 1.25rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.bottom-nav-item.active {
  color: var(--color-purple-primary);
}

@media (hover: hover) and (pointer: fine) {
  .bottom-nav-item:hover {
    color: var(--color-purple-primary);
  }
  .bottom-nav-item.highlight-calc:hover .calc-btn-elevated {
    background: var(--color-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(8, 54, 193, 0.35);
  }
}

.bottom-nav-item:active svg,
.bottom-nav-item:active i {
  transform: scale(0.9);
}

/* Center Highlight: Kalkulator Button */
.bottom-nav-item.highlight-calc {
  color: var(--color-purple-primary);
}

.bottom-nav-item.highlight-calc .calc-btn-elevated {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-purple-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--color-purple-glow);
  margin-top: -14px;
  border: 3px solid #ffffff;
  transition: var(--transition-smooth);
}

.bottom-nav-item.highlight-calc:active .calc-btn-elevated {
  background: var(--color-purple-hover);
  transform: translateY(1px);
}

.bottom-nav-item.highlight-calc .calc-btn-elevated svg,
.bottom-nav-item.highlight-calc .calc-btn-elevated i {
  font-size: 1.2rem;
  width: 22px;
  height: 22px;
  color: #ffffff;
}

/* WhatsApp Nav Item */
.bottom-nav-item.wa-item {
  color: #128c7e;
}

.bottom-nav-item.wa-item svg,
.bottom-nav-item.wa-item i {
  color: var(--color-whatsapp);
}

.bottom-nav-item.wa-item .wa-pulse-dot {
  position: absolute;
  top: 6px;
  right: calc(50% - 14px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  border: 1.5px solid #ffffff;
}

.bottom-nav-item.wa-item .wa-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  opacity: 0.6;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
