/* =========================================================
   VTV Gids – vtv-default (clean basis)
   Plaatsen in: UiCore → Custom CSS  (VOLLEDIG VERVANGEN)
   ========================================================= */

/* =========================
   0) Typography
   ========================= */
#vtvGidsMatches,
#vtvGidsMatches *{
  font-family: 'Inter', sans-serif;
}

/* =========================
   1) Logo’s + placeholder
   ========================= */
#vtvGidsMatches .vtv-gids-team-icon{
  width: 18px;
  height: 18px;
  background: transparent;
}
#vtvGidsMatches .vtv-gids-team-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .88;
  transition: opacity .18s ease;
}
#vtvGidsMatches .vtv-gids-match-card:hover .vtv-gids-team-icon img{
  opacity: 1;
}
/* placeholder alleen als img ontbreekt of hidden is */
#vtvGidsMatches .vtv-gids-team-icon:not(:has(img)),
#vtvGidsMatches .vtv-gids-team-icon:has(img[style*="display: none"]){
  background: #f3f4f6;
}

/* League logo (competition-view) */
#vtvGidsMatches .vtv-gids-competition-logo{
  width: 24px;
  height: 24px;
}

/* =========================
   2) Basis match card (competition-view blijft normaal)
   ========================= */
#vtvGidsMatches .vtv-gids-team-name{ font-weight: 600; }
#vtvGidsMatches .vtv-gids-cel-3-time span{ font-weight: 700; }
#vtvGidsMatches .vtv-gids-channel-badge span{ font-weight: 500; }

/* =========================
   3) vtv-default = LIST view bij groupby="date"
   Activeert op: class vtv-gids-layout-vtv-default
   ========================= */

/* Outer dag-blok */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-competition-group{
  border: 1px solid #d6dbe2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* Header strook (jouw glans: #dbdee3 → #f1f4f9) */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-competition-header{
  padding: 18px 18px;
  background: linear-gradient(90deg, #dbdee3 0%, #f1f4f9 100%);
  border-bottom: 1px solid #d6dbe2;
}

/* Titel + kalender icoon */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-competition-name{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 16px;
  line-height: 1.15;
  font-weight: 600;
  color: #1134a1;

  position: relative;
  top: 1px;
}
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-competition-name::before{
  content:'';
  width: 18px;
  height: 18px;
  background: url('/img/ico/calendar.svg') no-repeat center / contain;
  flex-shrink: 0;
  position: relative;
  top: -1px;
  opacity: .9;
}
/* zorg dat we nooit een header ::before variant “meenemen” */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-competition-header::before{
  content:none !important;
}

/* Match rows (list) */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-match-card{
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none !important;

  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
  transition: background-color .15s ease;
}
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-match-card:last-child{
  border-bottom: 0;
}
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-match-card:hover{
  background: #f9fafb;
}

/* spacing tussen teamregels */
#vtvGidsMatches.vtv-gids-layout-vtv-default .vtv-gids-cel-2-teams{
  gap: 11px;
}

/* =========================
   4) Zender pill + | +1 + tooltip
   ========================= */
#vtvGidsMatches .vtv-gids-channel-badge{
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  height: 26px;
  padding: 0 8px;
  line-height: 26px;

  border-radius: 6px;
  font-size: 11px;
}

/* zenderlogo netter */
#vtvGidsMatches .vtv-gids-channel-logo{
  border-radius: 2px;
}

/* +1 inline (| +1) */
#vtvGidsMatches .vtv-gids-extra-badge{
  background: transparent;
  border: 0;

  margin-left: 6px;
  padding-left: 6px;
  padding-right: 0;

  border-left: 1px solid #d6dbe2;

  font-weight: 400;
  font-size: 11px;
  line-height: 1;

  transform: translateX(2px);
  cursor: pointer;

  /* 60% van #374151, zonder tooltip mee te faden */
  color: rgba(55,65,81,.6);
  position: relative;
  z-index: 20;
}

/* Tooltip */
#vtvGidsMatches .vtv-gids-extra-badge::after{
  content: "Ook op: " attr(data-extra);

  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);

  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;

  padding: 8px 10px;
  border-radius: 6px;

  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;

  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;

  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
#vtvGidsMatches .vtv-gids-extra-badge:hover::after{
  opacity: 1;
  transform: translateY(0);
}
/* geen verbindingslijntje */
#vtvGidsMatches .vtv-gids-extra-badge::before{
  display:none !important;
}

/* zorg dat tooltip nooit “achter” clips valt */
#vtvGidsMatches .vtv-gids-match-card,
#vtvGidsMatches .vtv-gids-competition-group{
  overflow: visible !important;
}

/* =========================
   5) Banner spacing (na inject)
   ========================= */
#vtvGidsMatches .vtv-banner-inserted{
  margin: 15px 0;
  text-align: center;
}
#vtvGidsMatches .vtv-banner-inserted > *{
  margin-left: auto;
  margin-right: auto;
}
/* Fix: echte ronde hoeken links/rechts bovenaan */
#vtvGidsMatches .vtv-gids-competition-group{
  border-radius: 12px !important;
  overflow: hidden !important;   /* snijdt header/background af */
  background: #fff !important;
}

/* Zorg dat de header background ook netjes binnen de radius valt */
#vtvGidsMatches .vtv-gids-competition-header{
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  background-clip: padding-box !important;
}
/* 1) +1 area: geen “half rondje”/divider, maar strak verticaal streepje */
#vtvGidsMatches .vtv-gids-extra-badge{
  border-left: 1px solid #d6dbe2 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-radius: 0 !important;            /* voorkomt afgeronde rand */
  background: transparent !important;
}

/* 2) Minder ruimte tussen zendertekst en streepje (−4px) */
#vtvGidsMatches .vtv-gids-extra-badge{
  margin-left: 2px !important;   /* was ~6 */
  padding-left: 2px !important;  /* was ~6 */
  transform: translateX(0) !important; /* geen extra schuif */
}

/* 3) Klik/tap gebied groter (mobiel vriendelijk) */
#vtvGidsMatches .vtv-gids-extra-badge{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;    /* iOS tap target */
  height: 26px !important;       /* gelijk aan pill */
  padding-right: 10px !important;/* meer klikruimte rechts */
  cursor: pointer !important;
}
/* +1: compact (desktop) */
#vtvGidsMatches .vtv-gids-extra-badge{
  min-width: auto !important;
  height: auto !important;
  padding-right: 0 !important;
  padding-left: 4px !important;
  margin-left: 4px !important;
}

/* Tap area groter alleen op mobiel */
@media (max-width: 768px){
  #vtvGidsMatches .vtv-gids-extra-badge{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 26px !important;        /* match pill hoogte */
    min-width: 34px !important;     /* genoeg tap, maar niet huge */
    padding: 0 8px !important;      /* iets klikruimte */
    margin-left: 4px !important;
    padding-left: 8px !important;   /* ruimte na de divider */
  }
}
/* 0) +1 weer VISUEEL compact houden */
#vtvGidsMatches .vtv-gids-extra-badge{
  padding: 0 0 0 6px !important;
  margin-left: 6px !important;
  min-width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  transform: translateX(2px) !important;
}

/* 1) Onzichtbare tap-zone vergroten (zonder layout te veranderen) */
#vtvGidsMatches .vtv-gids-extra-badge{
  position: relative !important;
}

#vtvGidsMatches .vtv-gids-extra-badge::before{
  content: '';
  position: absolute;
  left: -10px;   /* vergroot naar links */
  right: -10px;  /* vergroot naar rechts */
  top: -10px;    /* vergroot omhoog */
  bottom: -10px; /* vergroot omlaag */
  background: transparent;
}

/* 2) Tooltip ook op mobiel tonen (tap) */
@media (max-width: 768px){
  #vtvGidsMatches .vtv-gids-extra-badge{
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  /* Laat tooltip zien bij tap (active) en bij focus (na tap) */
  #vtvGidsMatches .vtv-gids-extra-badge:active::after,
  #vtvGidsMatches .vtv-gids-extra-badge:focus::after{
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}
/* Oude pseudo-tooltip uitzetten */
#vtvGidsMatches .vtv-gids-extra-badge::after,
#vtvGidsMatches .vtv-gids-extra-badge::before{
  content: none !important;
  display: none !important;
}

/* +1 blijft compact zoals je het nu hebt */
#vtvGidsMatches .vtv-gids-extra-badge{
  background: transparent !important;
  border: 0 !important;
  margin-left: 2px !important;
  padding-left: 2px !important;
  padding-right: 0 !important;
  border-left: 1px solid #d6dbe2 !important;
  border-radius: 0 !important;
  transform: translateX(2px) !important;

  font-weight: 400 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  color: rgba(55,65,81,.6) !important; /* 60% van #374151 */
  cursor: pointer !important;
  position: relative !important;
}

/* Tooltip basis */
#vtvGidsMatches .vtv-gids-extra-tooltip{
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 210px;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  z-index: 9999;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

/* Label (kleiner, lichter) */
#vtvGidsMatches .vtv-gids-extra-tooltip-label{
  font-size: 11px;
  font-weight: 700;
  color: #6f757f;
  margin-bottom: 6px;
}

/* Rij met icoon + tekst */
#vtvGidsMatches .vtv-gids-extra-tooltip-row{
  display: flex;
  align-items: center;
  gap: 8px;
}

#vtvGidsMatches .vtv-gids-extra-tooltip-ico{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .9;
}

#vtvGidsMatches .vtv-gids-extra-tooltip-text{
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

/* Toon tooltip: hover + focus + tap (mobile) */
#vtvGidsMatches .vtv-gids-extra-badge:hover .vtv-gids-extra-tooltip,
#vtvGidsMatches .vtv-gids-extra-badge:focus .vtv-gids-extra-tooltip,
#vtvGidsMatches .vtv-gids-extra-badge:active .vtv-gids-extra-tooltip{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobiel: grotere onzichtbare tap-zone (zonder layout te veranderen) */
@media (max-width: 768px){
  #vtvGidsMatches .vtv-gids-extra-badge{
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }
  #vtvGidsMatches .vtv-gids-extra-badge::before{
    content:'';
    display:block;
    position:absolute;
    left:-12px;
    right:-12px;
    top:-12px;
    bottom:-12px;
    background:transparent;
  }
}
/* Tooltip: links uitlijnen (geen “midden gevoel”) */
#vtvGidsMatches .vtv-gids-extra-tooltip{
  text-align: left !important;
  padding: 10px 12px !important;
  min-width: 240px !important;
}

/* Label links + iets strakker */
#vtvGidsMatches .vtv-gids-extra-tooltip-label{
  text-align: left !important;
  margin: 0 0 6px 0 !important;
}

/* Rij: icoon + tekst mooi op één lijn */
#vtvGidsMatches .vtv-gids-extra-tooltip-row{
  align-items: center !important;
}

/* Icoon iets hoger/optisch gecentreerd */
#vtvGidsMatches .vtv-gids-extra-tooltip-ico{
  position: relative !important;
  top: -1px !important;
}

/* Zenders: 1px groter + 1 dikte dikker */
#vtvGidsMatches .vtv-gids-extra-tooltip-text{
  font-size: 13px !important;   /* was 12 */
  font-weight: 700 !important;  /* was 600 */
  line-height: 1.25 !important;
}

/* =========================================================
   VTV Default – Competition view (homepage)
   Activeert op: layout=vtv-default + groupby=competition
   ========================================================= */

#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="competition"] .vtv-gids-competition-group{
  border: 1px solid #d6dbe2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* Competitie header: subtiele “silver” strook (met logo + naam) */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="competition"] .vtv-gids-competition-header{
  padding: 14px 16px;
  background: linear-gradient(90deg, #dbdee3 0%, #f1f4f9 100%);
  border-bottom: 1px solid #d6dbe2;
}

/* Competitienaam */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="competition"] .vtv-gids-competition-name{
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* Match cards: list rows (zoals je UXpilot-achtige look) */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="competition"] .vtv-gids-match-card{
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none !important;

  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
  transition: background-color .15s ease;
}

#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="competition"] .vtv-gids-match-card:last-child{
  border-bottom: 0;
}

#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="competition"] .vtv-gids-match-card:hover{
  background: #f9fafb;
}

/* Team spacing */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="competition"] .vtv-gids-cel-2-teams{
  gap: 11px;
}
/* Homepage: hover altijd aan op match rows */
#vtvGidsMatches .vtv-gids-match-card:hover{
  background: #f9fafb;
}
/* Homepage: lijst-rows i.p.v. losse cards (optioneel) */
#vtvGidsMatches .vtv-gids-match-card{
  border-bottom: 1px solid #eef2f7;
}
#vtvGidsMatches .vtv-gids-match-card:last-child{
  border-bottom: 0;
}
/* vtv-default + date: header 1px compacter */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-competition-header{
  padding-top: 16px !important;   /* was 18 */
  padding-bottom: 16px !important;
}

/* vtv-default + date: match rows 1px meer ruimte */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-match-card{
  padding-top: 13px !important;   /* was 12 */
  padding-bottom: 13px !important;
}

/* vtv-default + date: teamnaam kleur */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-team-name{
  color: #262d39 !important;
}
/* Datum header: 1px kleiner + netjes verticaal centreren */
#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-competition-header{
  display: flex !important;
  align-items: center !important;
}

#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-competition-name{
  font-size: 15px !important;   /* was 16 */
  line-height: 1.15 !important;
  top: 0 !important;            /* haal micro-offset weg zodat center klopt */
}

#vtvGidsMatches.vtv-gids-layout-vtv-default[data-groupby="date"] .vtv-gids-competition-name::before{
  top: 0 !important;            /* icoon ook neutraal */
}

/* =========================================================
   NIEUW: Show More functionaliteit (GEFIXT VOOR VOLLE BREEDTE)
   ========================================================= */

/* 1. Het daadwerkelijk verbergen van items */
.vtv-hidden-item {
    display: none !important;
}

/* 2. Fade effect op de laatste zichtbare kaart */
.vtv-card-faded {
    position: relative;
    z-index: 1; /* Zorg dat tekst niet onder fade verdwijnt */
}
.vtv-card-faded::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Iets hogere fade voor smoother effect */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 70%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 10;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 3. De knop container - HIER zat de fout in de vorige versie */
.vtv-show-more-container {
    /* Cruciaal: breek uit eventuele grids */
    grid-column: 1 / -1 !important; 
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    
    padding: 24px 0 10px !important;
    margin-top: 0 !important;
    clear: both !important;
    background: transparent !important;
}

/* 4. De knop zelf - Styling zoals in je voorbeeld */
.vtv-show-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    background-color: #f3f4f6 !important; /* Lichtgrijs zoals screenshot */
    color: #1134a1 !important; /* Jouw blauw */
    
    border: 1px solid #e5e7eb !important;
    border-radius: 50px !important; /* Pill shape */
    
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: normal !important;
}

.vtv-show-more-btn:hover {
    background-color: #e5e7eb !important;
    color: #0d2985 !important;
    border-color: #d1d5db !important;
    transform: translateY(-1px);
}