/* Default Smart Link Template - Gradient Accent Style */
.content-craft-ai-smart-link {
  display: block;
  margin: 25px 0;
  padding: 24px 24px 24px 86px;
  background: linear-gradient(to right, #eef2ff, #f5f3ff, #fdf2f8);
  border-radius: 1rem;
  border: 1px solid transparent;
  font-size: inherit;
  line-height: 1.5;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.content-craft-ai-smart-link:hover {
  background: linear-gradient(to right, #e0e7ff, #ede9fe, #fce7f3);
  border-color: #c7d2fe;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.content-craft-ai-smart-link:before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-craft-ai-smart-link:after {
  content: "";
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.content-craft-ai-smart-link.content-craft-ai-smart-link-external:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

.content-craft-ai-smart-link a {
  display: block;
  color: #4f46e5;
  font-weight: 700;
  font-size: inherit;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.content-craft-ai-smart-link a:hover {
  color: #6366f1;
  text-decoration: none;
}

.content-craft-ai-smart-link p {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.content-craft-ai-smart-link-action {
  display: inline-flex;
  align-items: center;
  color: #4f46e5;
  font-weight: 500;
  font-size: 0.875rem;
}

.content-craft-ai-smart-link-action::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.content-craft-ai-smart-link:hover .content-craft-ai-smart-link-action::after {
  transform: translateX(4px);
}

/* Editor styling - makes it clear this is a special element */
.mce-content-body .content-craft-ai-smart-link,
.block-editor-rich-text__editable .content-craft-ai-smart-link {
  pointer-events: none; /* Prevent editing of the container */
}

.mce-content-body .content-craft-ai-smart-link a,
.block-editor-rich-text__editable .content-craft-ai-smart-link a {
  pointer-events: auto; /* Allow clicking on the link */
}
