@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@300;400;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --sage: #8B9D83;
  --clay: #C4A896;
  --cream: #F5F1E8;
  --charcoal: #2D3436;
  --terracotta: #D4795C;
  --olive: #5C6B4A;
  --warm-white: #FFFEF9;
  --shadow: rgba(45, 52, 54, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
  color: var(--charcoal);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

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

.logo {
  font-family: 'Crimson Pro', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.logo strong {
  font-weight: 700;
  color: var(--terracotta);
}

.tagline {
  font-size: 16px;
  color: var(--olive);
  letter-spacing: 0.5px;
}

.conversation {
  display: none;
  margin-bottom: 40px;
}

.conversation.active {
  display: block;
}

.message {
  margin-bottom: 32px;
}

.message-user {
  background: white;
  padding: 20px 24px;
  border-radius: 12px;
  border-left: 4px solid var(--sage);
  box-shadow: 0 2px 8px var(--shadow);
}

.message-ai {
  background: linear-gradient(135deg, #FDFCF7 0%, white 100%);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid rgba(139, 157, 131, 0.1);
}

.message-ai-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal);
  white-space: pre-wrap;
}

.quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.quick-action-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid var(--sage);
  border-radius: 8px;
  color: var(--olive);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.quick-action-btn:hover {
  background: var(--sage);
  color: white;
  transform: translateY(-2px);
}

.search-section {
  position: sticky;
  bottom: 20px;
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 -4px 32px var(--shadow);
  margin-bottom: 20px;
  z-index: 100;
}

.search-label {
  font-family: 'Crimson Pro', serif;
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 16px;
  font-weight: 600;
}

.search-input {
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  border: 2px solid var(--cream);
  border-radius: 12px;
  background: var(--warm-white);
  color: var(--charcoal);
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 60px;
}

.search-input:focus {
  outline: none;
  border-color: var(--sage);
  background: white;
  box-shadow: 0 4px 16px rgba(139, 157, 131, 0.1);
}

.search-btn {
  margin-top: 16px;
  padding: 16px 40px;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 16px rgba(212, 121, 92, 0.2);
}

.search-btn:hover {
  background: #C2664A;
  transform: translateY(-2px);
}

.search-btn:disabled {
  background: var(--clay);
  cursor: not-allowed;
  opacity: 0.6;
}

.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--cream);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.ingredient {
  display: inline-block;
  background: linear-gradient(135deg, var(--sage), var(--olive));
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  margin: 0 2px;
}

.ingredient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 107, 74, 0.3);
}

.technique {
  display: inline-block;
  background: linear-gradient(135deg, var(--clay), var(--terracotta));
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  margin: 0 2px;
}

.technique:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 121, 92, 0.3);
}
