/* استایل مدرن لینک‌های داخلی خودکار */
.sal-internal-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none !important;
  padding: 0 4px;
  border-radius: 4px;
  background-image: linear-gradient(120deg, rgba(2, 132, 199, 0.12) 0%, rgba(14, 165, 233, 0.18) 100%);
  background-repeat: no-repeat;
  background-size: 100% 35%;
  background-position: 0 88%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sal-internal-link:hover {
  color: #0369a1;
  background-size: 100% 100%;
  background-position: 0 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.sal-internal-link::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' 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%3C/path%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/path%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' 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%3C/path%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/path%3E%3C/svg%3E") no-repeat center;
  background-color: currentColor;
  opacity: 0.65;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform: rotate(-45deg);
}

.sal-internal-link:hover::after {
  opacity: 1;
  transform: rotate(-45deg) translateY(-2px);
}

@media (prefers-color-scheme: dark) {
  .sal-internal-link {
    color: #38bdf8;
    background-image: linear-gradient(120deg, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0.25) 100%);
  }
  .sal-internal-link:hover {
    color: #7dd3fc;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
  }
}
