/* Basic CSS Reset and Utilities */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    "Oxygen",
    "Ubuntu",
    "Cantarell",
    sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* Utility classes for common styling */
.bg-gray-50 {
  background-color: #f9fafb;
}
.bg-white {
  background-color: #ffffff;
}
.bg-blue-50 {
  background-color: #eff6ff;
}
.bg-green-100 {
  background-color: #dcfce7;
}
.bg-red-50 {
  background-color: #fef2f2;
}
.bg-yellow-50 {
  background-color: #fefce8;
}
.bg-purple-50 {
  background-color: #faf5ff;
}

.text-gray-900 {
  color: #111827;
}
.text-gray-600 {
  color: #4b5563;
}
.text-blue-600 {
  color: #2563eb;
}
.text-green-600 {
  color: #16a34a;
}
.text-red-600 {
  color: #dc2626;
}

.border {
  border: 1px solid #e5e7eb;
}
.border-blue-200 {
  border-color: #bfdbfe;
}
.border-green-200 {
  border-color: #bbf7d0;
}

.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.shadow-md {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.min-h-screen {
  min-height: 100vh;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.text-center {
  text-align: center;
}

.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}

.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}

.w-full {
  width: 100%;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-lg {
  max-width: 32rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Engagement Modal Styles */
.engagement-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.option-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.option-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.option-card.recommended {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.rating-item.rated {
  background-color: #eff6ff;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
}

.star-rating button {
  background: none;
  border: none;
  font-size: 1.125rem;
  transition: all 0.2s;
  cursor: pointer;
}

.star-rating button:hover {
  transform: scale(1.1);
  color: #fbbf24;
}

.star-rating button:disabled {
  cursor: not-allowed;
}

.option-cta {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.option-cta:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
  color: #6b7280;
}

.option-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.benefit-tag {
  background-color: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

/* Animation for modal entrance */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.engagement-modal > div {
  animation: modalFadeIn 0.2s ease-out;
}
