/**
 * smart-product-cta-1440048.css — Task #1440048
 * Styles for context-aware product CTA widgets.
 * White card, emerald buttons, Fortune 500 grade, mobile-first 375px.
 */

/* ─── End-of-content wrapper ─────────────────────────────────── */
.spc-eoc-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding: 0 1rem 2rem;
  box-sizing: border-box;
}

/* ─── CTA Card ───────────────────────────────────────────────── */
.spc-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.spc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 16px 16px 0 0;
}

.spc-card:hover {
  box-shadow: 0 6px 28px rgba(16,185,129,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

/* ─── Card icon ──────────────────────────────────────────────── */
.spc-card-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

/* ─── Card body ──────────────────────────────────────────────── */
.spc-card-body {
  flex: 1;
  min-width: 0;
}

.spc-card-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.spc-card-subline {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ─── Actions row ────────────────────────────────────────────── */
.spc-card-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.spc-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  outline: none;
  line-height: 1;
}

.spc-btn-primary {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.28);
}
.spc-btn-primary:hover {
  background: #059669;
  box-shadow: 0 4px 14px rgba(16,185,129,0.38);
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

.spc-btn-secondary {
  background: transparent;
  color: #374151;
  border: 1.5px solid #D1D5DB;
}
.spc-btn-secondary:hover {
  border-color: #10b981;
  color: #059669;
  background: rgba(16,185,129,0.04);
  text-decoration: none;
}

.spc-btn-sm {
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
}

/* ─── Profile banner (free users only) ──────────────────────── */
.spc-profile-banner {
  width: 100%;
  background: linear-gradient(135deg, #F0FDF9 0%, #ECFDF5 100%);
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.spc-profile-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.spc-profile-banner-text {
  font-size: 0.875rem;
  color: #065F46;
  line-height: 1.4;
  flex: 1;
  min-width: 180px;
}

/* ─── Game overlay promo ─────────────────────────────────────── */
.spc-game-promo {
  padding: 1rem;
  margin-top: 1rem;
}
.spc-game-promo .spc-card {
  border-radius: 12px;
  padding: 1.25rem;
}

/* ─── Mobile 375px ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .spc-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 12px;
  }
  .spc-card-icon {
    font-size: 1.5rem;
  }
  .spc-card-headline {
    font-size: 0.95rem;
  }
  .spc-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .spc-btn {
    justify-content: center;
    width: 100%;
  }
  .spc-profile-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .spc-profile-banner-inner .spc-btn {
    width: 100%;
    justify-content: center;
  }
  .spc-eoc-wrapper {
    padding: 0 0.75rem 1.5rem;
  }
}

@media (max-width: 375px) {
  .spc-card {
    padding: 1rem;
  }
  .spc-card-headline {
    font-size: 0.9rem;
  }
  .spc-card-subline {
    font-size: 0.82rem;
  }
}
