/* Recipes Index Page Styles */

.page-container {
  max-width: 100%;
}

/* Quick Recipes Banner */
.quick-recipes-banner {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.quick-recipes-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.banner-icon {
  font-size: 3em;
  flex-shrink: 0;
}

.banner-content {
  flex: 1;
}

.banner-content h3 {
  font-size: 1.3em;
  color: #78350f;
  margin-bottom: 4px;
  font-weight: 700;
}

.banner-content p {
  color: #92400e;
  font-size: 0.95em;
  margin: 0;
}

.banner-link {
  background: white;
  color: #f59e0b;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner-link:hover {
  background: #fffbeb;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Main Content Layout */
.main-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

/* Search Section */
.search-section {
  background: #f9fafb;
  border-radius: 12px;
  padding: 30px;
}

.search-header {
  text-align: center;
  margin-bottom: 30px;
}

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

.search-subtitle {
  color: #6b7280;
  font-size: 1em;
  line-height: 1.6;
}

.search-form-wrapper {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.form-hint {
  margin-top: 8px;
  font-size: 0.9em;
  color: #6b7280;
}

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

/* Ingredients Input */
.ingredients-input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  background: white;
  min-height: 50px;
  cursor: text;
  transition: border-color 0.3s, box-shadow 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: 8px;
}

.ingredient-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  animation: tagAppear 0.2s ease-out;
}

@keyframes tagAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ingredient-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 0;
}

.ingredient-tag-remove:hover {
  background: rgba(255, 255, 255, 0.5);
}

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

.ingredient-text-input::placeholder {
  color: #9ca3af;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

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

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

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

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Cooking Methods Section */
.cooking-methods-section {
  background: #f9fafb;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.cooking-methods-section h2 {
  font-size: 1.5em;
  color: #1f2937;
  margin-bottom: 8px;
}

.cooking-methods-subtitle {
  color: #6b7280;
  font-size: 0.95em;
  margin-bottom: 25px;
}

.cooking-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cooking-method-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  text-align: left;
  transition: all 0.3s ease;
}

.cooking-method-card:hover {
  border-color: #667eea;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.cooking-method-icon {
  font-size: 2.5em;
  flex-shrink: 0;
}

.cooking-method-card h3 {
  font-size: 1.1em;
  color: #1f2937;
  margin-bottom: 4px;
  font-weight: 600;
}

.cooking-method-card p {
  color: #6b7280;
  font-size: 0.9em;
  margin: 0;
}

/* Alert Styles */
.alert-error {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  border-left: 4px solid #ef4444;
}
