/* MarketplaceSearch.css - Styles for marketplace search page */
.marketplace-container {
  min-height: 100vh;
  background: #1a202c;
  color: #f7fafc;
}

.marketplace-header {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marketplace-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #4299e1, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.marketplace-header p {
  color: #a0aec0;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.search-form {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  color: #718096;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1rem 1rem 3rem;
  color: #f7fafc;
  font-size: 1rem;
  outline: none;
}

.search-input::placeholder {
  color: #718096;
}

.search-btn {
  background: linear-gradient(135deg, #4299e1, #667eea);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: linear-gradient(135deg, #3182ce, #5a67d8);
}

.quick-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.quick-filter:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f7fafc;
}

.quick-filter.active {
  background: rgba(66, 153, 225, 0.2);
  border-color: #4299e1;
  color: #63b3ed;
}

.quick-filter i {
  font-size: 1rem;
}

.marketplace-content {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.mobile-filter-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f7fafc;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  margin-bottom: 1rem;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.filter-count {
  background: #4299e1;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.trainers-grid-container {
  flex: 1;
  min-width: 0;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.results-count {
  color: #a0aec0;
  font-size: 0.875rem;
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-dropdown label {
  color: #718096;
  font-size: 0.875rem;
}

.sort-dropdown select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f7fafc;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
}

.sort-dropdown select:focus {
  border-color: #4299e1;
}

.loading-container {
  text-align: center;
  padding: 4rem 2rem;
}

.loading-spinner {
  font-size: 3rem;
  color: #4299e1;
  margin-bottom: 1rem;
}

.loading-container p {
  color: #a0aec0;
}

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.no-results i {
  font-size: 4rem;
  color: #4a5568;
  margin-bottom: 1rem;
}

.no-results h3 {
  color: #f7fafc;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: #a0aec0;
  margin-bottom: 2rem;
}

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

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

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #f7fafc;
}

.pagination-btn.active {
  background: linear-gradient(135deg, #4299e1, #667eea);
  color: white;
  border-color: transparent;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: #718096;
  padding: 0 0.5rem;
}

.become-trainer-cta {
  background: linear-gradient(135deg, #4299e1, #667eea);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.cta-content h3 {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
  color: white;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.cta-btn {
  background: white;
  color: #4299e1;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .marketplace-content {
    flex-direction: column;
  }
  
  .mobile-filter-toggle {
    display: flex;
  }
  
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #1a202c;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .filters-sidebar.show {
    left: 0;
  }
  
  .trainers-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 640px) {
  .marketplace-header {
    padding: 2rem 1rem;
  }
  
  .marketplace-header h1 {
    font-size: 2rem;
  }
  
  .search-btn {
    padding: 1rem 1.5rem;
  }
  
  .quick-filters {
    gap: 0.5rem;
  }
  
  .quick-filter {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .marketplace-content {
    padding: 1rem;
  }
  
  .trainers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}