/* ==========================================================
   Footer Floating Style — Comicaso Mini App
   Author: ChatGPT Dev (GPT-5)
   Description: Membuat footer .bottom-nav melayang modern
   ========================================================== */

footer.footer.bottom-nav {
  position: fixed;
  bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--card, #fff);
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 92%;
  max-width: 640px;
  padding: 10px 12px;
  z-index: 9999;
  transition: all 0.25s ease;
}

/* Tombol di dalam footer */
footer.footer.bottom-nav .bottom-link {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-secondary, #666);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Tombol aktif atau hover */
footer.footer.bottom-nav .bottom-link.active,
footer.footer.bottom-nav .bottom-link:hover {
  color: var(--accent, #00c2a8);
  transform: scale(1.05);
}

/* Ikon SVG agar rapi */
footer.footer.bottom-nav .bottom-link .icon svg,
footer.footer.bottom-nav .bottom-link img.icon {
  width: 24px;
  height: 24px;
}

/* Tema gelap otomatis */
@media (prefers-color-scheme: dark) {
  footer.footer.bottom-nav {
    background: #1f1f1f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  footer.footer.bottom-nav .bottom-link {
    color: #bbb;
  }
}

/* Tambahan gaya halus untuk transisi masuk */
footer.footer.bottom-nav.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

footer.footer.bottom-nav.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
