/* components.css — herbruikbare UI-onderdelen (knoppen, dropdown, tabs,
   lijsten, subleague-formulieren, chat-widget). Kleuren/maten via
   var(--token) uit tokens.css. */

/* =====================================================
    . INDEX.PHP: NIEUWS CARROUSEL
   ===================================================== */

.news-slider {
  width: 100%;
  margin: auto;
  overflow: hidden;
}

.news-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.news-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0px;
  box-sizing: border-box;
}

.slider-dots {
  text-align: center;
  margin-top: 10px;
}
.dot {
  height: 10px;
  width: 10px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  margin: 0 5px;
}
.dot.active {
  background: #333;
}

.yowow {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.box_yowow {
  padding: 0rem;
  padding-bottom: 1rem;
  padding-top: 1rem;
  border: 1px solid var(--box-color-color);
  border-radius: 12px;
  background: var(--background-box);
  scroll-margin-top: 10px;
}

/* =====================================================
    . BUTTONS & LINKS
   ===================================================== */

.btn-submit,
.btn-submit_sec {
  padding: 10px 20px;
  color: var(--text-color-light);
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}

.btn-submit_sec {
  background: #cccccc;
  color: var(--primary);
  border: #cccccc;
}

.btn-submit {
  background: var(--primary);
  border: var(--primary);
  color: var(--secondary);
}

/* 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;
  max-width: 45%;
  text-align: center;
  align-self: center;
}

.header-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.header-with-button h2 {
  margin: 0;
}

.btn-submit_sl {
  background-color: var(--primary);
  color: var(--text-color-light);
  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;
}

.btn-more {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.btn-more:hover {
  background: var(--primary);
  opacity: 0.9;
}

/* Startstaat verborgen; showAllGCRows()/hideExtraGCRows() (index.php/picks.php)
   togglen dit zelf via btnLess.style.display — geen !important hier, anders
   kan die JS-toggle de knop nooit meer laten verschijnen. */
#showLessBtnGC {
  display: none;
}

/* =====================================================
    . CUSTOM DROPDOWN
   ===================================================== */

.custom-select-wrapper,
.custom-select-wrapper-picks {
  position: relative;
  margin-bottom: 15px;
  font-family: "Montserrat";
}

.custom-select-wrapper {
  min-width: 240px;
  width: fit-content;
}

.custom-select-wrapper-picks {
  max-width: 420px;
  width: 100%;
}

.custom-select-wrapper-picks .custom-select-trigger {
  font-weight: normal;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 9999;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-options.open {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

.custom-option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
}

.custom-option:hover {
  background: #f1f1f1;
}

/* Renner niet meer actief in de koers (fillDropdown() in picks.php/picks111.php) */
.custom-option.out-of-race {
  cursor: not-allowed;
}
.custom-option.out-of-race .rider-out-label {
  opacity: 0.5;
  text-decoration: line-through;
}

.custom-optgroup-label {
  background: #eee;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 4px 12px;
  color: var(--text-color);
  text-transform: uppercase;
}

.custom-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select-trigger,
.custom-select-trigger-A {
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  position: relative;
  padding-right: 35px;
  gap: 4px;
  justify-content: flex-start;
}

.custom-select-trigger {
  border: 2px solid var(--primary);
}

.custom-select-trigger-A {
  border: 2px solid var(--primary);
}
.custom-select-trigger-B {
  border: 2px solid #C8B509;
}

.custom-select-trigger:after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid black;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.custom-select-wrapper.open .custom-select-trigger:after,
.custom-select-wrapper-picks.open .custom-select-trigger:after {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-date {
  font-size: 0.75rem;
  color: #888;
}

.stage-number-margin {
  margin-right: 8px;
}

/* Zoekveld (bv. picks.php rechter kolom, ranking.php filter) */
.filter-container {
  display: flex;
  width: 100%;
  max-width: 300px;
  border-radius: 6px;
  background-color: #fff;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-left: 4px solid var(--background);
}

#giroSearchInput {
  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
  padding: 6px 12px;
}

.filter-input {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-left: 4px solid var(--background);
  border-radius: 6px;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* Zoekveld boven de renners-dropdown (picks.php/picks111.php) */
.search-wrapper {
  padding: 5px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.search-wrapper input[type="text"] {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* =====================================================
    . RANKING TABS
   ===================================================== */

.tab-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: left;
}

.tab-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-family: var(--font-body);
  opacity: 0.5;
}

.tab-btn.active {
  opacity: 1;
  transform: scale(1.1);
  outline: 1px solid rgba(220, 220, 220, 0.5);
  outline-offset: -1px;
}

.btn-gc {
  background-color: var(--primary);
  border: 1px solid black;
  color: var(--secondary);
}
.btn-mountain {
  background-color: var(--mountain-jersey);
}
.btn-points {
  background-color: var(--points-jersey);
}

/* =====================================================
    . STATS: VERGELIJK & ICONS
   ===================================================== */

.fa-shirt {
  background: var(--white);
  border-radius: 50%;
  padding: 4px;
}

.icon-gc {
  color: var(--secondary);
  background: black;
  border: 1px solid #fefc00;
}

.icon-points {
  color: var(--points-jersey);
  border: 1px solid rgba(0, 0, 0, 0);
}

.icon-mountain {
  color: var(--mountain-jersey);
  border: 1px solid var(--mountain-jersey);
}

.icon-bollen::before {
  background-image: radial-gradient(#ed1c24 30%, transparent 30%),
                     radial-gradient(#ed1c24 30%, transparent 30%);
  background-size: 5px 5px;
  background-position: 0 0, 17.5px 17.5px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0);
}

.compare-container {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.compare-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.compare-label {
  font-size: 0.8em;
  color: var(--background);
  text-transform: uppercase;
}
.select-cmpA,
.select-cmpB {
  min-width: 200px;
}

.chart-wrapper {
  height: 350px;
  margin-bottom: 20px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}

#statsMasterForm {
  display: none;
  margin: 0;
  padding: 0;
}

/* =====================================================
    . MIJN PROFIEL
   ===================================================== */

input {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

ul.game-list {
  list-style: none;
  padding: 0;
  color: var(--text-color);
}

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(--text-color);
  transition: background-color 0.3s ease;
}
ul.game-list a:hover {
  background-color: rgba(0, 0, 0, 0.12);
  font-weight: bold;
  color: var(--primary);
}

ul.game-list .game-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

ul.game-list .game-logo {
  width: 1.2rem;
  height: 1.2rem;
}

ul.action-list {
  list-style: none;
  padding: 0;
  color: var(--text-color-light);
}

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;
  color: var(--primary);
}

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

.status-paid {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-unpaid {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Actie-knop links (my_profile.php) */
.action-link-bold {
  font-weight: bold;
}

/* FAQ accordion (faq_tour.php) */
.faq-item {
  margin-bottom: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}
.faq-question {
  padding: 12px 15px;
  background: #f9f9f9;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: "+";
  color: #e10600;
}
.faq-item.faq-open .faq-question::after {
  content: "-";
}
.faq-answer {
  display: none;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #eee;
  line-height: 1.5;
  color: #444;
}
.faq-item.faq-open .faq-answer {
  display: block;
}

/* Kleine noot onder een FAQ-antwoord (faq_tour.php) */
.faq-note {
  font-size: 0.9rem;
}

/* my_profile.php — betaallinks & bieractie-boxen */
.profile-payment-links {
  margin-top: 15px;
  padding-left: 5px;
}
.mt-0 {
  margin-top: 0;
}
.m-0 {
  margin: 0;
}
.text-sm {
  font-size: 0.9rem;
}
.text-error {
  color: red;
}
.text-xs {
  font-size: 0.7rem;
}
.beer-action-id {
  font-size: 0.7rem;
  font-weight: bold;
  opacity: 0.8;
}
.beer-action-clock {
  margin: 10px 0;
}
.beer-action-cafes {
  font-size: 0.8rem;
  font-weight: bold;
  opacity: 0.8;
  text-align: left;
}
.beer-announcement-title {
  margin: 0;
  font-size: 1.6rem;
}
.beer-announcement-text {
  margin: 5px 0;
}
.action-ended-box {
  opacity: 0.9;
  border: 1px solid #eae8e8;
}
.action-ended-text {
  margin: 0;
  color: black;
}
.action-upcoming-box {
  text-align: center;
  opacity: 0.7;
}

/* =====================================================
    . SUBLEAGUE PAGE
   ===================================================== */

.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(--secondary);
}

.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;
}

/* margin-top override voor de feedback-melding boven het subleague-formulier */
.feedback-spaced {
  margin-top: 10px;
}

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

.form-container {
  display: none;
}

.form-inline {
  display: inline;
}

.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;
}

.invite-details {
  margin-top: 20px;
}

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

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

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

.btn-icon-delete {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font-size: 1.2rem;
}

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

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

.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;
}

.pill-small i {
  font-size: 1.1rem;
}

#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: 8px;
  z-index: 10000;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: none;
  color: var(--text-color-light);
}

.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: 160px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

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

.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);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/*-------------------------------------------------------------
  Chat widget
--------------------------------------------------------------*/

#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

#chat-button:hover {
  opacity: 1;
  transform: scale(1.05);
}

#chat-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 90%;
  max-width: 380px;
  height: 85%;
  background: #121212;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: none;
  overflow: hidden;
  z-index: 10000;
  transition: all 0.2s ease-in-out;
}

#chat-window iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: none;
  z-index: 9998;
}

@media (min-width: 769px) {
  #chat-window {
    bottom: 80px;
    right: 20px;
    width: 380px;
    height: 85vh;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 768px) {
  body.chat-open #chat-button {
    display: none !important;
  }

  #chat-window {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  #chat-overlay {
    display: none !important;
  }
}

/* =====================================================
    . MIJN SPELLEN (mijn_spellen.php) — geport uit ed/vuelta components.css
   ===================================================== */

.btn-submit-modal {
  padding: 6px 18px;
  color: var(--text-color);
  border: solid 1px #ccc;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-body);
}

/* Spellen-grid ("Actief in deze spellen") en prijzen/badges-grid ("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: 12px;
  background: var(--primary-light);
  text-decoration: none;
  color: var(--text-color);
  text-align: center;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(10, 30, 64, 0.12);
}
.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: 12px;
  background: var(--white);
  border: 1px solid var(--table-border);
  box-shadow: 0 1px 3px rgba(10, 30, 64, 0.08);
  text-align: center;
  transition: transform 0.2s ease;
}
.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-dark);
  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-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}
