/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

.showcaseCardBody {
  max-height: 300px;
  overflow-y: auto;
  font-size: smaller;
  line-height: 1.66;

  /* Scrollbar styles */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent; /* transparent scrollbar until hovered over */
}

.showcaseCardBody:hover {
  /* Show scrollbar when hovering over the element */
  scrollbar-color: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.1);
}

/* For Webkit browsers like Chrome and Safari */
.showcaseCardBody::-webkit-scrollbar {
  width: 8px;
}

.showcaseCardBody::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.showcaseCardBody::-webkit-scrollbar-thumb {
  background-color: transparent; /* transparent scrollbar until hovered over */
}

.showcaseCardBody:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5); /* Show scrollbar when hovering over the element */
}

.showcaseCardImage {
  overflow: hidden;
  height: 150px;
  border-bottom: 2px solid var(--ifm-color-emphasis-200);
}

.showcaseCardHeader {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.shortEllipsisMy {
  max-width: 85%;
}
.shortEllipsis {
  max-width: 100%;
}

.showcaseCardTitle {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 0;
  flex: 1 1 auto;
}

.showcaseCardTitle a {
  text-decoration: none;
  background: linear-gradient(
      var(--ifm-color-primary),
      var(--ifm-color-primary)
    )
    0% 100% / 0% 1px no-repeat;
  transition: background-size ease-out 200ms;
}

.showcaseCardTitle a:not(:focus):hover {
  background-size: 100% 1px;
}

.showcaseCardTitle,
.showcaseCardHeader .svgIconFavorite {
  margin-right: 0.25rem;
}

.showcaseCardHeader .svgIconFavorite {
  color: var(--site-color-svg-icon-favorite);
}

.showcaseCardSrcBtn {
  margin-left: 6px;
  padding-left: 12px;
  padding-right: 12px;
  border: none;
}

.showcaseCardSrcBtn:focus-visible {
  background-color: var(--ifm-color-secondary-dark);
}

[data-theme='dark'] .showcaseCardSrcBtn {
  background-color: var(--ifm-color-emphasis-200) !important;
  color: inherit;
}

[data-theme='dark'] .showcaseCardSrcBtn:hover {
  background-color: var(--ifm-color-emphasis-300) !important;
}

.cardFooter {
  display: flex;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.675rem;
  border: 1px solid var(--ifm-color-secondary-darkest);
  cursor: default;
  margin-right: 6px;
  margin-bottom: 6px !important;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}

.tag .textLabel {
  margin-left: 8px;
}

.tag .colorLabel {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: 6px;
  margin-right: 6px;
}
