/*
=================================================================
  SHARED FILTER + SIDEBAR COMPONENTS
  Extracted from opportunities.css so they can be reused across
  multiple pages while staying DRY.
=================================================================
*/

/* =================================================================
   SIDEBAR — DESKTOP (.opp-sidebar)
================================================================= */
.opp-sidebar {
  padding: 1.5rem 0;
  position: sticky;
  top: 1.5rem;
}

.opp-sidebar__form {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(107,33,168,0.09);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--t-mid);
}

.opp-sidebar__form:hover {
  box-shadow: var(--shadow-md);
}

.opp-sidebar__form--advanced {
  background: rgba(248,246,252,0.8);
  border-style: dashed;
  animation: opp-slideDown 0.28s var(--ease) both;
}

.opp-sidebar__section {
  margin-bottom: 1.25rem;
}

.opp-sidebar__section:last-child {
  margin-bottom: 0;
}

.opp-sidebar__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 9px;
}

.opp-sidebar__actions {
  display: flex;
  gap: 8px;
  padding-top: 0.25rem;
}

.opp-sidebar__submit {
  flex: 1;
  padding: 10px 14px;
  background: var(--grad);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.opp-sidebar__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(107,33,168,0.3);
}

.opp-sidebar__toggle {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: rgba(107,33,168,0.07);
  color: #6b21a8;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1.5px solid rgba(107,33,168,0.2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t-fast);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.opp-sidebar__toggle:hover,
.opp-sidebar__toggle.is-active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.opp-sidebar__toggle-chevron {
  transition: transform 0.25s var(--ease);
}

.opp-sidebar__toggle-chevron.is-open {
  transform: rotate(180deg);
}


/* =================================================================
   PILL GROUPS (.opp-pill-group / .opp-pill)
================================================================= */
.opp-pill-group {
  display: flex;
  gap: 7px;
}

.opp-pill-group--wrap {
  flex-wrap: wrap;
}

.opp-pill-group--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.opp-pill-group--scroll::-webkit-scrollbar { display: none; }

/* Base pill */
.opp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(107,33,168,0.2);
  background: #fff;
  color: #475569;
  transition: var(--t-fast);
  white-space: nowrap;
  user-select: none;
  /* Reset button styles */
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
}

.opp-pill:hover {
  border-color: #6b21a8;
  color: #6b21a8;
  background: var(--grad-subtle);
}

.opp-pill--active {
  background: var(--grad);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(107,33,168,0.25);
}

.opp-pill--active:hover {
  color: #6b21a8 !important;
  background: #fff;
  border-color: rgba(107, 33, 168, 0.45);
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.2);
  transform: translateY(-1px);
}

.opp-pill--active:hover .opp-pill__remove {
  color: rgba(107, 33, 168, 0.75);
}

.opp-pill--active:hover .opp-pill__remove:hover {
  color: #4c1d95;
}

/* Press animation */
.opp-pill--press {
  transform: scale(0.94);
}

/* Small variant */
.opp-pill--sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* With remove button */
.opp-pill--removable {
  gap: 4px;
  padding-right: 6px;
}

.opp-pill__remove {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.8);
  transition: var(--t-fast);
  text-decoration: none;
  font-size: 0.85rem;
}

.opp-pill__remove:hover {
  color: #fff;
  transform: scale(1.2);
}


/* =================================================================
   SHARED FORM ELEMENTS (.opp-select / .opp-input / .opp-search-wrap)
================================================================= */
.opp-search-wrap {
  position: relative;
}

.opp-search-wrap__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.opp-search-wrap__input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: #1e293b;
  background: #fff;
  transition: var(--t-fast);
  outline: none;
}

.opp-search-wrap__input:focus {
  border-color: #6b21a8;
  box-shadow: 0 0 0 3px rgba(107,33,168,0.1);
}

.opp-search-wrap__input::placeholder {
  color: #94a3b8;
}

.opp-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: #1e293b;
  background: #fff;
  transition: var(--t-fast);
  outline: none;
  cursor: pointer;
}

.opp-select:focus {
  border-color: #6b21a8;
  box-shadow: 0 0 0 3px rgba(107,33,168,0.1);
}

.opp-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: #1e293b;
  background: #fff;
  transition: var(--t-fast);
  outline: none;
}

.opp-input:focus {
  border-color: #6b21a8;
  box-shadow: 0 0 0 3px rgba(107,33,168,0.1);
}


/* =================================================================
   ACTIVE FILTER TAGS (sidebar)
================================================================= */
.opp-active-filters {
  background: #fff;
  border: 1px solid rgba(107,33,168,0.1);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xs);
}

.opp-active-filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.opp-active-filters__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.opp-active-filters__clear {
  font-size: 0.8rem;
  font-weight: 600;
  color: #be185d;
  text-decoration: none;
  transition: var(--t-fast);
}

.opp-active-filters__clear:hover {
  opacity: 0.75;
}

.opp-active-filters__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* =================================================================
   PRO-TIP COMPONENT (.opp-protip)
================================================================= */
.opp-protip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(107,33,168,0.05);
  border-left: 3px solid #6b21a8;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 12px 14px;
  margin-bottom: 1rem;
  position: relative;
}

.opp-protip--drawer {
  margin: 0 20px 0;
  border-radius: var(--r-md);
  border-left: 3px solid #6b21a8;
}

.opp-protip--inline {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.83rem;
  color: #6b21a8;
  background: rgba(107,33,168,0.06);
  border-left: none;
  border: 1px solid rgba(107,33,168,0.15);
  border-radius: var(--r-md);
  padding: 10px 16px;
  margin-top: 1.5rem;
  text-align: center;
}

.opp-protip__icon {
  color: #6b21a8;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.opp-protip__text {
  font-size: 0.8rem;
  color: #4c1d95;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.opp-protip__dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border-radius: 50%;
  transition: var(--t-fast);
  padding: 0;
}

.opp-protip__dismiss:hover {
  background: rgba(148,163,184,0.2);
  color: #475569;
}


/* =================================================================
   UTILITIES
================================================================= */
.opp-no-scroll {
  overflow: hidden;
}

