/* ==========================================================
   FILTERS PREMIUM - Visual Sofisticado com Glassmorphism
   ========================================================== */

/* ==============================================
   FILTER CARDS - Glassmorphism Premium
   ============================================== */
.ss-filter-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(139, 159, 255, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.ss-filter-card--top {
  border-top: 2px solid rgba(139, 159, 255, 0.4);
}

.ss-filter-card--bottom {
  border-radius: 16px;
}

.ss-filter-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ss-filter-card__header--compact {
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  border-bottom: none;
}

.ss-filter-card__header h4,
.ss-categories-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.ss-filter-clear {
  font-size: 0.75rem;
  color: #8b9fff;
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.ss-filter-clear:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==============================================
   CATEGORIES LIST - Premium
   ============================================== */
.ss-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ss-category-item {
  position: relative;
}

.ss-category-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(51, 65, 85, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-category-item a:hover {
  background: linear-gradient(135deg, rgba(139, 159, 255, 0.15) 0%, rgba(111, 129, 255, 0.1) 100%);
  border-color: rgba(139, 159, 255, 0.25);
  transform: translateX(4px);
}

.ss-category-item.active a {
  background: linear-gradient(135deg, rgba(139, 159, 255, 0.2) 0%, rgba(111, 129, 255, 0.15) 100%);
  border-color: rgba(139, 159, 255, 0.4);
  color: #fff;
  box-shadow: 
    0 4px 12px rgba(139, 159, 255, 0.2),
    0 0 0 1px rgba(139, 159, 255, 0.1) inset;
}

.ss-cat-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.625rem;
}

.ss-cat-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ss-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 0.5rem;
  background: rgba(139, 159, 255, 0.15);
  border: 1px solid rgba(139, 159, 255, 0.2);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #8b9fff;
}

.ss-category-item.active .ss-category-count {
  background: rgba(139, 159, 255, 0.25);
  border-color: rgba(139, 159, 255, 0.4);
  color: #fff;
}

/* ==============================================
   PLATFORM FILTER - Pills Premium
   ============================================== */
.ss-platform-filter {
  margin-bottom: 1.25rem;
}

.ss-platform-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ss-platform-pill {
  display: flex;
  flex: 1;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  position: relative;
  overflow: hidden;
}

.ss-platform-pill__bg {
  display: none;
}

.plat-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.plat-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.plat-btn.active {
  background: linear-gradient(135deg, rgba(139, 159, 255, 0.3) 0%, rgba(111, 129, 255, 0.2) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139, 159, 255, 0.25);
}

.plat-btn--clear-out {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: rgba(239, 68, 68, 0.7);
  font-size: 1.125rem;
  line-height: 1;
}

.plat-btn--clear-out:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.ss-cat-icon--btn img {
  width: 16px;
  height: 16px;
}

.ss-platform-label {
  display: inline;
}

/* ==============================================
   PRICE FILTER - Premium Slider
   ============================================== */
.ss-price-filter {
  margin-bottom: 1.25rem;
}

.ss-price-filter__label,
.ss-filtro-titulo {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

/* Range Slider Container */
.ss-range-slider-container {
  position: relative;
  height: 24px;
  margin: 1rem 0 0.75rem 0;
}

.ss-range-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.8) 100%);
  border-radius: 3px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ss-range-slider-fill {
  position: absolute;
  top: 50%;
  height: 6px;
  background: linear-gradient(90deg, #6f81ff, #8b9fff);
  border-radius: 3px;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(139, 159, 255, 0.4);
}

.ss-range-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
}

.ss-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  border: 2px solid #8b9fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(139, 159, 255, 0.2);
  transition: all 0.2s ease;
}

.ss-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 0 6px rgba(139, 159, 255, 0.3);
}

.ss-range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  border: 2px solid #8b9fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Price Display */
.ss-price-filter__display {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.875rem;
}

.ss-price-filter__display span {
  color: rgba(255, 255, 255, 0.4);
}

.ss-price-filter__display #price-min-val,
.ss-price-filter__display #price-max-val {
  color: #8b9fff;
  font-weight: 600;
}

/* Price Inputs Row */
.ss-price-inputs-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(51, 65, 85, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.375rem;
  position: relative;
}

.ss-price-inputs-row::before {
  display: none;
}

.ss-price-inputs-row input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ss-price-inputs-row input:focus {
  outline: none;
  border-color: rgba(139, 159, 255, 0.5);
  background: rgba(139, 159, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(139, 159, 255, 0.15);
}

.ss-price-inputs-row input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* "Até" separator */
.ss-price-inputs-row::after {
  content: 'até';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.95);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==============================================
   SELECT / DROPDOWN - Premium
   ============================================== */
.ss-form-group {
  margin-bottom: 1rem;
}

.ss-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.ss-select,
.ss-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.ss-select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.ss-select:hover,
.ss-input:hover {
  border-color: rgba(139, 159, 255, 0.3);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.7) 100%);
}

.ss-select:focus,
.ss-input:focus {
  outline: none;
  border-color: rgba(139, 159, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 159, 255, 0.15);
}

.ss-select option {
  background: #1e293b;
  color: #fff;
  padding: 0.5rem;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
  .ss-filter-card {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .ss-category-item a {
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  .ss-platform-label {
    display: none;
  }
  
  .plat-btn {
    padding: 0.5rem;
  }
  
  .ss-cat-icon--btn img {
    width: 20px;
    height: 20px;
  }
}
