/* ToolPicker Page - Specific Styles */
/* Uses the site's standard design system */

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-danger {
  color: var(--danger-color) !important;
}

.text-warning {
  color: var(--warning-color) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.tool-finder-section {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background: var(--light-gray);
  border-radius: var(--border-radius-lg);
}

.search-instructions {
  font-size: var(--font-size-lg);
  color: var(--text-color);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  line-height: var(--line-height-normal);
}

.form-group {
  max-width: 900px;
  margin: 0 auto;
}

.search-input {
  min-height: 300px;
  width: 100%;
  resize: vertical;
  font-family: var(--font-family-primary);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: var(--spacing-lg);
  font-size: 16px;
  line-height: 1.6;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
  outline: none;
  transform: translateY(-2px);
}

.search-input::placeholder {
  color: #999;
  font-style: italic;
}

.char-counter {
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-sm);
  text-align: right;
  transition: color var(--transition-fast);
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.search-button {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-normal);
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.search-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.features-section {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.features-section h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  position: relative;
  padding-bottom: var(--spacing-md);
}

.features-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #00c6ff);
  border-radius: 2px;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: white;
  padding: var(--spacing-lg);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  font-size: var(--font-size-base);
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '✓';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary-color);
  opacity: 0.3;
  font-weight: bold;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
  border-left-width: 6px;
}

.comparison-section {
  margin-top: var(--spacing-xl);
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.comparison-section h3 {
  font-size: 28px;
  font-weight: 600;
  color: white;
  margin: 0;
  text-align: center;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  position: relative;
}

.comparison-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00c6ff, var(--primary-color), #00c6ff);
}

.table-container {
  overflow-x: auto;
  padding: var(--spacing-lg);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--font-size-base);
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-weight: 600;
  color: var(--text-color);
  padding: var(--spacing-lg);
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  font-size: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table th:first-child {
  text-align: left;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: white;
}

.table td {
  color: var(--text-color);
  padding: var(--spacing-lg);
  text-align: center;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.table td:first-child {
  text-align: left;
  font-weight: 600;
  background: #f8f9fa;
  color: var(--primary-color);
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Column hover effect */
.table td.column-highlight,
.table th.column-highlight {
  background: rgba(255, 107, 53, 0.1);
  transform: scale(1.02);
}

.table .btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.table .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.error-message {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: 8px;
  font-size: var(--font-size-base);
  text-align: center;
}

/* Stats Section */
.stats-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  transition: transform 0.3s ease;
  text-align: center;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tool-finder-section {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
  }
  
  .search-instructions {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
  }
  
  .search-input {
    min-height: 150px;
  }
  
  .search-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
  }
  
  .features-section,
  .comparison-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
  }
  
  .features-section h3,
  .comparison-section h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
  }
  
  .features-list {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .feature-item {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }
  
  .table th,
  .table td {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
  }
  
  .stats-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .stat-item {
    padding: var(--spacing-md);
  }
  
  .stat-item .stat-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tool-finder-section {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm);
  }
  
  .search-input {
    min-height: 120px;
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
  }
  
  .search-button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }
  
  .search-loading {
    width: 20px;
    height: 20px;
    margin-left: var(--spacing-sm);
  }
  
  .features-section,
  .comparison-section {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
  }
  
  .features-section h3,
  .comparison-section h3 {
    font-size: var(--font-size-base);
    padding: var(--spacing-md);
  }
  
  .table-container {
    font-size: var(--font-size-xs);
  }
  
  .table th,
  .table td {
    padding: var(--spacing-xs);
    min-width: 60px;
  }
  
  .feature-item {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
  }
  
  .stats-list {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .stat-item {
    padding: var(--spacing-sm);
  }
  
  .stat-item h3 {
    font-size: 1rem;
  }
  
  .stat-item .stat-number {
    font-size: 1.3rem;
  }
  
  .stat-item p {
    font-size: 0.875rem;
  }
}