/* Track Area Page Styles */
.track-area-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.header-icon {
  margin-bottom: 1rem;
  color: #6b7280;
}

.track-area-header h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}

.track-area-header p {
  margin: 0;
  font-size: 16px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Search Form */
.search-form {
  background: white;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group select,
.form-group input {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group select[required] {
  border-color: #e53e3e;
}

.form-group select[required]:valid {
  border-color: #38a169;
}

/* Cost Range */
.cost-range {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cost-range .cost-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: stretch; /* Use full width of container */
}

.cost-range input {
  flex: 1;
}

.cost-range span {
  color: #4a5568;
  font-weight: 500;
}

/* Cost Range Slider */
.cost-range .cost-range-slider {
  margin: 0.5rem 0;
  align-self: stretch; /* Use full width of container but constrained by parent */
}

.cost-range .cost-range-slider .range-slider-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.cost-range .cost-range-slider .range-slider-container {
  margin: 1rem 0 0.5rem 0;
  max-width: 350px; /* Consistent constraint across all usage locations */
}

.cost-range .cost-range-slider .range-slider-values {
  margin-top: 0.25rem;
}

.cost-range .cost-range-slider .range-slider-value-display {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}

/* Form Actions */
.form-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.btn-secondary {
  padding: 12px 24px;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #4b5563;
}

/* Placeholder Section */
.placeholder-section {
  text-align: center;
  padding: 48px 24px;
  background: #f9fafb;
  border-radius: 8px;
  margin: 24px 0;
  border: 1px solid #e5e7eb;
}

.placeholder-content {
  max-width: 600px;
  margin: 0 auto;
}

.placeholder-icon {
  color: #6b7280;
  margin-bottom: 24px;
}

.placeholder-section h3 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.placeholder-section p {
  margin: 0 0 32px 0;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.5;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.feature-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-item svg {
  color: #2563eb;
  flex-shrink: 0;
}

.feature-item span {
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

/* Results Section */
.results-section {
  margin-top: 32px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.results-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

/* Summary Stats */
.summary-stats {
  display: flex;
  gap: 16px;
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Loading, Error, No Results */
.loading,
.error,
.no-results {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.loading {
  background: #f0f8ff;
  color: #2b6cb0;
  font-size: 1.1rem;
}

.error {
  background: #fed7d7;
  color: #c53030;
  font-weight: 500;
}

.no-results {
  background: #f7fafc;
  color: #4a5568;
  font-style: italic;
}

/* Project grid styles removed - now using ProjectListing component */

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cost-range {
    align-items: stretch; /* Full width on mobile */
  }
  
  .cost-range .cost-range-slider .range-slider-container {
    max-width: none; /* Remove width constraint on mobile */
  }
}

  .results-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .summary-stats {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .stat {
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
  }

  /* Project grid responsive styles removed - now using ProjectListing component */
}

@media (max-width: 480px) {
  .track-area-header h1 {
    font-size: 24px;
  }

  .search-form {
    padding: 16px;
  }

  .project-card {
    padding: 16px;
  }

  .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }

  .placeholder-section {
    padding: 32px 16px;
  }

  .placeholder-section h3 {
    font-size: 20px;
  }

  .placeholder-section p {
    font-size: 14px;
  }

  .feature-item {
    padding: 12px 16px;
    gap: 12px;
  }

  .feature-item span {
    font-size: 14px;
  }
}