/* TCG Standhouders – styled to match TCG Beurs site (dark navy + amber accent) */
.tcg-standhouders{
  --tcg-bg: #0f1624;
  --tcg-bg-2: #121c2f;
  --tcg-card: #0f1a2d;
  --tcg-border: rgba(255,255,255,.10);
  --tcg-text: rgba(255,255,255,.92);
  --tcg-muted: rgba(255,255,255,.72);
  --tcg-accent: #f3a30b;   /* amber */
  --tcg-accent-2: #ffcc4d; /* glow */
  --tcg-shadow: 0 10px 30px rgba(0,0,0,.35);
  --tcg-radius: 16px;
  --tcg-radius-sm: 12px;
  --tcg-gap: 18px;
  font-family: inherit;
}

.tcg-standhouders__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tcg-standhouders__search{
  flex: 1 1 260px;
  max-width: 420px;
}
.tcg-standhouders__searchInput{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15,22,36,.12);
  outline: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tcg-standhouders__searchInput:focus{
  box-shadow: 0 0 0 4px rgba(243,163,11,.18);
}

.tcg-standhouders__chips{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.tcg-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15,22,36,.06);
  border: 1px solid rgba(15,22,36,.10);
  color: rgba(15,22,36,.85);
  font-weight: 600;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tcg-chip:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  background: rgba(243,163,11,.10);
}

.tcg-standhouders__grid{
  display:grid;
  gap: var(--tcg-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tcg-standhouders[data-columns="1"] .tcg-standhouders__grid{grid-template-columns: 1fr;}
.tcg-standhouders[data-columns="2"] .tcg-standhouders__grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
.tcg-standhouders[data-columns="3"] .tcg-standhouders__grid{grid-template-columns: repeat(3, minmax(0, 1fr));}
.tcg-standhouders[data-columns="4"] .tcg-standhouders__grid{grid-template-columns: repeat(4, minmax(0, 1fr));}

@media (max-width: 1024px){
  .tcg-standhouders__grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 640px){
  .tcg-standhouders__grid{grid-template-columns: 1fr;}
  .tcg-standhouders__chips{justify-content:flex-start;}
}

.tcg-card{
  position: relative;
  border-radius: var(--tcg-radius);
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, var(--tcg-card), var(--tcg-bg));
  border: 1px solid var(--tcg-border);
  box-shadow: var(--tcg-shadow);
  color: var(--tcg-text);
  overflow: hidden;
  display:flex;
  flex-direction: column;
  min-height: 240px;
}

.tcg-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(700px 220px at 30% 0%, rgba(243,163,11,.22), transparent 55%);
  pointer-events:none;
}

.tcg-card:hover{
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.tcg-card__top{
  display:flex;
  gap: 14px;
  align-items:center;
  z-index:1;
}
.tcg-card__logo{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex: 0 0 56px;
}
.tcg-card__logoImg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.tcg-card__logoFallback{
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  font-size: 20px;
  color: rgba(255,255,255,.85);
}

.tcg-card__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
}
.tcg-card__meta{
  margin-top: 4px;
  font-size: 13px;
  color: var(--tcg-muted);
}

.tcg-card__badges{
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 12px;
}
.tcg-badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: rgba(15,22,36,.92);
  background: linear-gradient(180deg, var(--tcg-accent-2), var(--tcg-accent));
  box-shadow: 0 10px 20px rgba(243,163,11,.18);
}

.tcg-card__text{
  z-index:1;
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.45;
  flex: 1 1 auto;
}

.tcg-card__ctaWrap{
  z-index:1;
  margin-top: 14px;
  display:flex;
  justify-content:flex-start;
}

.tcg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration:none !important;
  color: rgba(15,22,36,.95) !important;
  background: linear-gradient(180deg, var(--tcg-accent-2), var(--tcg-accent));
  box-shadow: 0 14px 30px rgba(243,163,11,.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.tcg-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 18px 36px rgba(243,163,11,.26);
}

.tcg-empty{
  padding: 16px;
  border-radius: var(--tcg-radius);
  border: 1px dashed rgba(15,22,36,.25);
  background: rgba(15,22,36,.03);
  color: rgba(15,22,36,.75);
}


/* ===== Mobile fixes (v1.1.1) ===== */
@media (max-width: 767px){
  /* Force 1 column on mobile no matter what the theme does */
  .tcg-standhouders .tcg-standhouders__grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Bar: stack nicely */
  .tcg-standhouders__bar{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .tcg-standhouders__search{
    max-width: none !important;
    flex: 1 1 auto !important;
  }
  .tcg-standhouders__searchInput{
    border-radius: 14px !important;
  }

  /* Chips: allow wrap + comfortable spacing */
  .tcg-standhouders__chips{
    justify-content: flex-start !important;
    gap: 8px !important;
  }
  .tcg-chip{
    padding: 9px 12px !important;
    font-size: 14px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  /* Card: reduce height, fix cramped header */
  .tcg-card{
    min-height: 0 !important;
    padding: 16px !important;
  }
  .tcg-card__top{
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .tcg-card__logo{
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    flex: 0 0 52px !important;
  }
  .tcg-card__title{
    font-size: 16px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }
  .tcg-card__text{
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* Clamp text for a cleaner grid (supported browsers) */
.tcg-card__text{
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

