/* navbar.css
   Include on every page that uses the footer nav (load after base.css) */

.site-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* mobile safe area */
  z-index: 50;
}

.footer-nav { width: 100%; }

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  width: min(90%, 600px); /* prevents overstretching on large screens */
  margin: 0 auto;
  padding: 0;
  gap: 10px;
}

.nav-item {
  flex: 1;
  text-align: center;
}

.nav-item a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.12s ease;
  font-weight: 600;
  font-size: clamp(0.85rem, 2.5vw, 1rem); /* fluid text */
}

.nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 520px) {
  .nav-list { gap: 6px; width: 96%; }
  .nav-item a { padding: 8px 4px; }
}

@media (max-width: 360px) {
  .nav-item a { font-size: 0.9rem; padding: 7px 2px; }
}