/* TrainerFilters.css - Styles for trainer filters sidebar */
.trainer-filters {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-header h3 {
  color: #f7fafc;
  font-size: 1.25rem;
  margin: 0;
}

.clear-filters-btn {
  background: transparent;
  border: none;
  color: #4299e1;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.clear-filters-btn:hover {
  color: #63b3ed;
}

.close-filters-btn {
  display: none;
  background: transparent;
  border: none;
  color: #a0aec0;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.close-filters-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f7fafc;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section h4 {
  color: #f7fafc;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Custom Checkbox */
.filter-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 28px;
  color: #a0aec0;
  transition: color 0.3s ease;
}

.filter-checkbox:hover {
  color: #f7fafc;
}

.filter-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.filter-checkbox input:checked ~ .checkbox-custom {
  background: #4299e1;
  border-color: #4299e1;
}

.checkbox-custom::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox input:checked ~ .checkbox-custom::after {
  display: block;
}

.checkbox-label {
  font-size: 0.875rem;
}

/* Custom Radio */
.filter-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 28px;
  color: #a0aec0;
  transition: color 0.3s ease;
  margin-bottom: 0.5rem;
}

.filter-radio:hover {
  color: #f7fafc;
}

.filter-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.filter-radio input:checked ~ .radio-custom {
  border-color: #4299e1;
}

.radio-custom::after {
  content: '';
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #4299e1;
  border-radius: 50%;
}

.filter-radio input:checked ~ .radio-custom::after {
  display: block;
}

.radio-label {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Price Range */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-input-group {
  flex: 1;
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 0.875rem;
}

.price-input-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0.75rem 0.5rem 1.75rem;
  color: #f7fafc;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.price-input-group input:focus {
  outline: none;
  border-color: #4299e1;
  background: rgba(255, 255, 255, 0.08);
}

.price-separator {
  color: #718096;
  font-size: 0.875rem;
}

.price-hint {
  margin-top: 0.5rem;
  color: #718096;
  font-size: 0.75rem;
}

/* Rating */
.rating-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stars {
  color: #ffd700;
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

.rating-text {
  font-size: 0.875rem;
}

/* Location */
.location-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.location-input,
.location-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: #f7fafc;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  width: 100%;
}

.location-input:focus,
.location-select:focus {
  outline: none;
  border-color: #4299e1;
  background: rgba(255, 255, 255, 0.08);
}

.location-select option {
  background: #2d3748;
  color: #f7fafc;
}

/* Availability */
.availability-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.available-icon {
  color: #48bb78;
  font-size: 0.5rem;
}

/* Footer */
.filters-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.apply-filters-btn {
  width: 100%;
  background: linear-gradient(135deg, #4299e1, #667eea);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-filters-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(66, 153, 225, 0.4);
}

/* Scrollbar styling */
.trainer-filters::-webkit-scrollbar {
  width: 6px;
}

.trainer-filters::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.trainer-filters::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.trainer-filters::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile styles */
@media (max-width: 1024px) {
  .trainer-filters {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    z-index: 1001;
    padding: 1rem;
  }
  
  .close-filters-btn {
    display: flex;
  }
  
  .filters-header {
    position: sticky;
    top: 0;
    background: #1a202c;
    z-index: 10;
    margin: -1rem -1rem 1.5rem -1rem;
    padding: 1rem;
  }
}