/* 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-dark: #2c3e50;
  --nav-hover: #34495e;
  --nav-active: #3498db;
  --nav-text: #bdc3c7;
  --nav-mobile-active: #155b8a;
}
html { scroll-padding-top: 84px; }

/* ================= DESKTOP ================= */
.iss-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 72px;
  background: var(--nav-dark);
  z-index: 1040;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.iss-nav .container { height: 100%; display: flex; align-items: center; }
.iss-brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.iss-brand:hover { color: #fff; }
.iss-brand img {
  width: 46px; height: 46px; object-fit: cover;
  border-radius: 50%; border: 3px solid #fff; background: #fff;
}
.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-text); text-decoration: none;
  padding: 10px 18px; border-radius: 10px; font-size: 1rem; transition: .3s;
}
.iss-link:hover { color: #fff; background: var(--nav-hover); }
.iss-link.active { color: #fff; background: var(--nav-active); }

.iss-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nav-active); color: #fff !important; text-decoration: none;
  padding: 9px 20px; border-radius: 50rem; font-weight: 600; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(52, 152, 219, .35); transition: .3s;
}
.iss-btn:hover { background: #2a86c4; transform: translateY(-1px); }

/* Sembunyikan elemen mobile di desktop */
.iss-topbar, .iss-bottom { display: none; }

/* ================= MOBILE ================= */
@media (max-width: 767.98px) {
  .iss-nav { display: none; }
  body { padding-bottom: 70px; }          /* ruang agar footer tidak tertutup bottom nav */
  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-active); 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; }
}
