/*
 * TrendMap Reel grid preview — overlays only.
 * This file is deliberately separate from the opened analysis-card modal.
 */

#trendCardsList .trend-card {
  position: relative;
}

#trendCardsList :is(
  .trend-card__category-pill,
  .trend-card__author-pill,
  .trend-card__author,
  .trend-card__growth-value,
  .trend-card__percent-left,
  .trend-card__growth-percent-left
) {
  border: 1px solid rgba(104, 212, 83, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(5, 8, 5, 0.94) !important;
  background-image: none !important;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.24) !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#trendCardsList :is(
  .trend-card__author-pill,
  .trend-card__author,
  .trend-card__growth-value,
  .trend-card__percent-left,
  .trend-card__growth-percent-left
) {
  color: #68d453 !important;
}

#trendCardsList :is(
  .trend-card__author-pill,
  .trend-card__author
) {
  position: absolute;
  top: var(--tm-preview-author-top, 36px);
  left: var(--tm-preview-pill-left, 10px);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 20px);
  min-height: 21px;
  padding: 4px 8px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

#trendCardsList :is(
  .trend-card__growth-value,
  .trend-card__percent-left,
  .trend-card__growth-percent-left
) {
  cursor: pointer !important;
  overflow: visible !important;
}

#trendCardsList :is(
  .trend-card__growth-value,
  .trend-card__percent-left,
  .trend-card__growth-percent-left
)::before,
#trendCardsList :is(
  .trend-card__growth-value,
  .trend-card__percent-left,
  .trend-card__growth-percent-left
)::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 767px) {
  #trendCardsList :is(
    .trend-card__author-pill,
    .trend-card__author
  ) {
    top: var(--tm-preview-author-top-mobile, 32px);
    left: var(--tm-preview-pill-left-mobile, 8px);
    max-width: calc(100% - 16px);
  }
}
