/* assets/css/landing-nav.css
   Gaya navbar halaman publik, mengikuti header dashboard user (palet #2c3e50 / #3498db,
   logo bulat, bottom nav dengan logo mengambang). Muat SETELAH landing.css. */

:root {
  --nav-ink: #1a1a6e;        /* teks menu & nama situs */
  --nav-active: #3d5af1;     /* menu aktif */
  --nav-btn: #4a85f6;        /* tombol akun */
  --nav-btn-hover: #2f6fe8;
  --nav-mobile-active: #3d5af1;
}
html { scroll-padding-top: 84px; }

/* ================= DESKTOP ================= */
/* Di puncak halaman: transparan & tinggi. Setelah di-scroll (.scrolled): putih, ramping, bayangan. */
.iss-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 92px;
  background: transparent;
  z-index: 1040;
  transition: height .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.iss-nav.scrolled {
  height: 66px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(26, 26, 110, .10);
  animation: issNavIn .35s ease;
}
@keyframes issNavIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.iss-nav .container { height: 100%; display: flex; align-items: center; }
.iss-brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--nav-ink); text-decoration: none; font-weight: 700; font-size: 1.1rem;
  transition: color .3s;
}
.iss-brand:hover { color: var(--nav-ink); }
.iss-brand img {
  width: 46px; height: 46px; object-fit: cover; flex: none;
  border-radius: 50%; border: 2px solid #fff; background: #fff;
  box-shadow: 0 2px 8px rgba(26, 26, 110, .18);
  transition: width .3s, height .3s;
}
.iss-nav.scrolled .iss-brand img { width: 40px; height: 40px; }
.iss-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; }
.iss-link {
  display: block; color: var(--nav-ink); text-decoration: none;
  padding: 10px 20px; border-radius: 50rem; font-size: .95rem; font-weight: 600; transition: color .25s, background-color .25s;
}
.iss-link:hover, .iss-link.active { color: #fff; background: var(--nav-btn); }

.iss-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nav-btn); color: #fff !important; text-decoration: none;
  padding: 11px 26px; border-radius: 50rem; font-weight: 600; font-size: .92rem;
  box-shadow: 0 6px 16px rgba(74, 133, 246, .32); transition: .3s;
}
.iss-btn:hover { background: var(--nav-btn-hover); transform: translateY(-1px); }

/* Beranda (hero gelap): teks putih selama belum di-scroll */
.home .iss-nav:not(.scrolled) .iss-brand,
.home .iss-nav:not(.scrolled) .iss-link { color: #fff; }
.home .iss-nav:not(.scrolled) .iss-link:hover,
.home .iss-nav:not(.scrolled) .iss-link.active { color: #fff; background: var(--nav-btn); }

/* Sembunyikan elemen mobile di desktop */
.iss-topbar, .iss-bottom { display: none; }

/* ================= MOBILE ================= */
@media (max-width: 767.98px) {
  .iss-nav { display: none; }
  /* ruang untuk bottom nav ditangani footer (.site-footer, landing.css) */
  html { scroll-padding-top: 72px; }

  /* Top bar */
  .iss-topbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: #fff; z-index: 1050;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
  }
  .iss-top-brand { display: flex; align-items: center; gap: 10px; overflow: hidden; text-decoration: none; min-width: 0; }
  .iss-top-brand img {
    width: 40px; height: 40px; flex-shrink: 0; object-fit: cover;
    border-radius: 50%; border: 2px solid var(--nav-btn); background: #fff;
  }
  .iss-top-brand span {
    color: #212529; font-weight: 700; font-size: .85rem; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .iss-btn-sm { padding: 6px 16px; font-size: .8rem; margin-left: 8px; flex-shrink: 0; box-shadow: none; }

  /* Bottom nav dengan lubang setengah lingkaran untuk logo */
  .iss-bottom {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
    display: flex; justify-content: space-around; align-items: center;
    z-index: 1050; background: transparent;
    filter: drop-shadow(0 -2px 5px rgba(0, 0, 0, .1));
  }
  .iss-bottom::before {
    content: ""; position: absolute; inset: 0; background: #fff; z-index: -1;
    -webkit-mask-image: radial-gradient(circle 42px at 50% 8px, transparent 42px, black 43px);
            mask-image: radial-gradient(circle 42px at 50% 8px, transparent 42px, black 43px);
  }
  .iss-bitem {
    flex: 1; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding-top: 5px; line-height: 1;
    color: #6c757d; text-decoration: none; font-size: .75rem; transition: .3s;
  }
  .iss-bitem i { font-size: 1.25rem; }
  .iss-bitem.active, .iss-bitem:hover { color: var(--nav-mobile-active); font-weight: 500; }

  .iss-center { flex: 1; height: 100%; display: flex; justify-content: center; position: relative; }
  .iss-center-btn {
    position: absolute; top: -20px; width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center; z-index: 1060;
  }
  .iss-center-btn img { width: 62px; height: 62px; object-fit: contain; background: transparent; }
}