/* ── Seção de vitrine ────────────────────────────────────── */

.showcase-section {
  padding: 16px 20px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  margin-bottom: 0;
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.showcase-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.showcase-count {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 8px;
  font-family: var(--font-mono);
}

/* ── Scroll horizontal ───────────────────────────────────── */

.showcase-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 6px 16px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.25) transparent;
}

.showcase-cards::-webkit-scrollbar { height: 4px; }
.showcase-cards::-webkit-scrollbar-track { background: transparent; }
.showcase-cards::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 2px;
}

/* ── Card individual ─────────────────────────────────────── */

.showcase-card {
  flex-shrink: 0;
  width: 120px;
  border-radius: var(--radius-md);
  background: transparent;
  overflow: hidden;
  position: relative;
  padding: 2px;
  cursor: default;
  /* Borda estática em repouso */
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.45);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* ── Borda neon (visível só no hover) ────────────────────── */

.showcase-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent          0deg,
    transparent        255deg,
    rgba(201,168,76,.1) 270deg,
    rgba(201,168,76,.4) 295deg,
    #C9A84C             315deg,
    #FFE87C             328deg,
    #FFFBEE             333deg,
    #FFE87C             338deg,
    #C9A84C             350deg,
    rgba(201,168,76,.2) 357deg,
    transparent         360deg
  );
  animation: showcase-neon-spin 2.5s linear infinite;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.showcase-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-card);
  border-radius: calc(var(--radius-md) - 1px);
  z-index: 1;
}

@keyframes showcase-neon-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.18);
}
.showcase-card:hover::before { opacity: 1; }

/* Conteúdo acima dos pseudo-elementos */
.showcase-body,
.showcase-info {
  position: relative;
  z-index: 2;
}

/* ── Body: bandeira + número ─────────────────────────────── */

.showcase-body {
  width: 100%;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(
    ellipse at 50% 35%,
    rgba(201, 168, 76, 0.09) 0%,
    transparent 70%
  );
  border-radius: calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) 0 0;
  overflow: hidden;
  position: relative;
}

/* ── Bandeira centralizada ───────────────────────────────── */

.showcase-body-flag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-body-flag-img {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.55);
}

.showcase-body-flag-emoji {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.6));
}

/* ── Número da figurinha ─────────────────────────────────── */

.showcase-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-primary);
  opacity: 0.75;
  letter-spacing: 1px;
}

/* ── Info bar ────────────────────────────────────────────── */

.showcase-info {
  padding: 7px 8px 8px;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(10,10,15,0.97) 100%);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 0 0 calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px);
}

.showcase-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  margin-bottom: 3px;
}

.showcase-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

.showcase-code-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--gold-dark);
}

/* ── Badge de conquista (quantidade possuída) ────────────── */

.showcase-badge {
  display: none;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  z-index: 3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  /* Fundo escuro com borda ouro animada */
  background: radial-gradient(circle at 40% 35%, #1e1a08 0%, #0d0d18 100%);
  border: 1.5px solid var(--gold-primary);
  box-shadow:
    0 0 8px rgba(201, 168, 76, 0.45),
    0 0 2px rgba(201, 168, 76, 0.2) inset;
}

.showcase-badge.has-qty {
  display: flex;
}

.showcase-badge-check {
  color: var(--gold-primary);
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(201, 168, 76, 0.7));
}


/* Repetidas — oculto quando qty ≤ 1 */
.showcase-dupes {
  display: none;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 14px;
}

.showcase-dupes.has-dupes { display: inline-block; }

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 480px) {
  .showcase-section { padding: 14px 14px 0; }

  .showcase-card { width: 104px; }

  .showcase-body { height: 102px; }

  .showcase-body-flag-img { width: 46px; height: 34px; }
  .showcase-body-flag-emoji { font-size: 36px; }

  .showcase-flag-badge { width: 24px; height: 17px; }
}
