@use '../utils/box-shadow_variables';
@use '../utils/font_variables';
@use '../utils/size_variables';

/**
 * Copyright IBM Corp. 2016, 2025
 * SPDX-License-Identifier: BUSL-1.1
 */

.transit-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 0.2fr));
  grid-template-rows: 1fr;
  align-content: start;
  grid-gap: 2rem;
  margin-top: size_variables.$spacing-24;
}

.transit-card {
  border-radius: size_variables.$radius;
  box-shadow: 0 0 0 1px rgba(var(--token-color-palette-neutral-300), 0.4);
  display: grid;
  grid-template-columns: 0.45fr 2fr;
  padding: size_variables.$spacing-16;
  border: none;

  .transit-icon {
    justify-self: center;
  }

  .transit-action-description {
    font-family: font_variables.$family-sans;
    font-size: size_variables.$size-8;
    color: var(--token-color-palette-neutral-400);
  }

  .title {
    color: var(--token-color-palette-neutral-400);
    font-size: size_variables.$size-7;
    margin-bottom: size_variables.$spacing-4;
  }

  &:hover {
    box-shadow:
      0 0 0 1px var(--token-color-palette-blue-200),
      box-shadow_variables.$box-shadow-middle;
    background: var(--token-color-palette-blue-50);

    .title {
      color: initial;
    }
  }
}
