/* AI Kitchen Generator Styles */

.ai-generate-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.ai-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #2c5282 0%, #553c9a 50%, #2c5282 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
}

.ai-generate-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 60, 154, 0.4);
}

.ai-generate-btn:active {
  transform: translateY(0);
}

.ai-sparkle {
  animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15) rotate(15deg); }
}

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  color: #553c9a;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.ai-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e2e8f0;
  border-top-color: #553c9a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-error {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff5f5;
  color: #c53030;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

/* Generated Gallery */
.ai-gallery-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.ai-gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #2c2c2c;
  margin-bottom: 1.25rem;
  text-align: center;
}

.ai-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

.ai-result-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ai-result-card img {
  width: 100%;
  height: auto;
  display: block;
}

.ai-result-info {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ai-result-info strong {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #2c2c2c;
}

.ai-disclaimer {
  font-size: 0.75rem;
  color: #a0aec0;
  font-style: italic;
}

@media (max-width: 768px) {
  .ai-gallery {
    grid-template-columns: 1fr;
  }
}
