/**
 * LearnDash Custom Navigation Styles
 * Versie: 1.0.0
 * 
 * BELANGRIJK: Pas kleuren en spacing aan naar wens.
 * Alle belangrijke variabelen staan bovenaan per sectie.
 */

/* ============================================
   VERBERG LEARNDASH'S STANDAARD NAVIGATIE
   ============================================ */

/* Verberg LearnDash's eigen [ld_navigation] op lessons */
.sfwd-lessons .learndash-shortcode-wrap-ld_navigation {
    display: none !important;
}

/* ============================================
   NAVIGATIE CONTAINER
   ============================================ */

.ld-custom-nav-wrapper {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.ld-custom-nav-container {
    display: flex;
    gap: 3em;
    align-items: stretch;
    justify-content: space-between;
    max-width: 100%;
}

/* ============================================
   NAVIGATIE KNOPPEN - BASIS STYLING
   ============================================ */

.ld-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border: none;
    border-radius: 30px;
    font-size: 0.8em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}

/* Clickable divs moeten zich gedragen als buttons */
.ld-nav-clickable {
    cursor: pointer;
}

.ld-nav-clickable:active {
    transform: scale(0.98);
}

.ld-nav-btn:focus {
    outline: 3px solid rgba(66, 153, 225, 0.5);
    outline-offset: 2px;
}

/* Icon styling */
.ld-nav-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.ld-nav-text {
    line-height: 1.2;
}

/* ============================================
   VORIGE KNOP KLEUREN
   Pas deze kleuren aan voor de "Vorige" knop
   ============================================ */

.ld-nav-prev {
    background: #093bff;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ld-nav-prev:hover:not(.ld-nav-disabled) {
    background: rgb(0, 24, 86);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ld-nav-prev:hover:not(.ld-nav-disabled) .ld-nav-icon {
    transform: translateX(-4px);
}

/* ============================================
   VOLGENDE KNOP KLEUREN
   Pas deze kleuren aan voor de "Volgende" knop
   ============================================ */

.ld-nav-next {
    background: #093bff;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ld-nav-next:hover:not(.ld-nav-disabled):not(.ld-nav-locked) {
    background: rgb(0, 24, 86);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ld-nav-next:hover:not(.ld-nav-disabled):not(.ld-nav-locked) .ld-nav-icon {
    transform: translateX(4px);
}

/* ============================================
   COMPLETE KNOP KLEUREN
   Pas deze kleuren aan voor de "Rond Af" knop
   ============================================ */

.ld-nav-complete {
    background: #28a745; /* Groen */
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.ld-nav-complete:hover:not(.ld-nav-completed) {
    background: #218838; /* Donkerder groen */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ld-nav-complete:hover:not(.ld-nav-completed) .ld-nav-icon {
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.5s ease;
}

/* Loading state */
.ld-nav-complete.loading {
    pointer-events: none;
    opacity: 0.7;
    cursor: wait;
}

.ld-nav-complete.loading .ld-nav-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   VOLTOOID STATE KLEUREN
   Pas deze kleuren aan voor voltooide items
   ============================================ */

.ld-nav-completed {
    background: #20c997; /* Teal groen */
    opacity: 0.9;
}

/* Maak completed clickable voor toggle functie */
.ld-nav-completed.ld-nav-clickable {
    cursor: pointer;
}

.ld-nav-completed.ld-nav-clickable:hover {
    background: #1ba87f;
    transform: translateY(-2px);
    opacity: 1;
}

.ld-nav-completed .ld-nav-icon {
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0%, 50% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ============================================
   LOCKED STATE KLEUREN
   Pas deze kleuren aan voor vergrendelde items
   ============================================ */

.ld-nav-locked {
    background: #dc3545; /* Rood */
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.7;
}

.ld-nav-locked:hover {
    background: #c82333; /* Donkerder rood */
    transform: none;
}

.ld-nav-locked .ld-nav-icon {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================
   DISABLED STATE KLEUREN
   Pas deze kleuren aan voor uitgeschakelde knoppen
   ============================================ */

.ld-nav-disabled {
    background: #e9ecef; /* Licht grijs */
    color: #6c757d; /* Donker grijs tekst */
    cursor: not-allowed;
    opacity: 0.6;
}

.ld-nav-disabled:hover {
    background: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* ============================================
   SUCCESS BOX (custom shortcode)
   Pas deze styling aan voor de success message box
   ============================================ */

.ld-success-box {
    margin: 30px 0;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ld-success-box-content {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.ld-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    animation: successPop 0.6s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ld-success-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #fff;
}

.ld-success-message {
    font-size: 18px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.9);
}

.ld-success-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #093bff;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ld-success-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #218838;
}

.ld-success-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.ld-success-button:hover .ld-success-arrow {
    transform: translateX(5px);
}

.ld-success-next-title {
    margin: 15px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Responsive voor success box */
@media screen and (max-width: 768px) {
    .ld-success-box-content {
        padding: 30px 20px;
    }
    
    .ld-success-title {
        font-size: 24px;
    }
    
    .ld-success-message {
        font-size: 16px;
    }
    
    .ld-success-button {
        font-size: 16px;
        padding: 14px 24px;
    }
}

/* ============================================
   MELDINGEN
   Pas deze kleuren aan voor success/error meldingen
   ============================================ */

.ld-nav-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Success melding - Groen */
.ld-nav-message-success {
    background: #28a745;
    color: #ffffff;
    border-left: 4px solid #1e7e34;
}

/* Error melding - Rood */
.ld-nav-message-error {
    background: #dc3545;
    color: #ffffff;
    border-left: 4px solid #bd2130;
}

/* Warning melding - Oranje */
.ld-nav-message-warning {
    background: #ffc107;
    color: #000000;
    border-left: 4px solid #e0a800;
}

/* Melding verdwijnt automatisch */
.ld-nav-message.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBIEL
   Pas deze breakpoints aan indien nodig
   ============================================ */

/* Tablets en kleiner */
@media screen and (max-width: 768px) {
    .ld-custom-nav-container {
        flex-direction: column;
        gap: 3em;   }
    
    .ld-nav-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .ld-nav-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Kleine mobiele telefoons */
@media screen and (max-width: 480px) {
    .ld-custom-nav-wrapper {
        margin: 20px 0;
        padding: 15px;
    }
    
    .ld-nav-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .ld-nav-icon {
        font-size: 16px;
    }
}

/* ============================================
   TOEGANKELIJKHEID
   Extra styling voor toegankelijkheid
   ============================================ */

/* Focus states voor toetsenbord navigatie */
.ld-nav-btn:focus-visible {
    outline: 3px solid #4299e1;
    outline-offset: 3px;
}

/* High contrast mode ondersteuning */
@media (prefers-contrast: high) {
    .ld-nav-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion voor gebruikers die animaties uit hebben */
@media (prefers-reduced-motion: reduce) {
    .ld-nav-btn,
    .ld-nav-icon,
    .ld-nav-message {
        animation: none;
        transition: none;
    }
    
    .ld-nav-btn:hover {
        transform: none;
    }
}

/* ============================================
   PRINT STYLING
   Verberg navigatie bij printen
   ============================================ */

@media print {
    .ld-custom-nav-wrapper {
        display: none;
    }
}

/* ============================================
   EXTRA UTILITIES
   Handige hulpklassen
   ============================================ */

/* Verberg tekst op hele kleine schermen, toon alleen icons */
@media screen and (max-width: 360px) {
    .ld-nav-text {
        font-size: 13px;
    }
}

/* Dark mode ondersteuning (optioneel) */
@media (prefers-color-scheme: dark) {
    .ld-custom-nav-wrapper {
        background: ;
    }
    
    .ld-nav-disabled {
        background: #2d2d2d;
        color: #8a8a8a;
    }
}