/* ============================================================
   ASSERTIVITEIT WIDGET  –  assertiviteit-widget.css
   ============================================================ */


/* ── Sectie wrapper ── */
.aw-sectie {
    text-align: center;
    padding: 60px 20px 40px;
}

.aw-sectie h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c2c2a;
    margin-bottom: 10px;
}

.aw-intro {
    font-size: 15px;
    color: #222;
    margin-bottom: 28px;
}


/* ── Tab knoppen ── */
.aw-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.aw-tab {
    padding: 8px 20px;
    border-radius: 24px;
    border: 1px solid #ccc;
    background: transparent;
    color: #222;
    font-size: 14px;
    cursor: pointer;
    background-color: rgba(248, 231, 192, 0.85);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.aw-tab:hover {
    border-color: #999;
    color: #222;
}

.aw-tab.actief {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
}


/* ── Panelen ── */
.aw-paneel {
    display: none;
    max-width: 680px;
    margin: 0 auto;
}

.aw-paneel.actief {
    display: block;
}


/* ── Slider container ── */
.aw-slider-wrap {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 10px;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    border: 1px solid #ddd;
}


/* ── Voor- en na-vlak ── */
.aw-voor,
.aw-na {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Na-vlak: clipt op breedte – JS past dit aan */
.aw-na {
    width: 50%;
    overflow: hidden;
}

/* Afbeeldingen – gebruik deze stijl als je <img> toevoegt */
.aw-voor img,
.aw-na img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Na-afbeelding: vaste breedte zodat hij niet mee krimpt */
.aw-na img {
    width: 680px;
    max-width: none;
}


/* ── Kleurplaceholders (vervang door <img> zodra foto's beschikbaar zijn) ── */
.aw-ph {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
}

.aw-ph-voor {
    background: #c0392b;
}

.aw-ph-na {
    background: #27ae60;
    width: 680px;
}

.aw-ph-titel {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.aw-ph-tekst {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.5;
    max-width: 220px;
}


/* ── Verticale scheidingslijn ── */
.aw-lijn {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

/* Ronde greep op de lijn */
.aw-greep {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
}


/* ── Labels Voor / Na op het beeld ── */
.aw-label {
    position: absolute;
    bottom: 14px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    pointer-events: none;
}

.aw-label-voor {
    left: 14px;
    background: rgba(0, 0, 0, 0.50);
    color: #fff;
}

.aw-label-na {
    right: 14px;
    background: rgba(255, 255, 255, 0.85);
    color: #222;
}


/* ── Range slider ── */
.aw-range-rij {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
}

.aw-range-rij span {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.aw-range-rij input[type="range"] {
    flex: 1;
    cursor: pointer;
}


/* ── Onderschriften ── */
.aw-captions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    text-align: left;
}

.aw-cap {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aw-cap strong {
    font-size: 14px;
    color: #2c2c2a;
}

.aw-cap p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.aw-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    align-self: flex-start;
}

.aw-badge-voor {
    background: #FDECEA;
    color: #a93226;
}

.aw-badge-na {
    background: #E9F7EF;
    color: #1e8449;
}


/* ── CTA knop ── */
.aw-cta {
    margin-top: 36px;
}


/* ── Responsive ── */
@media (max-width: 600px) {
    .aw-slider-wrap {
        height: 260px;
    }

    .aw-captions {
        grid-template-columns: 1fr;
    }

    .aw-tabs {
        gap: 6px;
    }

    .aw-tab {
        font-size: 13px;
        padding: 7px 14px;
    }
}