/* --- Voltooid Modal Styling --- */
#completed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 83, 92, 0.85); /* Je primaire kleur met transparantie */
    z-index: 20000; /* Hoger dan fullscreen video */
    display: none; /* Standaard verborgen */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#completed-overlay.overlay--visible {
    display: flex;
    opacity: 1;
}

.overlay-content--completed {
    background: #ffffff;
    width: 100%;
    max-width: 420px; /* Mooi smal kaartje */
    border-radius: 20px;
    padding: 30px 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#completed-overlay.overlay--visible .overlay-content--completed {
    transform: translateY(0);
}

.completed-title {
    font-family: 'Comfortaa', sans-serif;
    color: var(--kleur-primair, #1A535C);
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.completed-subtitle {
    font-size: 1rem;
    color: #FFC400; /* Je accent geel */
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.completed-image-wrapper {
    background: #f4f4f4;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* Zorgt dat de afbeelding niet verspringt tijdens laden */
    min-height: 200px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.completed-img {
    width: 100%;
    height: auto;
    display: block;
}

.completed-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Knoppen Styling in de modal */
.completed-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary-action {
    background-color: var(--kleur-primair, #1A535C);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none; /* Voor als het een <a> is */
}

.btn-primary-action:hover {
    background-color: #123f46;
    transform: scale(1.02);
}

.btn-secondary-action {
    background: transparent;
    color: #888;
    border: none;
    padding: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.overlay-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.overlay-close:hover {
    background: #e0e0e0;
    color: #333;
}


/* Minimale CSS voor de modal (voeg toe aan je stylesheet) */
.overlay-content--completed {
    text-align: center;
    max-width: 500px;
    padding: 30px 20px;
}
.completed-image-wrapper {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #f0f0f0;
    min-height: 200px; /* Voorkom verspringen */
}
.completed-img {
    width: 100%;
    height: auto;
    display: block;
}
.completed-title {
    color: var(--kleur-primair);
    font-family: 'Comfortaa', sans-serif;
    margin-bottom: 10px;
}
.completed-text {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}
/* --- Bestaande CSS behouden, voeg dit toe/pas aan: --- */

.completed-image-wrapper {
    position: relative; /* Cruciaal voor de absolute knop */
    background: #f4f4f4;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 15px auto; /* Iets minder marge onderkant */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* De Overlay Share Knop (Linksonder) */
.share-btn-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9); /* Wit met tikje transparantie */
    color: var(--kleur-primair, #1A535C);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}

.share-btn-overlay:hover {
    transform: scale(1.05);
    background: #ffffff;
}

.share-btn-overlay i {
    color: #FFC400; /* Accentkleur voor icoon */
}

/* Jouw CSS voor de sluiten link */
.text-link-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--kleur-primair, #1A535C);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px; /* Iets meer ruimte boven de link */
    background: none;
    border: none;
    cursor: pointer;
}

.text-link-small:hover {
    gap: 10px;
}