/* Navigation — NOW's segmented control + the bottom TabBar with the
   raised center POST action (Phase 0 §2.0). */

/* Segmented control (feed modes within NOW) */
.mode-tabs { display: flex; gap: var(--sp-2); margin: var(--sp-1) 0 var(--sp-4); flex-wrap: wrap; }
.mode-tabs button {
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-body-sm);
  cursor: pointer;
}
.mode-tabs button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: var(--fw-bold);
}

/* Bottom navigation */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-tabbar);
  background: rgba(13, 16, 21, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
}
.tabbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: stretch;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--fs-micro);
  position: relative;
  padding: var(--sp-1);
}
.tab-btn .tab-icon { font-size: 1.25rem; line-height: 1; }
.tab-btn.active { color: var(--accent); }
.tab-btn .tab-label { white-space: nowrap; }

.tab-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  background: var(--live);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Raised center POST action */
.tab-post {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.7rem;
  font-weight: var(--fw-bold);
  cursor: pointer;
  align-self: center;
  justify-self: center;
  margin-top: -18px;
  box-shadow: var(--glow-accent), var(--shadow-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tab-post:active { transform: scale(0.96); }
