/* CTA Inserter Pro — Frontend CTA Card */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.ctai-block {
  margin: 28px 0;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* ── Main Card ── */
.ctai-cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1.5px solid #d1fae5;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow:
    0 4px 6px -1px rgba(22, 163, 74, .06),
    0 10px 30px -8px rgba(22, 163, 74, .12);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
  cursor: default;
}

/* Animated left accent bar */
.ctai-cta-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 50%, #15803d 100%);
  border-radius: 4px 0 0 4px;
  transition: width .25s;
}
.ctai-cta-card:hover::before { width: 5px; }

/* Subtle shimmer on hover */
.ctai-cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 40%, rgba(209,250,229,.3) 100%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  border-radius: 16px;
}
.ctai-cta-card:hover::after { opacity: 1; }
.ctai-cta-card:hover {
  border-color: #86efac;
  box-shadow:
    0 8px 16px -4px rgba(22, 163, 74, .12),
    0 20px 48px -12px rgba(22, 163, 74, .18);
  transform: translateY(-2px);
}

/* ── Icon box ── */
.ctai-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #16a34a;
  transition: transform .25s;
}
.ctai-cta-card:hover .ctai-icon-box {
  transform: scale(1.08) rotate(-3deg);
}
.ctai-icon-box svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Body text ── */
.ctai-body {
  flex: 1;
  min-width: 0;
}
.ctai-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #15803d;
  background: linear-gradient(135deg, #dcfce7, #d1fae5);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.ctai-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctai-sub {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── CTA Button ── */
.ctai-see-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #ffffff !important;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(22, 163, 74, .35), 0 1px 2px rgba(0,0,0,.1);
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}
.ctai-see-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .2s;
}
.ctai-see-btn:hover::before { opacity: 1; }
.ctai-see-btn:hover {
  box-shadow: 0 6px 20px rgba(22, 163, 74, .45), 0 2px 6px rgba(0,0,0,.12);
  transform: translateY(-1px);
  color: #ffffff !important;
}
.ctai-see-btn:active { transform: translateY(0); }
.ctai-see-btn svg {
  width: 13px; height: 13px;
  fill: none; stroke: #ffffff;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.ctai-see-btn:hover svg { transform: translateX(3px); }

/* ── Entrance animation ── */
@keyframes ctai-slidein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ctai-block { animation: ctai-slidein .5s cubic-bezier(.4, 0, .2, 1) both; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .ctai-cta-card { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .ctai-see-btn  { width: 100%; justify-content: center; }
  .ctai-title    { white-space: normal; font-size: 14px; }
  .ctai-sub      { white-space: normal; }
}
