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

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

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

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

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

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

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

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

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

.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);
  color: var(--fd-muted-foreground);
  border-radius: var(--fd-radius-full);
  background-color: var(--fd-subtle);
  font-size: var(--fd-text-xs);
  font-weight: var(--fd-font-weight-semibold);
}

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

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

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