/* Shared UI primitives used by both layouts.
   Keep this file small and stable: navigation/controls that must look consistent
   across Ceramah (site.css) and Quran (quran.css). */

/* Ceramah / Quran section switcher (see Pages/Shared/_SectionSwitcher.cshtml) */
.section-switcher {
  flex-shrink: 0;
}

.section-switcher-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  border-radius: 0.5rem;
  background: rgba(47, 93, 80, 0.08);
  border: 1px solid rgba(47, 93, 80, 0.18);
}

.section-switcher-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.65rem;
  border-radius: 0.4rem;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  color: #6b6b6b;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.section-switcher-pill:hover,
.section-switcher-pill:focus-visible {
  color: #2f5d50;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.65);
}

.section-switcher-pill:focus-visible {
  outline: 2px solid #2f5d50;
  outline-offset: 2px;
}

.section-switcher-pill.is-active {
  color: #fff;
  background: #2f5d50;
  border-color: rgba(47, 93, 80, 0.35);
  box-shadow: 0 1px 2px rgba(47, 93, 80, 0.2);
}

.section-switcher-pill.is-active:hover,
.section-switcher-pill.is-active:focus-visible {
  color: #fff;
  background: #24473d;
}

/* Mobile nav drawer: top-right close (out of flow — does not push nav down) */
@media (max-width: 575.98px) {
  .navbar-main-inner > .mobile-drawer-close,
  .quran-navbar-inner > .mobile-drawer-close {
    position: absolute;
    top: max(0.35rem, env(safe-area-inset-top));
    right: max(0.35rem, env(safe-area-inset-right));
    z-index: 2;
  }
}

.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: #2f2f2f;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-drawer-close:hover,
.mobile-drawer-close:focus-visible {
  background: rgba(47, 93, 80, 0.1);
  color: #2f5d50;
  outline: none;
}

.mobile-drawer-close:focus-visible {
  box-shadow: 0 0 0 2px rgba(47, 93, 80, 0.25);
}

