/* ggnomz — custom filter dropdown (replaces native OS select menu) */

.gg-select {
  position: relative;
  display: inline-block;
  min-width: min(100%, 11rem);
}

.gg-select.is-open {
  z-index: 100;
}

.gg-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gg-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid var(--field-line, rgba(255, 255, 255, 0.22));
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: #f6f7ff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.gg-select__trigger:hover {
  border-color: rgba(155, 140, 255, 0.55);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 8px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(155, 140, 255, 0.22),
    0 0 20px var(--glow-violet, rgba(155, 140, 255, 0.4)),
    0 0 32px var(--glow-lime, rgba(212, 255, 122, 0.35));
}

.gg-select__trigger:focus-visible {
  outline: none;
  border-color: rgba(212, 255, 122, 0.55);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 8px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(212, 255, 122, 0.28),
    0 0 26px var(--glow-violet, rgba(155, 140, 255, 0.4)),
    0 0 42px var(--glow-lime, rgba(212, 255, 122, 0.35));
}

.gg-select.is-open .gg-select__trigger {
  border-color: rgba(212, 255, 122, 0.55);
  box-shadow:
    inset 0 1px 8px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(212, 255, 122, 0.28),
    0 0 26px var(--glow-violet, rgba(155, 140, 255, 0.4)),
    0 0 42px var(--glow-lime, rgba(212, 255, 122, 0.35));
}

.gg-select__chev {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.gg-select.is-open .gg-select__chev {
  transform: rotate(-135deg) translateY(2px);
}

.gg-select__menu {
  position: absolute;
  z-index: 101;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  border: 2px solid rgba(155, 140, 255, 0.35);
  background: linear-gradient(165deg, rgba(60, 29, 134, 0.98) 0%, rgba(36, 18, 90, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(8, 4, 24, 0.55),
    0 0 28px var(--glow-violet, rgba(155, 140, 255, 0.35)),
    0 0 48px var(--glow-pink, rgba(255, 143, 212, 0.2));
  max-height: min(16rem, 50vh);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

.gg-select.is-open .gg-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.gg-select__option {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #f6f7ff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.gg-select__option:hover,
.gg-select__option:focus {
  outline: none;
  background: rgba(155, 140, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(181, 255, 60, 0.2);
}

.gg-select__option[aria-selected="true"] {
  background: rgba(181, 255, 60, 0.14);
  color: var(--green, #b5ff3c);
  box-shadow: inset 0 0 0 1px rgba(181, 255, 60, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .gg-select__trigger,
  .gg-select__menu,
  .gg-select__chev {
    transition: none;
  }

  .gg-select__trigger:hover,
  .gg-select.is-open .gg-select__trigger {
    transform: none;
  }
}
