/* =========================
   FLOATING BOTTOM NAV
   SELARAS DENGAN HEADER MENU
========================= */

.mjv2-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 9999;

  width: calc(100% - 20px);
  max-width: 720px;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;

  padding: 12px;
  border-radius: 28px;

  background:
    linear-gradient(180deg, rgba(8, 15, 32, 0.96), rgba(5, 10, 24, 0.96));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.mjv2-bottom-nav-item {
  min-width: 0;
  min-height: 78px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 12px 8px;
  border-radius: 22px;

  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);

  background:
    linear-gradient(180deg, rgba(12, 20, 40, 0.98), rgba(8, 14, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.mjv2-bottom-nav-item:hover {
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.10);
}

.mjv2-bottom-nav-item.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 100%);
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow:
    0 10px 24px rgba(56, 189, 248, 0.28),
    0 0 22px rgba(56, 189, 248, 0.18);
}

.mjv2-bottom-nav-item.is-active .mjv2-bottom-nav-label,
.mjv2-bottom-nav-item.is-active .mjv2-bottom-nav-icon {
  color: #0b1220;
}

.mjv2-bottom-nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform .2s ease, color .2s ease;
}

.mjv2-bottom-nav-item.is-active .mjv2-bottom-nav-icon {
  transform: translateY(-1px) scale(1.04);
}

.mjv2-bottom-nav-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
}

.mjv2-bottom-nav-label {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* =========================
   SPACING AGAR KONTEN
   TIDAK KETUTUP NAV
========================= */

.mjv2-app,
.mjv2-page,
.mjv2-home-page,
.mjv2-detail-page,
.mjv2-search-page,
.mjv2-bookmark-page,
.mjv2-history-page,
.mjv2-login-page,
.mjv2-register-page,
.mjv2-profile-page,
.mjv2-not-found-page {
  padding-bottom: 122px;
}

/* =========================
   HIDE DI HALAMAN CHAPTER
========================= */

body.mjv2-route-chapter .mjv2-bottom-nav {
  display: none;
}

body.mjv2-route-chapter .mjv2-app,
body.mjv2-route-chapter .mjv2-page,
body.mjv2-route-chapter .mjv2-chapter-page {
  padding-bottom: 0;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {
  .mjv2-bottom-nav {
    width: calc(100% - 16px);
    bottom: 10px;
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
  }

  .mjv2-bottom-nav-item {
    min-height: 72px;
    padding: 10px 6px;
    border-radius: 20px;
  }

  .mjv2-bottom-nav-icon {
    width: 22px;
    height: 22px;
  }

  .mjv2-bottom-nav-icon svg {
    width: 20px;
    height: 20px;
  }

  .mjv2-bottom-nav-label {
    font-size: 10px;
  }

  .mjv2-app,
  .mjv2-page,
  .mjv2-home-page,
  .mjv2-detail-page,
  .mjv2-search-page,
  .mjv2-bookmark-page,
  .mjv2-history-page,
  .mjv2-login-page,
  .mjv2-register-page,
  .mjv2-profile-page,
  .mjv2-not-found-page {
    padding-bottom: 112px;
  }
}