/* Custom styles for Online Opportunity Finder LP */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #059669;
  --card-bg: #f8fafc;
  --card-selected: #eff6ff;
  --text-main: #1e293b;
  --text-muted: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  min-height: 100vh;
}

/* Smooth transitions */
.transition-all {
  transition: all 0.25s ease;
}

/* Selection cards */
.option-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.option-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.12);
}

.option-card.selected {
  border-color: var(--primary);
  background: var(--card-selected);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.option-card.selected .flex-shrink-0 {
  background-color: #dbeafe;
}

.option-card.selected .select-btn {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.select-btn:active {
  transform: scale(0.98);
}

/* Offer cards */
.offer-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
}

.offer-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.15);
  transform: translateY(-3px);
}

.offer-card.recommended {
  border-color: #93c5fd;
  background: linear-gradient(to bottom, #f0f9ff 0%, #ffffff 40%);
}

.badge-recommended {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

/* CTA buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.4);
}

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

/* Progress indicator */
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.progress-dot.active {
  background: var(--primary);
}

/* Fade animations */
.fade-enter {
  opacity: 0;
  transform: translateY(12px);
}

.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hidden-section {
  display: none;
}

/* Hero image subtle overlay */
.hero-overlay {
  background: linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.4) 100%);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .option-card .icon {
    font-size: 1.75rem;
  }
}

/* Loading spinner for matching */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Soft pattern bg */
.bg-soft-pattern {
  background-image: url('../images/bg-pattern.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
}

/* Mobile quiz cards: compact 2x2 layout with centered icon */
@media (max-width: 640px) {
  #quiz-options .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .option-card {
    height: 148px;
    padding: 12px !important;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
  }

  .option-card > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 0 !important;
    width: 100%;
  }

  .option-card .flex-shrink-0 {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin: 0 auto 2px auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .option-card h3 {
    font-size: 13px !important;
    line-height: 18px;
    height: 18px;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 !important;
    width: 100%;
  }

  .option-card p {
    font-size: 11px !important;
    line-height: 15px;
    height: 15px;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    margin: 0 !important;
  }

  .option-card .select-btn {
    width: 100%;
    height: 28px;
    padding: 0 !important;
    font-size: 12px;
    border-radius: 10px;
    justify-content: center;
  }
}


/* PC / Mobile text variants */
.mobile-copy { display: none; }
.desktop-copy { display: inline; }

@media (max-width: 640px) {
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
}

/* Final mobile refinements */
@media (max-width: 640px) {
  .option-card .select-btn {
    background-color: #dcecff;
  }
}
