/* ═══════════════════════════════════════════════
   GEEK Mobile Bottom Nav — v1.6.0
   Liquid Glass · floating capsule · press effects
   ═══════════════════════════════════════════════ */

.gmbn { display: none }

@media (max-width: 1024px) {

  /* ── КОНТЕЙНЕР ── */
  .gmbn {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    height: 46px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
    align-items: center;

    /* Жидкое стекло: полупрозрачная база + мягкий блик сверху */
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 40%),
      rgba(22, 22, 26, 0.52);
    backdrop-filter: blur(30px) saturate(190%) brightness(1.05);
    -webkit-backdrop-filter: blur(30px) saturate(190%) brightness(1.05);

    /* Форма — капсула */
    border-radius: 23px;
    border: 0.5px solid rgba(255, 255, 255, 0.20);

    /* Тень + блик по кромке стекла.
       Держим тень компактной: без viewport-fit=cover в Safari
       env(safe-area-inset-bottom) был инертен, и размашистая тень
       (offset+blur ~44px) утекала прямо на системный тулбар Safari,
       просвечивая мутным пятном сквозь его полупрозрачный фон. */
    box-shadow:
      inset 0 1px 0.5px rgba(255, 255, 255, 0.28),
      inset 0 -1px 0.5px rgba(0, 0, 0, 0.16);

    overflow: hidden;
  }

  /* ── ПУНКТ ── */
  .gmbn__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    font: 600 9px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: 0.01em;
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition:
      color 0.22s ease,
      transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* ── ИКОНКА ── */
  .gmbn__item i.mdi {
    font-size: 19px;
    line-height: 1;
    display: block;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .gmbn__item svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* ── ПОДПИСЬ ── */
  .gmbn__item span {
    transition: opacity 0.2s ease;
    opacity: 0.6;
  }

  /* ── АКТИВНЫЙ ПУНКТ: без подложки, только цвет + лёгкое усиление иконки ── */
  .gmbn__item.is-active {
    color: #fff;
  }

  .gmbn__item.is-active span {
    opacity: 1;
  }

  .gmbn__item.is-active i.mdi,
  .gmbn__item.is-active svg {
    transform: scale(1.05);
  }

  /* ── ЭФФЕКТ НАЖАТИЯ: только сжатие, без подложки/вспышки ── */
  .gmbn__item:active {
    transform: scale(0.95);
    color: rgba(255, 255, 255, 0.9);
    transition:
      color 0.05s ease,
      transform 0.08s ease;
  }

}

/* Fallback для браузеров без backdrop-filter (старый Android Chrome <76) */
@supports not (backdrop-filter: blur(1px)) {
  .gmbn {
    background: rgba(18, 18, 20, 0.94);
  }
}
