/* Pill button — demo: white arrow circle rotates 45deg, dark fill slides in from the left */
.btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  overflow: hidden;
  padding: 14px 52px 14px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color var(--duration-slow) var(--ease), color var(--duration-slow) var(--ease);

  &::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7F8C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / 12px;
    transform: translate(-10px, -50%);
    transition: transform var(--duration-base) var(--ease);
  }

  &::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 0;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    transition: width var(--duration-base) var(--ease);
  }

  &:active {
    transform: translateY(1px);
  }
}

@media (hover: hover) {
  .btn:hover { background-color: transparent; }
  .btn:hover::before { transform: translate(-10px, -50%) rotate(45deg); }
  .btn:hover::after { width: 100%; }
}

/* Light variant on dark backgrounds */
.btn--light {
  background: var(--color-white);
  color: var(--color-primary);

  &::before {
    background-color: var(--color-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
  }

  &::after {
    background: var(--color-gold);
  }
}

/* Text link with arrow ("Read More") */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--duration-slow) var(--ease), gap var(--duration-fast) var(--ease);
}

@media (hover: hover) {
  .link-more:hover { gap: 0.7rem; }
}
