.TrailCard {
  display: block;
  position: relative;
}

.TrailCard-underlay {
  position: absolute;
  inset: 0;
}

.TrailCard-bg {
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  position: relative;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.TrailCard-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  border-radius: 12px;
  border: 1.5px solid;
  border-color: color-mix(in srgb, var(--accent-color) 15%, rgba(0, 0, 0, 0.08));
  filter: var(--user-content-filter);
  transition: all 0.2s ease;
  z-index: 0;
}

.TrailCard-title,
.TrailCard-description,
.TrailCard-meta {
  position: relative;
  z-index: 1;
}

.TrailCard-activity {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  pointer-events: auto;
}

.TrailCard-walkers {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.25rem 0.45rem;
  border-radius: 12px;
  position: relative;
  isolation: isolate;
}

.TrailCard-walkers::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-color-transparent);
  border: 1px solid var(--accent-color-transparent);
  border-radius: 12px;
  filter: var(--user-content-filter);
  z-index: -1;
}

@media (hover: hover) {
  .TrailCard:hover .TrailCard-bg {
    transform: translateY(-2px);
  }

  .TrailCard:hover .TrailCard-bg::before {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
  }
}

.TrailCard:active .TrailCard-bg::before {
  border-color: var(--accent-color);
  transition-duration: 0.05s;
}

.TrailCard-title {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent-color);
  margin: 0;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  filter: var(--user-content-filter);
}

.TrailCard-description {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.TrailCard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.TrailCard-creator,
.TrailCard-steps {
  text-transform: lowercase;
}
