/* Palpedia TCG — set detail page (atlas edition).
   Hero de producto sobre .tcg-panel con stat chips acentuados; la grid y los
   filtros usan el stack atlas compartido (tcg/cards.css + catalog-controls).
   Todo va prefijado con body.tcg-hub-page; nunca se toca .app-header/.app-footer. */

body.tcg-hub-page .tcg-set-breadcrumb {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-top: 1.4rem;
  font-size: .88rem;
}

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

body.tcg-hub-page .tcg-set-breadcrumb span {
  color: var(--muted, #9fb5b7);
}

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

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

/* ---------- Hero de producto ---------- */

body.tcg-hub-page .tcg-set-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
  margin-top: 1.2rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  overflow: hidden;
}

body.tcg-hub-page .tcg-set-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 12% 8%, rgba(104, 213, 227, .1), transparent 65%),
    radial-gradient(ellipse 40% 60% at 88% 100%, rgba(213, 151, 255, .07), transparent 70%);
  pointer-events: none;
}

body.tcg-hub-page .tcg-set-hero > * {
  position: relative;
}

body.tcg-hub-page .tcg-set-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

body.tcg-hub-page .tcg-set-hero__placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
  height: 100%;
  min-height: 180px;
  padding: 1rem .8rem;
  text-align: center;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(7, 21, 27, .85);
}

body.tcg-hub-page .tcg-set-hero__placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
}

body.tcg-hub-page .tcg-set-hero__placeholder span,
body.tcg-hub-page .tcg-set-hero__placeholder small {
  position: relative;
  padding: .16rem .55rem;
  background: rgba(4, 12, 16, .78);
  border: 1px solid color-mix(in srgb, var(--cyan, #62e7ed) 30%, transparent);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

body.tcg-hub-page .tcg-set-hero__placeholder span {
  color: var(--cyan, #62e7ed);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .12em;
}

body.tcg-hub-page .tcg-set-hero__placeholder small {
  color: var(--muted, #9fb5b7);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.tcg-hub-page .tcg-set-hero__info h1 {
  margin: .2rem 0 .35rem;
  color: var(--text, #edf7f5);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -.01em;
}

body.tcg-hub-page .tcg-set-hero__meta {
  margin: 0 0 1.1rem;
  color: var(--muted, #9fb5b7);
  font-size: .92rem;
}

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

body.tcg-hub-page .tcg-set-hero__stats-group h2 {
  margin: 0 0 .45rem;
  color: var(--group-accent, var(--cyan, #62e7ed));
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.tcg-hub-page .tcg-set-hero__stats-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.tcg-hub-page .tcg-set-hero__stats-group li {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: .16rem .55rem;
  background: linear-gradient(105deg, color-mix(in srgb, var(--chip-accent, #68d5e3) 10%, rgba(13, 32, 42, .72)), rgba(7, 21, 27, .8));
  border: 1px solid color-mix(in srgb, var(--chip-accent, #68d5e3) 32%, transparent);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  font-size: .72rem;
}

body.tcg-hub-page .tcg-set-hero__stats-group li span {
  color: var(--muted, #9fb5b7);
  font-weight: 600;
}

body.tcg-hub-page .tcg-set-hero__stats-group li strong {
  color: var(--chip-accent, var(--text, #edf7f5));
}

/* ---------- Ajustes atlas propios del set ---------- */

body.tcg-hub-page .catalog-command--atlas .inline-filter-groups {
  grid-template-columns: minmax(0, 1fr);
}

body.tcg-hub-page .catalog-command--atlas .inline-filters .tcg-misc-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 34rem;
}

body.tcg-hub-page .tcg-results {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}

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

@media (max-width: 760px) {
  body.tcg-hub-page .tcg-set-hero {
    grid-template-columns: 1fr;
  }

  body.tcg-hub-page .tcg-set-hero__media {
    max-width: 240px;
  }
}

@media (max-width: 620px) {
  body.tcg-hub-page .catalog-command--atlas .inline-filters .tcg-misc-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}
