@layer components {
  .card {
    background-color: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 6px -1px oklch(0% 0 0 / 0.1), 0 2px 4px -1px oklch(0% 0 0 / 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card-animated:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px oklch(0% 0 0 / 0.1), 0 8px 10px -6px oklch(0% 0 0 / 0.1);
  }

  .flow-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
  }

  .flow-card-content {
    padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 2;
    background-color: var(--bg-card-light);
  }

  .flow-card-image-wrapper {
    flex-grow: 1;
    position: relative;
    min-height: 120px;
    overflow: hidden;
  }

  .flow-card-image-wrapper.has-cover {
    min-height: 200px;
  }

  .flow-card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-card-light) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .flow-card-image {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
  }

  .flow-card-image,
  .run-card-image {
    transition: transform 0.5s ease;
  }

  .card-animated:hover .flow-card-image,
  .card-animated:hover .run-card-image {
    transform: scale(1.1);
  }

  .card-link-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px oklch(0% 0 0 / 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neutral-700);
    z-index: 5;
  }

  .card-animated:hover .card-link-icon {
    opacity: 1;
  }

  .flow-title {
    font-size: 1.25rem;
    font-weight: 600;
  }
}