/* =========================================================
   navigation.css
   Barra de navegação inferior flutuante (componente global)
   Reproduz a bottom-nav da referência: 4 ícones + logo central
   ========================================================= */

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 30;
  width: 100%;
  margin-top: auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: var(--shadow-nav);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 4px;
}

/* Item padrão de navegação */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px 2px;
  border-radius: var(--radius-sm);
  color: var(--color-charcoal);
  transition: transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}
.nav-item .nav-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(53, 46, 55, 0.25));
  transition: transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}
.nav-item .nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-charcoal);
  line-height: 1.1;
  text-align: center;
}

.nav-item:hover .nav-icon {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 6px 9px rgba(53, 46, 55, 0.32)) brightness(1.05);
}
.nav-item:active {
  transform: scale(0.93);
}

/* Estado ativo (página atual) */
.nav-item.is-active .nav-icon {
  transform: translateY(-2px) scale(1.05);
}
.nav-item.is-active .nav-label {
  color: var(--color-slate-blue);
}

/* Botão central com logo adventista */
.nav-center {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}
.nav-adventist {
  position: relative;
  width: 64px;
  height: 64px;
  margin-top: -26px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 35% 30%, #8493a6, var(--color-slate-blue) 70%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(53, 46, 55, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.35);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.nav-adventist img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-pill);
}
.nav-adventist::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.nav-adventist:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 26px rgba(53, 46, 55, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.4);
}
.nav-adventist:active {
  transform: scale(0.95);
}
/* Pulso sutil para indicar interatividade */
.nav-adventist::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(116, 133, 154, 0.5);
  opacity: 0;
  animation: navPulse 2.6s ease-out infinite;
}
@keyframes navPulse {
  0% { opacity: 0.6; transform: scale(0.85); }
  70% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}

@media (max-width: 360px) {
  .nav-item .nav-label { font-size: 10px; }
  .nav-item .nav-icon { width: 30px; height: 30px; }
  .nav-adventist { width: 58px; height: 58px; }
}

/* Em telas médias e largas (desktop/tablet), a barra de navegação flutua elegante e centralizada */
@media (min-width: 601px) {
  .bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  }
}

