/* ============================================================
   publiek/prestaties.css - het tabje Achievements onder de
   speler: per achievement een vakje met een kort filmpje.
   Hoort bij templates/public/delen/_prestaties.html. De rij
   tabjes zelf staat in hoofdstukken.css.
   ============================================================ */

.prestaties {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.prestaties li { display: flex; min-width: 0; }

/* Meer dan acht: een vak van ruim twee rijen hoog waarin je schuift,
   net als een lange lijst hoofdstukken. */
.prestaties-lang {
    max-height: 560px;
    padding-right: 8px;          /* ruimte voor de schuifbalk */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #6d4df0 #10143c;
}

.prestatie {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--rand);
    border-radius: var(--rond-klein);
    background: #0e1338;
    color: var(--tekst);
    text-decoration: none;
    overflow: hidden;
    transition: border-color .15s, background .15s;
}
.prestatie:hover { border-color: #6d4df2; background: #141a4a; }
/* het filmpje dat nu in de speler staat */
.prestatie.nu { border-color: #6d4df2; background: #1a1658; box-shadow: 0 0 14px rgba(109, 77, 242, .35); }

.prestatie-beeld {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2a2f7a, #5b3fd6);
    overflow: hidden;
}
.prestatie-beeld img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prestatie-speel {
    position: absolute;
    left: 50%; top: 50%;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(6, 8, 24, .72);
    color: #fff;
    transform: translate(-50%, -50%);
    transition: background .15s;
}
.prestatie:hover .prestatie-speel { background: #6d28d9; }
.prestatie-duur {
    position: absolute;
    right: 6px; bottom: 6px;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.prestatie-naam { padding: 10px 12px 0; font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.prestatie-uitleg { padding: 3px 12px 0; font-size: 12.5px; color: var(--tekst-zacht); overflow-wrap: anywhere; }
.prestatie-naam:last-child,
.prestatie-uitleg:last-child { padding-bottom: 12px; }

@media (max-width: 1100px) { .prestaties { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .prestaties { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .prestaties-lang { max-height: 520px; }
    .prestatie-naam { padding: 8px 10px 0; font-size: 13.5px; }
    .prestatie-uitleg { padding: 3px 10px 0; }
    .prestatie-speel { width: 38px; height: 38px; }
}
