/* Palpedia TCG — sets index page (showcase redesign).
   Rich feature panels per product: cover, official facts, rarity/type
   breakdowns, chase strip, collection progress and quick actions. */

body.tcg-hub-page .tcg-sets-state {
  padding: 3rem 0;
  color: var(--muted, #9fb5b7);
  text-align: center;
}

body.tcg-hub-page .tcg-sets-state--error a {
  color: var(--cyan, #62e7ed);
}

/* ---------- Feature panels ---------- */

body.tcg-hub-page .tcg-sets-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

/* The flagship booster fills the row; the trial decks pair side by side. */
body.tcg-hub-page .tcg-sets-showcase > .tcg-set-feature:first-child {
  grid-column: 1 / -1;
}

body.tcg-hub-page .tcg-sets-promo {
  display: grid;
  gap: 1.1rem;
}

body.tcg-hub-page .tcg-set-feature {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: clamp(.9rem, 2vw, 1.5rem);
  padding: clamp(1rem, 1.8vw, 1.35rem);
  align-items: start;
}

body.tcg-hub-page .tcg-sets-showcase > .tcg-set-feature:first-child {
  grid-template-columns: minmax(190px, 300px) minmax(0, 1fr);
}

body.tcg-hub-page .tcg-set-feature__media {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  transition: transform 220ms var(--ease-out, cubic-bezier(.22, 1, .36, 1));
}

body.tcg-hub-page .tcg-set-feature__media:hover,
body.tcg-hub-page .tcg-set-feature__media:focus-visible {
  transform: translateY(-4px);
}

body.tcg-hub-page .tcg-set-feature__media img {
  display: block;
  width: 100%;
  height: auto;
}

body.tcg-hub-page .tcg-set-feature__placeholder {
  position: relative;
}

body.tcg-hub-page .tcg-set-feature__placeholder img {
  display: block;
  width: 100%;
  height: auto;
}

body.tcg-hub-page .tcg-set-feature__placeholder span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f4e9cd;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
}

body.tcg-hub-page .tcg-set-feature__placeholder small {
  position: absolute;
  left: 50%;
  bottom: 6%;
  translate: -50% 0;
  white-space: nowrap;
  padding: .15rem .55rem;
  background: rgba(7, 21, 27, .88);
  color: var(--muted, #9fb5b7);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.tcg-hub-page .tcg-set-feature__code {
  margin: 0 0 .3rem;
  color: var(--cyan, #62e7ed);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.tcg-hub-page .tcg-set-feature__body h2 {
  margin: 0 0 .8rem;
  color: var(--text, #edf7f5);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -.01em;
}

body.tcg-hub-page .tcg-set-feature__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

body.tcg-hub-page .tcg-set-feature__facts li {
  padding: .22rem .65rem;
  border: 1px solid color-mix(in srgb, var(--cyan, #62e7ed) 35%, transparent);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  color: var(--text, #edf7f5);
  font-size: .74rem;
  font-weight: 600;
}

body.tcg-hub-page .tcg-set-feature__breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .9rem;
  margin-bottom: 1rem;
}

body.tcg-hub-page .tcg-set-feature__breakdown h3,
body.tcg-hub-page .tcg-set-feature__chase h3 {
  margin: 0 0 .45rem;
  color: var(--muted, #9fb5b7);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.tcg-hub-page .tcg-set-feature__rarities,
body.tcg-hub-page .tcg-set-feature__types {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.tcg-hub-page .tcg-set-feature__rarities li,
body.tcg-hub-page .tcg-set-feature__types li {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: .16rem .5rem;
  background: rgba(6, 18, 24, .72);
  border: 1px solid var(--line, rgba(166, 217, 224, .16));
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  color: var(--muted, #9fb5b7);
  font-size: .7rem;
}

body.tcg-hub-page .tcg-set-feature__rarities strong,
body.tcg-hub-page .tcg-set-feature__types strong {
  color: var(--cyan, #62e7ed);
}

/* ---------- Chase strip ---------- */

body.tcg-hub-page .tcg-set-feature__chase {
  margin-bottom: 1rem;
}

body.tcg-hub-page .tcg-set-feature__chase-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

body.tcg-hub-page .tcg-set-feature__chase-card {
  position: relative;
  width: clamp(64px, 7vw, 88px);
  transition: transform 200ms var(--ease-out, cubic-bezier(.22, 1, .36, 1));
}

body.tcg-hub-page .tcg-set-feature__chase-card:hover,
body.tcg-hub-page .tcg-set-feature__chase-card:focus-visible {
  transform: translateY(-4px);
}

body.tcg-hub-page .tcg-set-feature__chase-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4.5% / 3.2%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}

body.tcg-hub-page .tcg-set-feature__chase-card span {
  position: absolute;
  right: .15rem;
  bottom: .15rem;
  padding: .05rem .35rem;
  background: rgba(7, 21, 27, .9);
  color: var(--amber, #f2b84b);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
}

/* ---------- Progress ---------- */

body.tcg-hub-page .tcg-set-feature__progress {
  margin-bottom: 1rem;
  padding: .65rem .8rem;
  background: rgba(98, 231, 237, .05);
  border: 1px solid var(--line, rgba(166, 217, 224, .18));
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

body.tcg-hub-page .tcg-set-feature__progress-head {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  color: var(--muted, #9fb5b7);
  font-size: .78rem;
}

body.tcg-hub-page .tcg-set-feature__progress-head strong {
  color: var(--cyan, #62e7ed);
}

body.tcg-hub-page .tcg-set-feature__progress-bar {
  height: .35rem;
  margin: .45rem 0 .5rem;
  background: rgba(6, 18, 24, .85);
  overflow: hidden;
}

body.tcg-hub-page .tcg-set-feature__progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan, #62e7ed), var(--cyan-soft, #a6fbf6));
  box-shadow: 0 0 12px rgba(98, 231, 237, .55);
}

body.tcg-hub-page .tcg-set-feature__progress a {
  color: var(--cyan, #62e7ed);
  font-size: .76rem;
  text-decoration: none;
}

/* ---------- Actions ---------- */

body.tcg-hub-page .tcg-set-feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

body.tcg-hub-page .tcg-hub-cta--small {
  padding: .45rem 1rem;
  font-size: .8rem;
}

body.tcg-hub-page .tcg-set-feature__link {
  color: var(--cyan, #62e7ed);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}

body.tcg-hub-page .tcg-set-feature__link:hover {
  color: var(--cyan-soft, #a6fbf6);
}

/* ---------- Upcoming ---------- */

body.tcg-hub-page .tcg-sets-upcoming {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .9rem;
}

body.tcg-hub-page .tcg-sets-upcoming__card {
  padding: 1rem 1.15rem;
}

body.tcg-hub-page .tcg-sets-upcoming__card h3 {
  margin: .6rem 0 .35rem;
  color: var(--text, #edf7f5);
  font-size: 1.02rem;
}

body.tcg-hub-page .tcg-sets-upcoming__card p {
  margin: 0;
  color: var(--muted, #9fb5b7);
  font-size: .86rem;
  line-height: 1.55;
}

/* ---------- Responsive / motion ---------- */

@media (max-width: 860px) {
  body.tcg-hub-page .tcg-sets-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tcg-hub-page .tcg-set-feature,
  body.tcg-hub-page .tcg-sets-showcase > .tcg-set-feature:first-child {
    grid-template-columns: 1fr;
  }

  body.tcg-hub-page .tcg-set-feature__media {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tcg-hub-page .tcg-set-feature__media,
  body.tcg-hub-page .tcg-set-feature__chase-card {
    transition: none;
  }
}
