/* ================================================================
   AIE School LMS — Cursus Frontend Styles
   Gebruikt door shortcodes: aie_cursusinfo, aie_lessen, aie_toegang, aie_inschrijfknop
   Kleuren: #5b4fcf (accent) · #27187E (donker) · thema-neutraal verder
   ================================================================ */

/* ── Cursusinfo ─────────────────────────────────────────────── */

.aie-cursusinfo {
    margin-bottom: 2rem;
}

.aie-cursusinfo__categorie {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #5b4fcf;
    margin-bottom: .6rem;
}

.aie-cursusinfo__titel {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #27187E;
    margin: 0 0 .75rem;
    line-height: 1.25;
}

.aie-cursusinfo__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-bottom: 1.25rem;
}

.aie-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: 14px;
    color: #6b7280;
}

.aie-cursusinfo__beschrijving {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.aie-cursusinfo__beschrijving p { margin: 0 0 .75em; }

/* ── Badges ─────────────────────────────────────────────────── */

.aie-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.aie-badge--gratis   { background: #dcfce7; color: #166534; }
.aie-badge--betaald  { background: #ede9fe; color: #4c1d95; }
.aie-badge--preview  { background: #e0e7ff; color: #3730a3; }
.aie-badge--concept  { background: #fef3c7; color: #92400e; }

/* ── Lessenlijst ─────────────────────────────────────────────── */

.aie-lessen {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.aie-lessen__header {
    background: #f9fafb;
    padding: .75rem 1.25rem;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: .4rem;
}

.aie-lessen__totaalduur { font-weight: 400; color: #9ca3af; }

.aie-lessen__lijst {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aie-les-rij {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    transition: background .15s;
}

.aie-les-rij:last-child { border-bottom: none; }

.aie-les-rij--open:hover { background: #fafafa; }

.aie-les-rij__icoon {
    flex-shrink: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aie-les-rij--open  .aie-les-rij__icoon { color: #5b4fcf; }
.aie-les-rij--slot  .aie-les-rij__icoon { color: #d1d5db; }

.aie-les-rij__titel {
    flex: 1;
    color: #111827;
}

.aie-les-rij--slot .aie-les-rij__titel { color: #9ca3af; }

.aie-les-rij__titel a {
    color: inherit;
    text-decoration: none;
}
.aie-les-rij__titel a:hover { color: #5b4fcf; }

.aie-les-rij__badges {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.aie-les-rij__duur {
    font-size: 13px;
    color: #9ca3af;
}

.aie-lessen__leeg {
    color: #9ca3af;
    font-style: italic;
    padding: 1rem;
}

/* ── Toegangsblok: open ──────────────────────────────────────── */

.aie-toegang--open {
    margin-bottom: 2rem;
}

.aie-toegang__prive {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

/* ── Toegangsblok: slot (lock-scherm) ───────────────────────── */

.aie-toegang--slot {
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.aie-slot__inhoud {
    padding: 2.5rem 2rem;
    text-align: center;
    background: #fafafa;
}

.aie-slot__icoon {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.aie-slot__beschrijving {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    text-align: left;
}

.aie-slot__tekst {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 1rem;
}

.aie-slot__betaal-info {
    font-size: 13px;
    color: #9ca3af;
    margin-top: .5rem;
}

.aie-slot__acties {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

/* ── Knoppen ─────────────────────────────────────────────────── */

.aie-knop {
    display: inline-block;
    padding: .7rem 1.6rem;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .15s, transform .1s;
    line-height: 1.4;
}

.aie-knop:hover  { opacity: .88; }
.aie-knop:active { transform: scale(.98); }

.aie-knop--primair {
    background: #5b4fcf;
    color: #fff;
}

.aie-knop--secundair {
    background: transparent;
    color: #5b4fcf;
    border: 1.5px solid #5b4fcf;
}

.aie-knop--betaal {
    background: #27187E;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
    .aie-slot__inhoud    { padding: 1.75rem 1.25rem; }
    .aie-les-rij         { padding: .75rem 1rem; }
    .aie-lessen__header  { padding: .65rem 1rem; }
}

/* =============================================================================
   Cursuspagina — certificaat & badges (aie_cursusinfo)
   ============================================================================= */

.aie-cursusinfo__rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.aie-reward {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.aie-reward--certificate {
    border-color: #fbbf24;
    background-color: #fffbeb;
    color: #92400e;
}

.aie-reward__icon {
    font-size: 17px;
    line-height: 1;
}

.aie-reward__label {
    font-weight: 600;
}

.aie-badge-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 3px;
}

.aie-badge-emoji {
    font-size: 18px;
    line-height: 1;
}

/* =============================================================================
   [aie_voortgang] — voortgangsbalk
   ============================================================================= */

.aie-voortgang {
    padding: 14px 18px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.aie-voortgang__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.aie-voortgang__label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.aie-voortgang__stats {
    font-size: 12px;
    color: #6b7280;
}

.aie-voortgang__bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 5px;
}

.aie-voortgang__fill {
    height: 100%;
    background-color: #5b4fcf;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.aie-voortgang__percentage {
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #5b4fcf;
}
