/* ==========================================================
   Template: Slate Magazine
   - Masthead editorial (header bertingkat), nav pill, breadcrumb bar kontras
   - Scoped: hanya aktif jika body memiliki class .tpl-slate
   - Tidak mengubah struktur/logic (aman)
   ========================================================== */

body.tpl-slate {
  --fisip-radius: 22px;
  --fisip-shadow-sm: 0 12px 30px rgba(2, 6, 23, 0.08);
  --fisip-shadow: 0 22px 60px rgba(2, 6, 23, 0.10);

  background:
    radial-gradient(900px 500px at 12% -10%, rgba(var(--fisip-primary-rgb), 0.16), transparent 60%),
    radial-gradient(900px 520px at 95% 0%, rgba(15, 23, 42, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.0), rgba(15, 23, 42, 0.02)),
    var(--fisip-bg);
}

body.tpl-slate h1,
body.tpl-slate h2,
body.tpl-slate h3,
body.tpl-slate .site-title {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

body.tpl-slate .site-tagline {
  letter-spacing: 0.25px;
}

/* ----------------------------------------------------------
   Masthead: ubah header menjadi vertikal pada desktop
   ---------------------------------------------------------- */

body.tpl-slate .site-header {
  border-bottom: 0 !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.0)),
    rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] body.tpl-slate .site-header {
  background:
    linear-gradient(180deg, rgba(226, 232, 240, 0.05), rgba(226, 232, 240, 0.0)),
    rgba(15, 23, 42, 0.80);
}

@media (min-width: 992px) {
  body.tpl-slate .site-header > .container {
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    text-align: center;
    padding-top: 1.75rem !important;
    padding-bottom: 1.0rem !important;
  }

  body.tpl-slate .site-header > .container > a {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  body.tpl-slate .site-logo {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.12);
  }

  body.tpl-slate .site-title {
    font-size: clamp(1.35rem, 1.5vw, 1.75rem);
    letter-spacing: 0.6px;
  }

  body.tpl-slate .site-tagline {
    font-size: 0.95rem;
  }

  body.tpl-slate .site-header > .container > .d-flex {
    margin-top: 1rem;
  }
}

/* ----------------------------------------------------------
   Nav: pill bar dengan active underline
   ---------------------------------------------------------- */

body.tpl-slate .site-nav {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.05), rgba(var(--fisip-primary-rgb), 0.09));
}

html[data-theme="dark"] body.tpl-slate .site-nav {
  border-top: 1px solid rgba(226, 232, 240, 0.10);
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.06), rgba(var(--fisip-primary-rgb), 0.10));
}

body.tpl-slate .site-nav .navbar-nav {
  gap: 0.25rem;
}

body.tpl-slate .site-nav .nav-link {
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15px;
  color: rgba(15, 23, 42, 0.78);
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

html[data-theme="dark"] body.tpl-slate .site-nav .nav-link {
  color: rgba(226, 232, 240, 0.82);
}

body.tpl-slate .site-nav .nav-link:hover {
  background: rgba(var(--fisip-primary-rgb), 0.12);
  transform: translateY(-1px);
}

body.tpl-slate .site-nav .nav-link.active {
  background: rgba(var(--fisip-primary-rgb), 0.18);
  color: var(--fisip-text);
}

body.tpl-slate .dropdown-menu {
  border-radius: 18px;
}

/* ----------------------------------------------------------
   Breadcrumb: bar kontras (terasa beda total)
   ---------------------------------------------------------- */

body.tpl-slate .site-breadcrumb {
  border-bottom: 0 !important;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.82));
  color: rgba(226, 232, 240, 0.92);
}

body.tpl-slate .site-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(226, 232, 240, 0.55);
}

body.tpl-slate .site-breadcrumb a {
  color: rgba(226, 232, 240, 0.92);
  text-decoration-color: rgba(226, 232, 240, 0.35);
}

body.tpl-slate .site-breadcrumb a:hover {
  color: #ffffff;
}

/* ----------------------------------------------------------
   Content: card lebih editorial + section headings
   ---------------------------------------------------------- */

body.tpl-slate .site-main {
  padding-top: 0.5rem;
}

body.tpl-slate .container {
  max-width: 1220px;
}

body.tpl-slate .card,
body.tpl-slate .list-group-item,
body.tpl-slate .accordion-item {
  border-radius: var(--fisip-radius);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--fisip-shadow-sm);
}

html[data-theme="dark"] body.tpl-slate .card,
html[data-theme="dark"] body.tpl-slate .list-group-item,
html[data-theme="dark"] body.tpl-slate .accordion-item {
  border: 1px solid rgba(226, 232, 240, 0.12);
}

body.tpl-slate .hero {
  border-radius: calc(var(--fisip-radius) + 6px);
  overflow: hidden;
  box-shadow: var(--fisip-shadow);
}

body.tpl-slate .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 280px at 20% 0%, rgba(var(--fisip-primary-rgb), 0.26), transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.0));
  pointer-events: none;
}

/* ----------------------------------------------------------
   Footer: lebih "majalah" (blok kontras)
   ---------------------------------------------------------- */

body.tpl-slate .site-footer {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
  color: rgba(226, 232, 240, 0.90);
}

body.tpl-slate .site-footer .text-muted {
  color: rgba(226, 232, 240, 0.68) !important;
}

body.tpl-slate .site-footer .footer-link {
  color: rgba(226, 232, 240, 0.88);
}

body.tpl-slate .site-footer .footer-link:hover {
  color: #ffffff;
}
