/**
 * @file
 * FlowDrop Action Link Component Styles
 */

.fd-action-link {
  display: flex;
  align-items: flex-start;
  gap: var(--fd-space-4);
  padding: var(--fd-action-link-padding);
  background-color: var(--fd-action-link-bg);
  border: var(--fd-border-width) solid var(--fd-action-link-border);
  border-radius: var(--fd-action-link-radius);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--fd-transition-fast),
              border-color var(--fd-transition-fast),
              box-shadow var(--fd-transition-fast);
  min-height: 70px;
}

.fd-action-link:hover {
  background-color: var(--fd-action-link-bg-hover);
  border-color: var(--fd-border-muted);
  box-shadow: var(--fd-shadow-sm);
}

.fd-action-link:active {
  background-color: var(--fd-subtle);
}

/* Icon */
.fd-action-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--fd-action-link-icon-size);
  height: var(--fd-action-link-icon-size);
  flex-shrink: 0;
  border-radius: var(--fd-radius-lg);
  background-color: var(--fd-action-link-icon-bg);
  color: var(--fd-action-link-icon-color);
  margin-block-start: 0;
}

.fd-action-link__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Content */
.fd-action-link__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fd-action-link__header {
  display: flex;
  align-items: center;
  gap: var(--fd-space-2);
}

.fd-action-link__title {
  font-size: var(--fd-action-link-title-size);
  font-weight: var(--fd-action-link-title-weight);
  color: var(--fd-action-link-title-color);
}

.fd-action-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.25rem;
  padding: 0 var(--fd-space-2);
  font-size: var(--fd-text-xs);
  font-weight: var(--fd-font-weight-semibold);
  color: var(--fd-muted-foreground);
  background-color: var(--fd-subtle);
  border-radius: var(--fd-radius-full);
}

.fd-action-link__description {
  margin: var(--fd-space-1) 0 0;
  font-size: var(--fd-action-link-description-size);
  color: var(--fd-action-link-description-color);
  line-height: var(--fd-line-height-normal);
}

/* Arrow */
.fd-action-link__arrow {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--fd-muted-foreground);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--fd-transition-fast),
              transform var(--fd-transition-fast),
              color var(--fd-transition-fast);
  margin-block-start: 0;
  align-self: flex-start;
}

.fd-action-link:hover .fd-action-link__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--fd-primary);
}

