/* Cooking Method Page Styles */

.cooking-method-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cooking-method-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.cooking-method-header h2 {
  font-size: 1.8em;
  color: #1f2937;
  margin-bottom: 10px;
}

.cooking-method-subtitle {
  color: #6b7280;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.back-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.back-link:hover {
  background-color: #f3f4f6;
}

.ingredient-filter-section {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #e5e7eb;
}

.ingredient-filter-section h3 {
  font-size: 1.1em;
  color: #374151;
  margin-bottom: 8px;
}

.filter-description {
  color: #6b7280;
  font-size: 0.95em;
  margin-bottom: 15px;
}

.ingredient-filter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ingredients-input-wrapper {
  flex: 1;
}

.ingredients-input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  min-height: 48px;
  cursor: text;
  transition: border-color 0.3s;
}

.ingredients-input-container:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ingredients-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ingredient-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 500;
}

.ingredient-tag-remove {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.1em;
  padding: 0;
  margin-left: 2px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.ingredient-tag-remove:hover {
  opacity: 1;
}

.ingredient-text-input {
  flex: 1;
  min-width: 150px;
  border: none;
  outline: none;
  font-size: 1em;
  background: transparent;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9em;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.no-results-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.5em;
  color: #1f2937;
  margin-bottom: 10px;
}

.no-results p {
  color: #6b7280;
  font-size: 1.1em;
  margin-bottom: 20px;
}

.results-summary {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-summary p {
  margin: 0;
  color: #1e40af;
  font-size: 1em;
}

.results-page-info {
  color: #60a5fa !important;
  font-size: 0.9em !important;
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-pages {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination-link {
  padding: 10px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.pagination-link:hover:not(.disabled) {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-number {
  padding: 8px 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s;
}

.pagination-number:hover:not(.active) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.pagination-number.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
  font-weight: 600;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #9ca3af;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 2px solid #d1d5db;
}

.btn-secondary:hover {
  border-color: #667eea;
  color: #667eea;
}

.filters-row {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-label {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.filter-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 20px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
}
