/* Upsell CTA component — reusable, dismissible, contextual
   MLI brand palette applied. Subtle, not aggressive.
*/

/* ── UPSELL WRAPPER ── */
.upsell-wrapper {
  position: relative;
  width: 100%;
}

/* ── CARD ── */
.upsell-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(43, 94, 224, 0.06);
  border: 1px solid rgba(43, 94, 224, 0.18);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem auto;
  max-width: 640px;
  /* Subtle entrance animation */
  animation: upsellFadeIn 0.4s ease forwards;
}

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

.upsell-card:hover {
  border-color: rgba(43, 94, 224, 0.30);
}

/* Icon */
.upsell-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(43, 94, 224, 0.12);
  border: 1px solid rgba(43, 94, 224, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upsell-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Content */
.upsell-content { flex: 1; min-width: 0; }

.upsell-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.upsell-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.upsell-sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Actions */
.upsell-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.upsell-dismiss {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  font-family: inherit;
}

.upsell-dismiss:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.20);
}

.upsell-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.upsell-cta-btn:hover { opacity: 0.85; }

/* ── INLINE CONTEXT PLACEMENT (roadmap coaching nudge) ── */
.upsell-inline {
  max-width: 100%;
  background: rgba(107, 142, 35, 0.06);
  border: 1px solid rgba(107, 142, 35, 0.20);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: upsellFadeIn 0.4s ease forwards;
}

.upsell-inline .upsell-icon {
  background: rgba(107, 142, 35, 0.10);
  border-color: rgba(107, 142, 35, 0.20);
}

.upsell-inline .upsell-icon svg { stroke: var(--accent); }

.upsell-inline .upsell-label { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .upsell-card {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }

  .upsell-actions {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }

  .upsell-headline { font-size: 0.9rem; }
  .upsell-sub { font-size: 0.8rem; }

  .upsell-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .upsell-inline .upsell-actions {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }
}