/* ============================================================================
   COMPONENT: artwork-catalog-card — catalog list/grid card (SKIN tier, TopImpressionists)
   PHASE B REDESIGN (2026-07-06) — see artwork-catalog-card.css header and
   DOC_CSS_COMPONENT_MIGRATION_LIST.md §F6. Heaviest !important load pre-redesign
   (257) — nearly all of it was fighting the old geometry/scope duplication this
   rewrite removes. TI's distinctive whole-card hover lift (translateY + shadow +
   background shift) and inset "paper frame" outline on the image are preserved
   as documented extra rules (not generalized into shared tokens — TI is the
   only brand using them). Fav double-ring bug fixed (was unfixed here).
   ============================================================================ */

.artwork-catalog-card {
  --artwork-catalog-card-border-color: var(--ti-rule, #c7bea8);
  --artwork-catalog-card-border-width: 0.5px;
  --artwork-catalog-card-radius: 2px;
  --artwork-catalog-card-bg: var(--ti-paper, #fbf7ee);

  --artwork-catalog-card-artist-color: var(--ti-ink-faint, #9a93a4);
  --artwork-catalog-card-artist-accent-color: var(--ti-ink-mute, #6c647a);
  --artwork-catalog-card-title-color: var(--ti-ink, #2a2438);
  --artwork-catalog-card-desc-color: var(--ti-ink-soft, #4a4358);

  --artwork-catalog-card-hover-bg: var(--ti-gesso, #f9f4e8);
  --artwork-catalog-card-hover-border: 0.5px solid var(--ti-rule, #c7bea8);

  --artwork-catalog-card-buy-btn-bg: var(--ti-ink, #2a2438);
  --artwork-catalog-card-buy-btn-color: var(--ti-gesso, #f9f4e8);
  --artwork-catalog-card-buy-btn-radius: 2px;

  --artwork-catalog-card-fav-icon-filter: brightness(0) saturate(100%) invert(58%) sepia(6%) saturate(500%) hue-rotate(220deg) brightness(90%) contrast(90%);
  --artwork-catalog-card-fav-icon-filter-active: brightness(0) saturate(100%) invert(68%) sepia(23%) saturate(900%) hue-rotate(325deg) brightness(95%) contrast(92%);

  /* TI's signature: image zooms slightly DOWN + fades on hover (unique among the 8 brands) */
  --artwork-catalog-card-image-hover-transform: scale(0.95);
  --artwork-catalog-card-image-hover-opacity: 0.9;

  /* whole-card lift on hover */
  --artwork-catalog-card-card-hover-bg: var(--ti-gesso, #f9f4e8);
  --artwork-catalog-card-card-hover-shadow: var(--ti-shadow-hover-md, 0 6px 20px -6px rgba(42, 36, 56, 0.18));
  --artwork-catalog-card-card-hover-transform: translateY(-3px);
}

.artwork-catalog-card {
  box-shadow: var(--ti-shadow-sm, 0 4px 20px -8px rgba(42, 36, 56, 0.1));
  transition: box-shadow 0.35s ease, background 0.25s ease;
}

/* TI's signature: bordered paper pill around the fav toggle once selected —
   mirrors the site's card-chrome language (paper/gesso/rule tokens) so the
   "favorited" state reads as clearly styled, not just a subtle icon recolor. */
.artwork-catalog-card__fav-toggle {
  border: 0.5px solid transparent;
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.artwork-catalog-card__fav-toggle:hover,
.artwork-catalog-card__fav-group.active .artwork-catalog-card__fav-toggle {
  background: var(--ti-gesso, #f9f4e8);
  border-color: var(--ti-plein, #d89a78);
}

/* TI's signature inset "paper frame" outline around the image */
.artwork-catalog-card__media {
  padding: 10px 10px 0;
  background: var(--ti-shadow-c, #e6dec8);
}

.artwork-catalog-card__media-link {
  display: block;
  outline: 5px solid var(--ti-paper, #fbf7ee);
  outline-offset: -6px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 575.98px) {
  .artwork-catalog-card__media-link {
    outline-width: 3px;
  }
}

/* ---- top100-listing: TI's ranked-list frame (inline hover overlay) ---- */

.top100-listing .artwork-catalog-card {
  background-color: var(--ti-bg);
  border-color: var(--ti-line);
}

.top100-listing .artwork-catalog-card__artist h2,
.top100-listing .artwork-catalog-card__artist h2 a {
  color: var(--ti-accent);
}

.top100-listing .artwork-catalog-card__artist h2 a:hover {
  color: var(--ti-accent-dark);
}

.top100-listing .artwork-catalog-card__title a:hover {
  color: var(--ti-accent);
}

.top100-listing .artwork-catalog-card__buy-btn {
  border-radius: 999px;
}

.top100-listing .artwork-catalog-card__buy-btn:hover {
  background: var(--ti-accent);
}
