/* Leden, zoeken, jarigen, Spott'n en agenda (module leden). Alleen kleurvariabelen gebruiken. */

/* Ledenkaartjes */
.mc-photo { position: relative; display: inline-block; line-height: 0; }
.mc-photo .online-dot { position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; }
.member-card .meta .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* Keuzeknopjes (sorteren, geslacht, maanden) */
.leden-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-md); }
.leden-quick { display: flex; gap: var(--space-xs); }
.leden-quick input { flex: 1; min-width: 0; }

/* YourDay-overzicht */
.yd-title { font-size: var(--text-base); margin: 0; overflow-wrap: anywhere; }
.post-head .pill .icon { width: 12px; height: 12px; vertical-align: -1px; }

/* Jarigen */
.bday-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }

/* Zoeken */
.zoek-form { display: grid; gap: var(--space-md); }
.zoek-range { display: flex; align-items: center; gap: var(--space-xs); }
.zoek-range input { min-width: 0; }
.zoek-more summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.zoek-more[open] summary { margin-bottom: var(--space-sm); }
.zoek-more .field-row { margin-bottom: var(--space-sm); }
.zoek-form code { background: var(--surface-2); padding: 0 var(--space-2xs); border-radius: var(--radius-xs); }

/* Spott'n */
.spot-panels { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
.spot-panels h3 { font-size: var(--text-sm); margin-bottom: var(--space-xs); color: var(--head-text); }
.spot-now > p { text-align: center; } /* pasfoto, naam en boodschap gecentreerd; kop en lege staat links */
.spot-now > .spot-big { display: block; width: fit-content; margin-inline: auto; }
.spot-big { display: inline-block; line-height: 0; }
.spot-big .avatar { width: 160px; height: 160px; border-radius: var(--radius); box-shadow: 0 4px 14px rgb(0 0 0 / .15); }
.spot-now > p { margin-top: var(--space-xs); }
.spot-msg { font-style: italic; overflow-wrap: anywhere; }
.spot-mine { background: color-mix(in srgb, var(--primary) 12%, transparent); border-radius: var(--radius-sm); padding-left: var(--space-2xs); }
.spot-faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--space-sm) var(--space-xs); }
.spot-faces li { display: flex; flex-direction: column; align-items: center; gap: var(--space-2xs); min-width: 0; text-align: center; font-size: var(--text-sm); }
.spot-faces a { line-height: 0; }
.spot-faces .avatar { width: 72px; height: 72px; }
.spot-faces li > span { min-width: 0; max-width: 100%; line-height: 1.3; }
@media (max-width: 900px) {
  .spot-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spot-now { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .spot-panels { grid-template-columns: minmax(0, 1fr); }
  .spot-faces { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .spot-faces .avatar { width: 64px; height: 64px; }
}

/* Agenda */
:root { --ag-qh: var(--color-success); }
.agenda-legend { list-style: none; padding: 0; margin: 0 0 var(--space-sm); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); color: var(--muted); }
.agenda-legend li { display: flex; align-items: center; gap: var(--space-xs); }
.agenda-legend .icon, .agenda-bdays .icon { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.ai-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.ai-dot.ai-themadag, .ai-dot.ai-actie { background: var(--accent); }
.ai-dot.ai-meeting { background: var(--primary); }
.ai-dot.ai-qh { background: var(--ag-qh); }
.agenda { padding: 0; }
.agenda-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--head); color: var(--head-text); font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.agenda-head span { padding: var(--space-xs) var(--space-xs); }
.agenda-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.agenda-day { min-height: 100px; padding: var(--space-xs) var(--space-xs); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--text-xs); min-width: 0; overflow: hidden; }
.agenda-day:nth-child(7n) { border-right: 0; }
.agenda-day.is-weekend { background: var(--surface-2); }
.agenda-day.is-today { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); box-shadow: inset 0 0 0 2px var(--primary); }
.agenda-date { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-2xs); }
.agenda-date strong { font-size: var(--text-base); }
.agenda-day.is-today .agenda-date strong { color: var(--primary); }
.agenda-dow { display: none; color: var(--muted); text-transform: capitalize; }
.agenda-day .pill { font-size: var(--text-2xs); padding: 0 var(--space-xs); }
.agenda-item { display: flex; gap: var(--space-2xs); align-items: baseline; margin: 0 0 var(--space-3xs); line-height: 1.3; overflow-wrap: anywhere; }
.ai-time { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.agenda-bdays { display: flex; flex-wrap: wrap; gap: 0 var(--space-2xs); align-items: baseline; margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.agenda-bdays .icon { align-self: center; }
@media (max-width: 760px) {
  .agenda-head { display: none; }
  .agenda-grid { display: block; }
  .agenda-day { min-height: 0; border-right: 0; font-size: var(--text-sm); padding: var(--space-sm) var(--inset-panel); }
  .agenda-day.is-empty { display: none; }
  .agenda.is-quiet { display: none; }
  .agenda-dow { display: inline; }
}
