/* ========================================
   Mobile Navigation
   ======================================== */

.mobile-nav {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4.5rem; /* Taller for easier touch access */
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
}

/* Show only on mobile and tablets */
@media (max-width: 1009px) {
  .mobile-nav {
    display: flex;
    align-items: stretch; /* Stretch items to fill height */
  }
  
  /* Add padding to the body to prevent content from being hidden behind the nav bar */
  body {
    padding-bottom: 4.5rem;
  }
}

.mobile-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  flex-basis: 0;
  color: #475569; /* Muted color for inactive items */
  text-decoration: none;
  font-size: 0.7rem;
  text-align: center;
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
  transition: all 150ms ease-in-out;
}

.mobile-nav__link:hover {
  background-color: #f8fafc;
  color: #1e293b;
}

.mobile-nav__link.is-active {
  color: #f43f5e; /* Highlight color for active item */
  background-color: #fef2f2;
}

.mobile-nav__icon {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
  transition: transform 150ms ease;
}

.mobile-nav__link.is-active .mobile-nav__icon {
  transform: translateY(-2px);
}

.mobile-nav__label {
  font-weight: 500;
  letter-spacing: 0.02em;
}
