/* components.css — gedeeld sjabloon: herbruikbare UI-onderdelen.
   Alles hier via var(--token) uit tokens.css; geen kleuren/maten los. */

/* Boxes & panels */
.box,
.box_color {
  padding: 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.box_color {
  background: var(--primary);
  color: var(--white);
}
.box_color h2 {
  color: var(--white);
}

.box_profile {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

/* Rij met kop links en actieknop rechts, bv. bovenaan een box. Zelfde
   flex-space-between-patroon als .profile_header (zie sectie Profile). */
.header-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}
.header-with-button h2 {
  margin: 0;
}

.info-box,
.info-box_main,
.info-box_green,
.info-box_red {
  padding: 1rem;
  margin-bottom: 1rem;
}

.info-box {
  background: var(--white);
  border-left: var(--info-box-border);
}
.info-box_main {
  background: var(--info-box-gray);
  border-left: var(--info-box-border);
}
.info-box_green {
  background: var(--info-box-green);
  border-left: var(--info-box-border-green);
  color: black
}
.info-box_red {
  background: var(--info-box-red);
  border-left: var(--info-box-border-red);
}

/* Forms & inputs */
/* Baseline-stijl voor een <select> — ook zichtbaar als JS uit staat
   (.custom-dropdown verrijkt dit progressief, zie sectie Custom Dropdown). */
.selected_round {
  min-width: 240px;
  margin: 0 40px 15px 0;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 10px 32px 10px 12px;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5'><path fill='%23008F00' d='M0 0l5 5 5-5z'/></svg>") no-repeat right 10px center/10px 5px;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.selected_round:hover {
  box-shadow: var(--shadow-md);
}

.selected_round:focus-visible {
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.contact-box input,
.register-box input,
.login-box input,
.reset-box input {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--gray-dark);
  border-radius: 4px;
  font-size: 1em;
  font-family: var(--font-body);
}

.form-message {
  margin-top: 1rem;
  display: block;
}

.search-container {
  margin-bottom: 15px;
  text-align: left;
}
.search-container input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #ccc;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  box-sizing: border-box;
  font-family: var(--font-body);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.search-container input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Custom dropdown — progressieve verrijking van een gewone <select>
   (zie js/custom-dropdown.js). Markup-contract:
     <div class="custom-dropdown">
       <select class="selected_round" ...>...</select>
     </div>
   De <select> blijft de bron van waarheid; bestaande onchange-logica
   hoeft niet aangepast te worden. Zodra JS draait krijgt de wrapper de
   klasse ".is-enhanced", die de <select> visueel (maar toegankelijk)
   verbergt. */
.custom-dropdown {
  position: relative;
  display: inline-block;
  min-width: 160px;
  margin: 0 40px 15px 0;
}

.custom-dropdown.is-enhanced select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-width: 240px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-color);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.dropdown-selected:hover {
  box-shadow: var(--shadow-md);
}

.custom-dropdown.is-open .dropdown-selected,
.dropdown-selected:focus-visible {
  outline: none;
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.dropdown-selected .arrow {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--primary);
}
.custom-dropdown.is-open .arrow {
  transform: rotate(180deg);
}

.dropdown-items {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--white);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

/* Zoekveld bovenin lange dropdowns (verschijnt automatisch boven
   SEARCH_THRESHOLD opties, zie js/custom-dropdown.js). Sticky zodat het
   zichtbaar blijft terwijl .dropdown-items scrollt. */
.dropdown-search {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid var(--gray-light);
  background: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.dropdown-search:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary-light);
}

/* Verborgen door de zoekfilter (anders dan dropdown-item-disabled, dat
   blijft zichtbaar maar niet-klikbaar). */
.dropdown-item.is-search-hidden {
  display: none;
}

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

/* Optioneel club-logo vóór de naam, alleen als de <option> een
   data-crest-attribuut had (zie js/custom-dropdown.js). */
.dropdown-item-logo {
  margin-right: 0.4rem;
}
.dropdown-item:not(:last-child) {
  border-bottom: 1px solid var(--gray-light);
}
.dropdown-item:hover,
.dropdown-item.is-active {
  background: var(--primary-light);
}
.dropdown-item[aria-selected="true"] {
  font-weight: 600;
  color: var(--primary);
}
.dropdown-item-disabled {
  color: #999;
  cursor: default;
}
.dropdown-item-disabled:hover {
  background: transparent;
}

/* Buttons */
.btn-submit,
.btn-submit_alt,
.btn-submit_sec {
  padding: 10px 20px;
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  box-sizing: border-box;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
  outline-offset: 2px;
}

.btn-submit:hover,
.btn-submit_alt:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-submit_sec:hover {
  background: var(--accent-secondary-hover);
  border-color: var(--accent-secondary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-submit:active,
.btn-submit_alt:active,
.btn-submit_sec:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-submit:focus-visible,
.btn-submit_alt:focus-visible,
.btn-submit_sec:focus-visible {
  outline: 2px solid var(--primary-hover);
}

.btn-submit {
  background: var(--primary);
  border: none;
}
.btn-submit_alt {
  background: var(--primary);
  border: 2px solid var(--white);
}
.btn-submit_sec {
  background: var(--accent-secondary);
  border: solid 1px var(--accent-secondary);

}

.btn-submit-modal {
  padding: 6px 18px;
  color: var(--text-color);
      border: solid 1px #ccc;

  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-body);
}

/* Klein pil-knopje (bv. naast een .header-with-button-kop), lichter dan
   de .btn-submit-familie hierboven. */
.btn-submit_sl {
  background-color: var(--primary);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.btn-submit_sl:hover {
  background-color: var(--primary);
  color: white !important;
}

/* Knoppenpaar "Reset"/"Verstuur" onder een pick-ronde (picks.php): beide
   knoppen krijgen een gelijke, vaste breedte in de .picks-actions-wrapper. */
.picks-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.btn-picks {
  width: 9rem;
  text-align: center;
  align-self: center;
}

/* Kolom-toggle knoppen op mobiel voor de picks-tabellen: wisselt tussen
   joker/score/pts omdat ze op smal scherm niet naast elkaar passen.
   Alleen zichtbaar op mobiel (zie tables.css voor de desktop-kolommen). */
.picks-table-controls {
  display: none;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 0.4rem;
}
.picks-table-controls .btn-toggle {
  width: 2.75rem;
  padding: 4px 0;
  border: 1px solid var(--primary);
  background: var(--white);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
  transition: background-color var(--transition-base), color var(--transition-base);
}
.picks-table-controls .btn-toggle.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 768px) {
  .picks-table-controls {
    display: flex;
  }
}

/* Klikbare naam in de Stand (ranking.php): opent een modal met de picks
   van die speler. Eigen bredere modal-variant, niet de smalle .modal-box
   uit modal.css (max-width 600px is te smal voor deze tabel). */
.clickable-name,
.clickable-name:visited {
  cursor: pointer;
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.clickable-name:hover {
  color: var(--primary);
}

.picks-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.picks-modal-content {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  width: 50%;
  max-width: 900px;
  min-width: 320px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg, 0 4px 15px rgba(0, 0, 0, 0.3));
  margin: auto;
}
.picks-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  color: #333;
}
#picksModalTitle {
  margin: 0 30px 15px 0;
}
@media (max-width: 768px) {
  .picks-modal-overlay {
    align-items: flex-start;
    padding-top: 10px;
    box-sizing: border-box;
  }
  .picks-modal-content {
    width: 95%;
    max-width: none;
    max-height: 90vh;
    margin: 0 auto;
  }
}

/* Tabs */
.tab-button,
.sub-tab-button {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 5px;
  border: none;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.tab-button:hover,
.sub-tab-button:hover {
  background: var(--primary-hover);
}

.tab-button:focus-visible,
.sub-tab-button:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 2px;
}

.tab-button.active,
.sub-tab-button.active {
  background: var(--accent-secondary);
  color: white;
  font-weight: bold;
  box-shadow: var(--shadow-md);
}

.tab-button.active:hover,
.sub-tab-button.active:hover {
  background: var(--accent-secondary-hover);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.period-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.period-badge {
    background: var(--primary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 120px;
    align-items: left;
}

.period-badge strong {
    color: var(--text-color-light);
}

@media (max-width: 499px) {
  .tab-button .full-label,
  .sub-tab-button .full-label {
    display: none;
  }
  .tab-button::after,
  .sub-tab-button::after {
    content: attr(data-short);
    font-weight: 700;
  }
  .tab-button,
  .sub-tab-button {
    padding: 8px 16px;
    margin: 0 4px 0 0;
  }
}

/* Links */
.extra-links {
  text-align: right;
}
.extra-links a {
  color: var(--primary);
  text-decoration: none;
}
.extra-links a:hover {
  text-decoration: underline;
}

.change_club a {
  font-size: 0.7em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--primary);
}
.change_club a:visited {
  color: var(--primary);
}
.change_club a:hover {
  text-decoration: underline;
}

.login-actions .forgot-link {
  text-decoration: none;
  margin-left: 1rem;
  color: var(--primary);
}
.login-actions .forgot-link:hover {
  text-decoration: underline;
}

/* Loading: spinner & toast */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.8s ease;
}
.spinner-container.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 8px solid #ccc;
  border-top: 8px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1rem auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  10%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  85%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

#spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

#temp-info-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  border: 1px solid var(--primary);
  background: var(--primary);
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: bold;
  box-shadow: var(--shadow-lg);
  animation: fadeInOut 3s forwards;
  text-align: center;
  display: none;
  color: var(--white);
}

/* Lijsten (spellen-overzicht, acties, subleagues) */
ul.game-list {
  list-style: none;
  padding: 0;
  color: var(--primary);
}
ul.game-list li {
  margin-bottom: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
ul.game-list a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.04);
  text-decoration: none;
  font-weight: 500;
  color: var(--primary);
  transition: background-color 0.3s ease;
}
ul.game-list a:hover {
  background-color: rgba(0, 0, 0, 0.12);
  font-weight: bold;
}
ul.game-list a:visited {
  color: var(--primary);
}
ul.game-list .game-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
ul.game-list .game-logo {
  width: 1.3rem;
}

/* Mijn Spellen — spellen-grid en prijzen/badges-grid (mijn_spellen.php:
   "Actief in deze spellen" en "Mijn Prijzen"/"Nog te halen"). */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.game-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  text-decoration: none;
  color: var(--text-color);
  text-align: center;
  font-weight: 600;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.game-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.game-card-item img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 1rem;
}
.mijn-spellen-uitleg {
  margin-top: 1rem;
}
.mijn-spellen-collapsible {
  margin: 0;
  padding: 0;
}
.mijn-spellen-collapsible > summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.17em;
  cursor: pointer;
  list-style: none;
}
.mijn-spellen-collapsible > summary::-webkit-details-marker {
  display: none;
}
.mijn-spellen-collapsible > summary::before {
  content: '▸';
  display: inline-block;
  font-size: 0.8em;
  transition: transform 0.15s ease;
}
.mijn-spellen-collapsible[open] > summary::before {
  transform: rotate(90deg);
}
.mijn-spellen-collapsible > summary:hover {
  opacity: 0.8;
}
.mijn-spellen-collapsible > *:not(summary) {
  margin-top: 1rem;
}
.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--table-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-base);
}
.badge-card:hover {
  transform: translateY(-2px);
}
.badge-card img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}
.badge-card .badge-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.25;
}
.badge-card .badge-year {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}

/* "Nog te halen": dezelfde kaart, dof/grijs met een hangslotje erover */
.badge-card.locked {
  background: var(--gray-light, #f3f3f3);
  opacity: 0.65;
  position: relative;
}
.badge-card.locked img {
  filter: grayscale(1);
}
.badge-card.locked .badge-caption {
  color: var(--gray-dark);
}
.badge-card.locked::after {
  content: "\1F512";
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  font-size: 0.9rem;
}

/* Klikbaar: behaalde badges openen een popup met een grotere versie
   (mijn_spellen.php's openBadgeModal()) */
.badge-card.clickable {
  cursor: pointer;
}
.badge-modal-box {
  max-width: 320px;
}
.badge-modal-box img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}
.badge-modal-box .badge-modal-caption {
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}
.badge-modal-box .badge-modal-year {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

ul.action-list {
  list-style: none;
  padding: 0;
  color: var(--text-color);
}
ul.action-list li {
  margin-bottom: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
ul.action-list a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.04);
  text-decoration: none;
  font-weight: 500;
  color: var(--text-color);
  transition: background-color 0.3s ease;
}
ul.action-list a:hover {
  background-color: rgba(0, 0, 0, 0.12);
  font-weight: bold;
}

#toggle-password-link.active {
  font-weight: bold;
  color: var(--white);
  background-color: var(--primary);
}

.subleague-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subleague-list li {
  margin-bottom: 0.5rem;
}
.subleague-list a {
  text-decoration: none;
  color: var(--text-color);
  display: block;
  padding: 1rem;
  background-color: #f0f0f0;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.subleague-list h3 {
  margin: 0.5rem;
  font-size: 1.2rem;
}
.subleague-list a.active,
.subleague-list li.active a {
  background-color: #e0e0e0;
}
.subleague-list a:hover {
  background-color: #dcdcdc;
}
.subleague-list li.open a {
  background-color: var(--primary);
  color: var(--white);
}

/* Profile & subleague pagina's */
.profile_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.right-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.club-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
#club-form {
  display: none;
}

.form-box-subleague {
  border: 1px solid var(--primary);
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  background-color: #f9f9f9;
}
.form-box-subleague_sec {
  border: 1px solid #ccc;
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  background-color: #f9f9f9;
}
.form-box-subleague input[type="text"] {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-top: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.form-box-subleague button {
  padding: 0.8rem 1.5rem;
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.form-box-invite {
  margin-left: 0rem;
}
.invite_friends {
  margin-left: 1.5rem;
}

.invite-input {
  font-family: var(--font-body);
  font-size: 1em;
  line-height: 1.4;
  width: 100%;
  min-height: 100px;
  padding: 0.6em 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  resize: none;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow: hidden;
  margin-top: 0.5rem;
}

/* Uitnodiging: details & code */
.invite-details {
  margin-top: 20px;
}

.invite-label-group {
  margin-left: 20px;
}

.invite-code-display {
  display: none;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1em;
}
.share-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1em;
  text-decoration: none;
  padding: 0.6em 0.5em;
  border-radius: 6px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  transition: background-color 0.3s ease;
  color: var(--text-color);
  width: fit-content;
}
.share-link:hover {
  background-color: #e0e0e0;
}
.share-link:visited {
  color: var(--text-color);
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 0.2em;
}

.invite-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Pill-knoppen voor WhatsApp/e-mail delen */
.pill-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  color: #ffffff !important;
}

.pill-wa {
  background-color: #25d366;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2);
}
.pill-wa:hover {
  background-color: #20ba5a;
}

.pill-mail {
  background-color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}
.pill-mail:hover {
  background-color: #0069d9;
}

.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
  gap: 1.4em;
  margin-left: 0.5rem;
}

.nav-left a,
.nav-right a {
  text-decoration: none;
  font-weight: bold;
}

.whatsapp-icon {
  font-size: 1.2em;
  color: #25D366;
  margin-left: 0.3em;
  vertical-align: middle;
}

.highlight-choice {
  background-color: #e0ffe0;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

/* Stand-pagina extra's (ranking.php) */
.update-info {
  font-style: italic;
}

hr {
  border: none;
  height: 1px;
  background-color: color-mix(in srgb, var(--primary) 40%, transparent);
  margin: 0rem 0 0 0;
}

hr.match-hr {
  border: 0;
  border-bottom: 2px solid transparent;
  border-image: var(--border-gradient-country);
  border-image-slice: 1;
  margin: -1rem auto 1rem auto;
  width: 15rem;
}

small[data-utc-time] {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
  font-weight: bold;
  margin-left: 0.5rem;
}

.gespeeld {
  margin-top: 1.5rem;
  font-weight: bold;
}

.logo_stand {
  height: 1rem;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.update-timestamp {
  font-size: 0.9rem;
}
.update-timestamp b {
  font-size: 1rem; /* voorkomt dat bold groter oogt dan de rest */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.last-match-details {
  font-size: 0.85rem;
}

/* De score-regel (crests + teams + score) staat in .last-match-details in
   een eigen <span class="match-score-line"> (zie bereken_punten.php); op
   mobiel krijgt die een eigen regel. */
@media (max-width: 499px) {
  .match-score-line {
    display: block;
    margin-top: 4px;
  }
}

/* .rotate-icon: concrete afmetingen hier, show/hide-gedrag (mobile-only)
   staat in base.css bij de responsive utilities. */
.rotate-icon {
  max-height: 1.2rem;
  height: 1em;
  vertical-align: middle;
  margin-left: 8px;
}

/* Periode-badges (ranking.php) — toont de 4 periodes met hun ronde-range,
   bv. onder de "Periodestand"-prijzentabel. Zelfde border/radius/shadow-
   tokens als .box/.dropdown-item. */

.period-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.period-badge {
    background: var(--primary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 120px;
    align-items: left;
}

.period-badge strong {
    color: var(--text-color-light);
}


/* Subleague: uitnodigingscode opnieuw genereren (subleague.php) */
.generate-code-box {
  background: rgba(0, 0, 0, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0 15px 20px;
}

.generate-code-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.input-code-edit {
  text-transform: uppercase;
  width: 5rem;
  padding: 10px 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-body);
  display: block;
  margin: 0;
}

.btn-generate {
  margin: 0;
  background-color: #6c757d;
}

.btn-generate:hover {
  background-color: #616970;
}

.flash-border {
  animation: codeFlash 1.5s ease-in-out;
}

@keyframes codeFlash {
  0% {
    border: 4px solid var(--primary);
    font-weight: bold;
    transform: scale(1.1);
  }
  100% {
    border: 1px solid #ccc;
    font-weight: normal;
    transform: scale(1);
  }
}

/* "Vergelijk Deelnemers" box op stats.php: twee dropdowns + een "vs"
   scheidingstekst naast elkaar, die op mobiel onder elkaar stapelen. */
.compare-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.compare-vs-text {
  font-weight: bold;
  color: #999;
  font-size: 0.9rem;
  margin: 0 5px 15px;
}

@media (max-width: 768px) {
  .compare-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
  }
  .compare-vs-text {
    display: none;
  }

  .beheerder-badge {
    display: block;
  }
}

/* Push-melding bel bij "Aankomend programma" op picks.php */
.schedule-header-row {
  position: relative;
}

.schedule-header-row h2 {
  display: flex;
  align-items: center;
}

.push-bell-inline {
  border: 2px solid red;
  background: #f2f3f7;
  color: var(--primary-hover);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  vertical-align: middle;
  margin-right: -5px;
  margin-left: auto;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.push-bell-inline:hover {
  transform: scale(1.08);
}
.push-bell-inline.is-subscribed {
  background: var(--white);
  border: 2px solid var(--primary);
  color: #fff;
}

.push-bell-tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--white);
  border: 1px solid #e4e8f5;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  width: 260px;
  max-width: 80vw;
  z-index: 500;
  font-size: 0.85rem;
  color: var(--text-color);
}
.push-bell-tooltip[hidden] {
  display: none;
}
.push-bell-tooltip p {
  margin: 0 0 10px 0;
  line-height: 1.4;
}
.push-bell-action {
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-body);
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-hover) 100%);
}

/* Vergelijk Deelnemers (stats.php): dropdown-rand in primary/secondary
   kleuren, zelfde als de Chart.js-lijnen op stats.php, zodat duidelijk is
   welke dropdown bij welke lijn hoort. */
.cmp-dropdown-a .dropdown-selected {
  border-color: var(--primary);
}
.cmp-dropdown-b .dropdown-selected {
  border-color: var(--accent-secondary);
}
.custom-dropdown.cmp-dropdown-a.is-open .dropdown-selected,
.cmp-dropdown-a .dropdown-selected:focus-visible {
  border-color: var(--primary);
}
.custom-dropdown.cmp-dropdown-b.is-open .dropdown-selected,
.cmp-dropdown-b .dropdown-selected:focus-visible {
  border-color: var(--accent-secondary);
}

/* FAQ (faq.php): uitklapbare vraag/antwoord-items. Zelfde interactiepatroon
   als wc/faq_wc.php (klik op vraag -> antwoord toont/verbergt), maar hier
   via ed's eigen design-tokens i.p.v. de losse kleuren die wc gebruikt. */
.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--table-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  padding: 12px 15px;
  background: var(--primary-light);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.faq-question::after {
  content: '+';
  color: var(--primary);
  font-size: 1.2em;
  flex-shrink: 0;
}
.faq-item.faq-open .faq-question::after {
  content: '\2212'; /* − */
}
.faq-question:hover {
  filter: brightness(0.97);
}
.faq-answer {
  display: none;
  padding: 15px;
  background: var(--white);
  border-top: 1px solid var(--table-border);
  line-height: 1.5;
  font-size: 0.95em;
  color: var(--text-color);
}
.faq-answer a {
  color: var(--primary);
}
.faq-answer ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.faq-item.faq-open .faq-answer {
  display: block;
}
