/* NGA Sport Platform — opmaak van de hervormde onderdelen (v3.6)
   ==============================================================
   Alle kleuren komen uit de bestaande CSS-variabelen van het platform, zodat
   de nieuwe onderdelen meegaan met het lichte en het donkere thema. */

/* --------------------------------------------- balk met subcategorieën */
.nga-tabbalk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.625rem;
  background: hsl(var(--muted) / 0.45);
  width: fit-content;
  max-width: 100%;
}

.nga-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.5rem 0.9rem;
  border-radius: 0.45rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nga-tab:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.nga-tab-aan,
.nga-tab-aan:hover {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.08);
}

/* ------------------------------------------- ingebouwde modulevensters */
.nga-modulevlak {
  position: relative;
  display: flex;
  flex-direction: column;
  /* De kopbalk van het platform is op smalle schermen ongeveer 3.25rem hoog. */
  height: calc(100dvh - 0px);
  min-height: 32rem;
  background: hsl(var(--background));
}

@media (max-width: 767px) {
  .nga-modulevlak {
    height: calc(100dvh - 3.25rem);
  }
}

.nga-modulevenster {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: hsl(var(--background));
}

.nga-modulestand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-direction: column;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  background: hsl(var(--background));
  z-index: 2;
  padding: 1.5rem;
  text-align: center;
}

.nga-spinner {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 2px solid hsl(var(--border));
  border-top-color: hsl(var(--primary));
  animation: nga-draai 0.8s linear infinite;
}

@keyframes nga-draai {
  to {
    transform: rotate(360deg);
  }
}

.nga-modulefout {
  max-width: 26rem;
}

.nga-modulefout b {
  display: block;
  color: hsl(var(--foreground));
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.nga-modulefout p {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.nga-modulefout-knoppen {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nga-modulefout-knoppen button,
.nga-modulefout-knoppen a {
  appearance: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 0.45rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  text-decoration: none;
  cursor: pointer;
}

.nga-modulefout-knoppen button {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: transparent;
}

/* ---------------------------------------------------- verwijderknoppen */
.nga-wisknop {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nga-wisknop:hover {
  background: hsl(var(--destructive) / 0.1);
  border-color: hsl(var(--destructive) / 0.4);
  color: hsl(var(--destructive));
}

table .nga-wisknop {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
}

/* ------------------------------------------------------------ meldingen */
.nga-melding {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 22rem;
  padding: 0.7rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  font-size: 0.85rem;
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.14);
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nga-melding-aan {
  opacity: 1;
  transform: translateY(0);
}

.nga-melding-fout {
  border-color: hsl(var(--destructive) / 0.5);
}

/* -------------------------------------- Transfermarkt-invoer en nieuws */
.nga-kaart {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  padding: 1rem;
  margin-bottom: 1rem;
}

.nga-kaart h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.nga-kaart .nga-uitleg {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.nga-rooster {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.nga-veld {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.nga-veld label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: hsl(var(--muted-foreground));
}

.nga-veld select,
.nga-veld input {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-width: 0;
  width: 100%;
}

.nga-veld select:disabled,
.nga-veld input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nga-knop {
  appearance: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  cursor: pointer;
  white-space: nowrap;
}

.nga-knop:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nga-knop-licht {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.nga-knoprij {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
}

.nga-stand {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.nga-stand-fout {
  color: hsl(var(--destructive));
}

/* Voorbeeld van het opgehaalde profiel */
.nga-vb {
  margin-top: 0.9rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 0.9rem;
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.nga-vb div {
  min-width: 0;
}

.nga-vb dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.nga-vb dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Kerncijfers van het transfernieuws */
.nga-cijfers {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  margin-bottom: 1rem;
}

.nga-cijfer {
  border: 1px solid hsl(var(--border));
  border-radius: 0.7rem;
  background: hsl(var(--card));
  padding: 0.8rem 0.9rem;
}

.nga-cijfer .kop {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.nga-cijfer .waarde {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.nga-cijfer .bij {
  font-size: 0.74rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

/* Tabel met transfers */
.nga-tabelvlak {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  overflow: hidden;
}

.nga-tabelrol {
  overflow-x: auto;
}

.nga-transfertabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.nga-transfertabel th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  white-space: nowrap;
  background: hsl(var(--muted) / 0.4);
}

.nga-transfertabel td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  vertical-align: middle;
}

.nga-transfertabel tbody tr:last-child td {
  border-bottom: 0;
}

.nga-transfertabel tbody tr:hover {
  background: hsl(var(--muted) / 0.35);
}

.nga-spelernaam {
  font-weight: 550;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.nga-spelernaam:hover {
  text-decoration: underline;
}

.nga-merk {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  white-space: nowrap;
}

.nga-merk-in {
  color: hsl(142 60% 34%);
  border-color: hsl(142 60% 34% / 0.4);
  background: hsl(142 60% 34% / 0.1);
}

.nga-merk-uit {
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.4);
  background: hsl(var(--destructive) / 0.08);
}

.nga-som {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 550;
}

.nga-leeg {
  padding: 2.5rem 1rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.88rem;
}

.nga-clubcel {
  min-width: 8rem;
  overflow-wrap: anywhere;
}


/* Compacte verwijderknop voor de actiekolom in een tabel */
.nga-wisknop-klein {
  padding: 6px;
  width: 28px;
  height: 28px;
  justify-content: center;
}

/* De knop staat in de naamcel, net achter de naam */
.nga-wis-in-rij {
  margin-left: 8px;
  vertical-align: middle;
  opacity: 0.55;
}

tr:hover .nga-wis-in-rij,
.nga-wis-in-rij:focus-visible {
  opacity: 1;
}

/* ==========================================================================
   Transfermarkt-kaart in de formulieren (v3.6)
   ========================================================================== */
.nga-tmkaart {
  margin-bottom: 18px;
}

.nga-kaart-kop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.nga-kaart-kop strong {
  font-size: 14px;
  color: hsl(var(--foreground));
}

.nga-kaart-hint {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.nga-rooster-invoer {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.nga-rooster-invoer .nga-veld {
  flex: 1 1 auto;
  min-width: 0;
}

.nga-rooster-drie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 720px) {
  .nga-rooster-drie {
    grid-template-columns: 1fr;
  }
}

.nga-keuzeblok {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.nga-keuzelabel {
  font-size: 11px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.nga-keuzeblok .nga-veld {
  width: 100%;
}

/* --- voorbeeld van het opgehaalde profiel --- */
.nga-vb-links {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.nga-vb-foto {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: hsl(var(--muted));
  flex: 0 0 auto;
}

.nga-vb-tekst {
  min-width: 0;
  flex: 1 1 auto;
}

.nga-vb-naam {
  font-weight: 600;
  font-size: 14px;
  color: hsl(var(--foreground));
  margin-bottom: 6px;
}

.nga-vb-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
}

@media (max-width: 620px) {
  .nga-vb-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nga-vb-cel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nga-vb-sleutel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}

.nga-vb-waarde {
  font-size: 13px;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.nga-knop-vol {
  margin-top: 12px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: transparent;
  font-weight: 500;
}

.nga-knop-vol:hover {
  filter: brightness(1.06);
}

.nga-stand-goed {
  color: hsl(142 60% 34%);
}

/* De kaart in het formulier gebruikt een eigen indeling voor het voorbeeld */
.nga-tmkaart .nga-vb {
  display: block;
}

.nga-tmkaart .nga-knop-vol {
  display: inline-flex;
  width: auto;
}

.nga-keuzeblok .nga-veld {
  font-size: 12px;
}

/* ==========================================================================
   Transfernieuws (v3.6)
   ========================================================================== */
.nga-transfervlak {
  padding: 20px 16px 40px;
  max-width: 1400px;
}

@media (min-width: 768px) {
  .nga-transfervlak {
    padding: 24px 24px 48px;
  }
}

.nga-transferkop {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.nga-transfertitel {
  font-size: 22px;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.nga-transferuitleg {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  margin: 4px 0 0;
}

.nga-filterbalk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .nga-filterbalk {
    grid-template-columns: 1fr;
  }
}

.nga-tabelvak {
  padding: 0;
  overflow-x: auto;
}

.nga-transfertabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.nga-transfertabel th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  padding: 12px 14px;
  border-bottom: 1px solid hsl(var(--border));
  white-space: nowrap;
}

.nga-transfertabel td {
  padding: 11px 14px;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  color: hsl(var(--foreground));
  vertical-align: middle;
}

.nga-transfertabel tbody tr:hover {
  background: hsl(var(--muted) / 0.5);
}

.nga-transferspeler {
  font-weight: 500;
}

.nga-transferland {
  display: block;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}

.nga-transferacties {
  white-space: nowrap;
  text-align: right;
}

.nga-knop-klein {
  padding: 4px 9px;
  font-size: 11px;
  margin-left: 6px;
}

.nga-som {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Kerncijfers en knoppen binnen het transfernieuws */
.nga-transfervlak .nga-cijfer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nga-transfervlak .nga-cijfer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}

.nga-transfervlak .nga-cijfer-waarde {
  font-size: 15px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.nga-transferacties .nga-knop {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  font-weight: 400;
}

.nga-transferacties .nga-knop:hover {
  background: hsl(var(--muted));
}

.nga-transferacties .nga-knop + .nga-knop {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--primary));
}

.nga-wis-in-kaart {
  margin-left: auto;
}
