/* ============================================================
   NAV.CSS — Bottom nav + screen header
   Nota Kita — Light editorial violet theme
   ============================================================ */

/* ---- Screen header ---- */

.screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 12px;
  padding-top: calc(14px + env(safe-area-inset-top));
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.screen-header .header-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.screen-header .btn-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* online indicator */
.online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-md);
  transition: background 0.3s;
  flex-shrink: 0;
}
.online-dot.online {
  background: var(--green-bright);
  box-shadow: 0 0 6px var(--green-bright);
}

/* ---- Bottom navigation ---- */

#bottom-nav {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  flex-shrink: 0;
  box-shadow: 0 -1px 0 var(--border), 0 -4px 16px rgba(0,0,0,0.04);
}

.bnav-tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  background: none; border: none;
  color: var(--text-dimmer);
  cursor: pointer;
  transition: color 0.15s;
  min-height: var(--touch-min);
  position: relative;
}
.bnav-tab.active { color: var(--accent); }

/* active indicator line */
.bnav-tab.active::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}

.bnav-icon {
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s var(--ease);
}
.bnav-tab.active .bnav-icon { transform: scale(1.1); }
.bnav-label { font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56px; }

/* notification dot */
.bnav-badge {
  position: absolute; top: 8px;
  right: calc(50% - 16px);
  width: 7px; height: 7px;
  border-radius: 50%; background: var(--red);
  display: none;
}
.bnav-badge.show { display: block; }

/* ---- PWA install banner ---- */

#pwa-banner {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  padding-top: calc(12px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 12px;
  z-index: 300;
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease);
}
#pwa-banner.show { transform: translateY(0); }
#pwa-banner .pwa-text { flex: 1; font-size: 0.85rem; font-weight: 600; }
#pwa-banner .btn { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
