/* components.css — losse, op zichzelf staande UI-stukjes die niet in
   tables.css/modal.css/header.css thuishoren. Zelfde opzet als ed/pl's
   components.css. Vervangt de inline style="..."-attributen die voorheen
   verspreid door cl/*.php stonden. */

/* FAQ (faq.php): uitklapbare vraag/antwoord-items. Zelfde patroon als
   ed/pl's components.css (klik op vraag -> antwoord toont/verbergt). */
.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;
}

/* index.php: CTA-knop rechts uitgelijnd onder de intro-tekst. */
.intro-cta {
  text-align: right;
  margin-top: 0.75rem;
}

/* stats.php: vergelijk-dropdowns (Vergelijk Deelnemers) nemen gelijk de
   beschikbare breedte in. */
.cmp-dropdown-a,
.cmp-dropdown-b {
  flex: 1;
}

/* stats.php: vergelijk-grafiek/placeholder container. */
.compare-chart-wrap {
  height: 350px;
  margin-top: 20px;
}
.compare-placeholder {
  text-align: center;
  padding: 40px;
  color: #ccc;
  border: 2px dashed #eee;
  border-radius: 10px;
}

/* standings_table.php: waarschuwing dat de stand mogelijk verouderd is. */
.standings-stale-warning {
  color: orange;
  font-size: 0.9rem;
}

/* ranking.php: foutmelding-tekst in dynamisch (JS) gegenereerde HTML. */
.error-text {
  color: red;
}

/* ranking.php: kop "De Stand" + optionele "Join Subleague"-knop op één rij.
   Zelfde patroon als ed. */
.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;
}

/* ranking.php: zoekveld boven de standtabel (filtert op naam). */
.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);
}

/* ranking.php: fase-badges (Groepsfase/Knock-Out) onder de Fasestand-tabel
   in de Prijzenpot-box — cl's eigen 2-fasen-variant van ed's period-badges
   (die daar 4 periodes tonen, cl heeft groepsfase + knock-out). */
.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.php: inline formulier rond het verwijder-icoon in de
   ledenlijst, en het icoon-knopje zelf (geen standaard button-styling). */
.inline-form {
  display: inline;
}
.icon-btn {
  border: none;
  background: none;
  cursor: pointer;
}

/* subleague.php: uitnodigingsblok — label + tekstvak, de code zelf zit al
   in de tekst (verborgen span blijft alleen als data-bron voor
   copyCodeOnly()). */
.invite-details {
  margin-top: 20px;
}
.invite-label-group {
  margin-left: 20px;
}
.invite-code-display {
  display: none;
}

/* subleague.php: pil-knoppen voor WhatsApp/e-mail delen (naast de gewone
   .btn-submit "Copy invite"/"Copy code"-knoppen in dezelfde .button-row). */
.pill-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  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;
}

/* subleague.php: uitnodigingscode opnieuw genereren */
.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);
  }
}

/* my_profile.php: betaallinks (Bunq/Tikkie) onder de betaalstatus. */
.payment-links {
  margin-top: 15px;
  padding-left: 5px;
}
.payment-links a {
  font-weight: bold;
}

/* my_profile.php: "bier-actie"-promo (beer-box/announcement-box komen al
   uit base.css; dit zijn alleen de tekstdetails erbinnen). */
.beer-box .beer-title {
  margin-top: 0;
  color: black;
}
.beer-box .beer-scan-instruction {
  font-size: 0.9rem;
}
.beer-box .beer-id-line {
  font-size: 0.7rem;
  font-weight: bold;
  opacity: 0.8;
}
.beer-box .beer-clock-row {
  margin: 10px 0;
}
.beer-box .beer-pubs-note {
  font-size: 0.8rem;
  font-weight: bold;
  opacity: 0.8;
  text-align: left;
}
.announcement-box .announcement-title {
  margin: 0;
  font-size: 1.6rem;
}
.announcement-box .announcement-body {
  margin: 5px 0;
}
.beer-action-ended {
  opacity: 0.9;
  border: 1px solid #eae8e8;
}
.beer-action-ended p {
  margin: 0;
  color: black;
}
.beer-action-upcoming {
  text-align: center;
  opacity: 0.7;
}
.beer-action-upcoming p {
  margin: 0;
}

/* Legenda-lijst (ranking.php, "Over de stand": G/P/W/... afkortingen) —
   zelfde als ed: gewone <ul>, items onder elkaar (geen flex-rij naast
   elkaar). */
.stand-info-list {
  margin: 0.5rem 0 0;
}

/* Statuskleuren in een tabelcel (bv. php/logs.php's match_logs-overzicht). */
.text-ok { color: var(--accent-green); }
.text-error { color: var(--accent-red); }

/* Kleine knop-variant binnen een modal (bv. mijn_spellen.php's
   badge-modal-sluitknop) — was in cl nog niet gestyled. */
.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);
}

/* --- admin_users.php (Admin HQ) — verplaatst uit een inline <style>-blok ---
   admin_users.php laadt de root-header (niet cl/php/header.php, want die
   blokkeert niet-deelnemende admins) maar laadt daarnaast wel dit bestand,
   vandaar de .cl-hq-scope (voorkomt dat deze regels op andere cl-pagina's
   lekken, en beschermt tegen de bare .status-badge/.box-regels elders in
   base.css die anders zouden meelekken). Tabelstijl staat in tables.css. */
.cl-hq { --hub-radius: 16px; }

.cl-hq .hub-hero {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--hub-radius);
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cl-hq .hub-hero h1 { margin: 0 0 0.4rem 0; font-size: 1.7rem; }
.cl-hq .hub-hero p { margin: 0; opacity: 0.85; font-size: 0.88rem; max-width: 40rem; }

.cl-hq .hub-links { display: flex; gap: 8px; flex-wrap: wrap; }

.cl-hq .hub-back {
    font-size: 0.8rem;
    color: var(--white);
    opacity: 0.9;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    transition: opacity var(--transition-base), background var(--transition-base);
}
.cl-hq .hub-back:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }

.cl-hq .msg {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    font-weight: 600;
    border: 1px solid #c3e6cb;
    background: #e6f7e6;
    color: #1a7a1a;
}

.cl-hq .hub-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 0;
}

.cl-hq .stat-tile {
    background: var(--white);
    border-radius: var(--hub-radius);
    border: 1px solid #e4e8f5;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 2px 10px rgba(10, 30, 64, 0.06);
}
.cl-hq .stat-tile .stat-value { font-size: 1.7rem; font-weight: 700; color: var(--primary-dark); line-height: 1.1; }
.cl-hq .stat-tile .stat-label { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.03em; }
.cl-hq .stat-tile.paid .stat-value { color: var(--accent-green); }
.cl-hq .stat-tile.open .stat-value { color: var(--accent-red); }

.cl-hq .box { margin-bottom: 1.2rem; }
.cl-hq .box h2 { margin-top: 0; }

.cl-hq .match-summary-box {
    background: #f7f8fc;
    border: 1px solid #e4e8f5;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-color);
}
.cl-hq .match-summary-box ul { margin: 6px 0 0; padding-left: 1.1rem; }
.cl-hq .match-summary-box li { margin-bottom: 2px; }

.cl-hq .missing-list { list-style: none; padding: 0; margin: 0; }
.cl-hq .missing-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eef0f6;
    color: var(--text-color);
    font-size: 0.9rem;
}
.cl-hq .missing-list li:last-child { border-bottom: none; }
.cl-hq .missing-list li span { color: var(--accent-orange); font-weight: 700; margin-right: 6px; }

.cl-hq .missing-remind-btn {
    display: inline-block;
    margin-top: 10px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.82rem;
}
.cl-hq .missing-remind-btn:hover { background: var(--primary-dark); }

.cl-hq .all-clear {
    color: #1a7a1a;
    background: #e6f7e6;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    padding: 14px;
}

.cl-hq .btn-toggle {
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--white);
}
.cl-hq .btn-toggle.is-paid { background: var(--accent-red); }
.cl-hq .btn-toggle.is-unpaid { background: var(--accent-green); }

/* text-transform/margin-bottom expliciet resetten: base.css definieert
   elders al een bare .status-badge (voor my_profile.php's betaalstatus) die
   anders in deze .cl-hq-variant zou meelekken. */
.cl-hq .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: none;
    margin-bottom: 0;
}
.cl-hq .status-badge.finished { background: #e6f7e6; color: #1a7a1a; }
.cl-hq .status-badge.pending { background: #fff4e5; color: #b45309; }

@media (max-width: 900px) {
    .cl-hq .hub-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .cl-hq .hub-stats { grid-template-columns: 1fr; }
    .cl-hq .hub-hero { flex-direction: column; align-items: flex-start; }
}
