/* ============================================================
   Bottom Navigation — Portal Prestador Arkitek
   Caroline 01/06/2026 23:23 — "manter o prestador dentro"
   ============================================================ */

.pn-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--paper, #FFFFFF);
  border-top: 1px solid var(--line, rgba(25,21,15,0.14));
  box-shadow: 0 -8px 24px rgba(25,21,15,0.06);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom)) 6px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pn-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--ink-soft, #3D362C);
  border-radius: 8px;
  transition: all .2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.pn-nav-item:active {
  background: var(--paper-2, #F4F1EA);
  transform: scale(0.97);
}

.pn-nav-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.pn-nav-label {
  font-size: 10.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* Estado ativo */
.pn-nav-item.is-active {
  color: var(--clay, #A8512A);
}

.pn-nav-item.is-active .pn-nav-icon {
  transform: translateY(-1px);
  stroke-width: 1.9;
}

.pn-nav-item.is-active::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--clay, #A8512A);
  border-radius: 0 0 3px 3px;
}

/* Espaço pro conteúdo da página não ficar atrás da navbar */
body.pn-has-nav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
}

/* Em desktop, fica mais compacta e centralizada */
@media (min-width: 768px) {
  .pn-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--line, rgba(25,21,15,0.14));
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(25,21,15,0.08);
  }
}

/* Badge de notificação (futuro: alertas pendentes) */
.pn-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  background: var(--clay, #A8512A);
  color: white;
  font-size: 9px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
