/**
 * 叙伴 · shared shell (header helpers, bottom nav, voice stubs)
 */
@import url("./tokens.css");

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--yf-background);
  color: var(--yf-on-surface);
  font-family: var(--yf-font);
  -webkit-font-smoothing: antialiased;
}

body {
  overscroll-behavior: none;
  min-height: 100vh;
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pt-safe {
  padding-top: env(safe-area-inset-top, 0px);
}

::-webkit-scrollbar {
  display: none;
}

/* Bottom tab bar — shared active state */
.yf-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: color-mix(in srgb, var(--yf-surface) 95%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}

.yf-tabbar__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--yf-nav-height);
  max-width: var(--yf-max-width);
  margin: 0 auto;
  padding: 0 var(--yf-space-xs);
}

.yf-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 4rem;
  border-radius: var(--yf-radius-lg);
  text-decoration: none;
  color: var(--yf-on-surface-variant);
  transition: color 0.15s ease, background 0.15s ease;
}

.yf-tab[aria-current="page"] {
  background: var(--yf-primary-fixed);
  color: var(--yf-primary);
  font-weight: 700;
}

.yf-tab .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
}

.yf-tab__label {
  margin-top: 2px;
  font-size: var(--yf-fs-label-sm);
  font-weight: 500;
}

/* Scaffold hooks for future 懂你 / 记忆 concepts — no xingyiban coupling */
.yf-hook-memory,
.yf-hook-dongni {
  /* reserved: local preference / companion memory stubs */
}
