/* ═══════════════════════════════════════
   FILTER SHEET  (mobile bottom sheet)
   ═══════════════════════════════════════ */
.filter-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.filter-overlay.open { opacity: 1; pointer-events: all; }

.filter-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--menu-bg);
  border-radius: 20px 20px 0 0;
  z-index: 301;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
  padding: 0 0 32px;
  max-height: 88vh;
  overflow-y: auto;
}
.filter-sheet.open { transform: translateY(0); }

.filter-handle {
  width: 36px; height: 4px;
  background: var(--white-14);
  border-radius: 2px;
  margin: 12px auto 0;
}

.filter-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 4px;
}
.filter-header-title {
  font-size: 18px; font-weight: 600;
  color: var(--white); transition: color 0.3s;
}
.filter-reset {
  font-size: 14px; color: var(--white-70);
  cursor: pointer; transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.filter-reset:active { color: var(--white); }

.filter-section { padding: 20px 20px 0; }

.filter-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--white-70); margin-bottom: 12px;
  transition: color 0.3s;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

.filter-chip {
  padding: 8px 14px;
  border-radius: var(--r-xxl);
  border: 1.5px solid var(--white-14);
  font-size: 14px; color: var(--white-70);
  cursor: pointer; transition: all 0.15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.filter-chip.active {
  border-color: var(--purple);
  color: var(--white);
  background: rgba(139,93,246,0.15);
}

.filter-select-row { display: flex; align-items: center; gap: 10px; }

.filter-select {
  flex: 1;
  background: var(--bg-light);
  border: 1.5px solid var(--white-14);
  border-radius: 12px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  outline: none; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
[data-theme="light"] .filter-select {
  color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(26,26,46,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.filter-select option { background: var(--menu-bg); color: var(--white); }

.filter-divider {
  height: 1px; background: var(--white-14);
  margin: 20px 20px 0; transition: background 0.3s;
}

.filter-actions { display: flex; gap: 10px; padding: 20px 20px 0; }

.filter-btn {
  flex: 1; padding: 14px;
  border-radius: var(--r-xxl);
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: opacity 0.15s, background 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.filter-btn:active { opacity: 0.8; }
.filter-btn.secondary { background: var(--bg-light); color: var(--white-70); }
.filter-btn.primary   { background: var(--purple); color: #fff; }
