* {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3 {
  font-family: 'Quicksand', sans-serif;
}

.header {
  background: linear-gradient(135deg, #FF6B9D 0%, #9B59B6 100%);
  box-shadow: 0 4px 20px rgba(155, 89, 182, 0.3);
}

.card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mood-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 3px solid #E0E0E0;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 100px;
}

.mood-button:hover {
  border-color: #BB8FCE;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.2);
}

.mood-button.selected {
  border-color: #9B59B6;
  background: linear-gradient(135deg, #FFA5C1 0%, #BB8FCE 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
}

.feeling-tag {
  padding: 0.5rem 1rem;
  border: 2px solid #E0E0E0;
  border-radius: 9999px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.feeling-tag:hover {
  border-color: #BB8FCE;
  transform: translateY(-1px);
}

.feeling-tag.selected {
  border-color: #9B59B6;
  background: linear-gradient(135deg, #FF6B9D 0%, #9B59B6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.cta-button {
  width: 100%;
  background: linear-gradient(135deg, #FF6B9D 0%, #9B59B6 100%);
  color: white;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.125rem;
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.cta-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
}

.book-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155, 89, 182, 0.15);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 6px solid #E0E0E0;
  border-top-color: #FF6B9D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner-small {
  width: 40px;
  height: 40px;
  border: 4px solid #E0E0E0;
  border-top-color: #FF6B9D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.footer {
  background: linear-gradient(135deg, #9B59B6 0%, #FF6B9D 100%);
  margin-top: 4rem;
  box-shadow: 0 -4px 20px rgba(155, 89, 182, 0.2);
}

@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .mood-button {
    min-height: 80px;
    padding: 0.75rem;
  }
  
  .book-card {
    padding: 1rem;
  }
}

textarea:focus, input:focus {
  outline: none;
}