/*
 * Component: Bottom Nav
 * Depends on: tokens.css
 */

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 0;
  height: var(--bottom-nav-h);
  z-index: var(--z-sticky);
}

@media (min-width: 901px) {
  .bottom-nav { display: none; }
}

@media (max-width: 900px) {
  body { padding-bottom: var(--bottom-nav-h); }
}

/* ── Nav item ──────────────────────────────────────────────────── */
.bn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex: 1; min-width: 0;
  color: #aaa;
  font-size: 10px; font-weight: 500; line-height: 1;
  text-decoration: none;
  border: none; background: none;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.bn-item svg { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; transition: stroke 0.2s; }
.bn-item span { font-size: 10px; line-height: 1; white-space: nowrap; }
.bn-item:hover, .bn-item.bn-active { color: var(--color-primary); }

/* ── Center FAB wrap ───────────────────────────────────────────── */
.bn-center-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 64px;
}

/* ── Plus FAB button ───────────────────────────────────────────── */
.bn-plus {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 3px solid #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-primary);
  transition: transform 0.22s;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.bn-plus svg {
  width: 20px; height: 20px;
  stroke: #fff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-plus:focus,
.bn-plus:active {
  background: var(--gradient-primary);
  outline: none;
}

@media (hover: hover) {
  .bn-plus:hover { transform: scale(1.07); }
}

/* Rotate the + icon to × when open */
.bn-center-wrap.bn-open .bn-plus svg {
  transform: rotate(45deg);
}

/* ── Social icons — arc fan from button centre ─────────────────── */

/* Zero-size anchor at vertical centre of the 48px button */
.bn-soc-group {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 2;
}

.bn-center-wrap.bn-open .bn-soc-group {
  pointer-events: auto;
}

/* Each icon starts collapsed and invisible */
.bn-soc {
  position: absolute;
  top: -19px; left: -19px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.16);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.22s ease;
}

/* Arc open — radius 80px, 4 icons spread 135° → 45° */
.bn-center-wrap.bn-open .bn-soc-pin {
  transform: translate(-57px, -57px) scale(1);
  opacity: 1;
  transition-delay: 0.00s;
}
.bn-center-wrap.bn-open .bn-soc-yt {
  transform: translate(-21px, -77px) scale(1);
  opacity: 1;
  transition-delay: 0.07s;
}
.bn-center-wrap.bn-open .bn-soc-ig {
  transform: translate(21px, -77px) scale(1);
  opacity: 1;
  transition-delay: 0.14s;
}
.bn-center-wrap.bn-open .bn-soc-fb {
  transform: translate(57px, -57px) scale(1);
  opacity: 1;
  transition-delay: 0.21s;
}

.bn-soc svg { width: 17px; height: 17px; }
.bn-soc-pin svg { fill: #e60023; }
.bn-soc-yt  svg { fill: #ff0000; }
.bn-soc-ig  svg { fill: #bc1888; }
.bn-soc-fb  svg { fill: #1877f2; }

/* Dim overlay — not used in arc mode */
.bn-dim,
.bn-dim.bn-dim-show {
  display: none !important;
}
