/* ═══════════════════════════════════════════════
   GEEK Mobile Bottom Nav — v1.3.0
   Floating pill · glass · press effects
   ═══════════════════════════════════════════════ */

.gmbn { display: none }

@media (max-width: 1024px) {

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

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    /* Стекло */
    background: rgba(16, 16, 18, 0.62);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);

    /* Форма — pill */
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.10);

    /* Тень — эффект парения */
    box-shadow:
      0 10px 40px rgba(0, 0, 0, 0.50),
      0 2px  8px  rgba(0, 0, 0, 0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);

    overflow: hidden;
  }

  /* ── ПУНКТ ── */
  .gmbn__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font: 600 10px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    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: 23px;
    line-height: 1;
    display: block;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .gmbn__item svg { width: 22px; height: 22px }

  /* ── ПОДПИСЬ ── */
  .gmbn__item span {
    letter-spacing: 0.01em;
    transition: opacity 0.2s ease;
    opacity: 0.65;
  }

  /* ── АКТИВНЫЙ ПУНКТ ── */
  .gmbn__item.is-active {
    color: #fff;
  }

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

  .gmbn__item.is-active i.mdi {
    transform: scale(1.18) translateY(-1px);
  }

  /* Точка-индикатор — убрана */

  /* ── ЭФФЕКТ НАЖАТИЯ ── */
  .gmbn__item:active {
    transform: scale(0.80);
    color: rgba(255, 255, 255, 0.9);
    transition:
      color 0.05s ease,
      transform 0.08s ease;
  }

  .gmbn__item:active i.mdi {
    transform: scale(1) translateY(0);
    transition: transform 0.08s ease;
  }

  /* Вспышка-подложка при нажатии */
  .gmbn__item::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0);
    transition: background 0.12s ease;
    pointer-events: none;
  }

  .gmbn__item:active::after {
    background: rgba(255, 255, 255, 0.10);
  }

}

/* ═══════════════════════════════════════════════
   Поиск-панель
   ═══════════════════════════════════════════════ */
.gmbn-search {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 10000;

  background: rgba(16, 16, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.40);

  padding: 12px;
  display: none;

  animation: gmbn-slide-up 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gmbn-slide-up {
  from { opacity: 0; transform: translateY(12px) }
  to   { opacity: 1; transform: translateY(0) }
}

.gmbn-search[hidden] { display: none }

.gmbn-search form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.gmbn-search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s;
}

.gmbn-search input:focus {
  border-color: rgba(255, 71, 87, 0.6);
}

.gmbn-search button {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.gmbn-search button:active {
  background: rgba(255, 255, 255, 0.15);
}
