/* Header certification filter — dropdown + confirm modal.
 * Scoped entirely under .alp-header-cert-filter / .alp-cert-nav-confirm
 * prefixes so nothing here can bleed into other theme styles. */

.alp-header-cert-filter {
  position: relative;
}

.alp-header-cert-filter-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, 0.92);
}

.alp-header-cert-filter-toggle:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.alp-header-cert-filter-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 0.5rem;
  z-index: 40;
}

.alp-header-cert-filter-menu.alp-open {
  display: block;
}

.alp-header-cert-filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  color: #26313c;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.12s ease-in-out;
}

.alp-header-cert-filter-option:hover {
  background-color: #f2f6fa;
}

.alp-header-cert-filter-option input[type="checkbox"] {
  accent-color: #0074bd;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Confirm modal shown when selecting off /explore. */
.alp-cert-nav-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.alp-cert-nav-confirm-box {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 380px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.alp-cert-nav-confirm-box p {
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.alp-cert-nav-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.alp-cert-nav-confirm-cancel,
.alp-cert-nav-confirm-yes {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font: inherit;
}

.alp-cert-nav-confirm-yes {
  background: #0074bd;
  border-color: #0074bd;
  color: #fff;
}
