/**
 * LearnDash Custom Enrollment Block Styles
 * Version: 1.3.1 - SmartLabel Academy Theme
 */

/* ============================================
   Main Container - Dark Theme - FULL WIDTH
   ============================================ */
.ld-custom-enrollment-block {
    background: linear-gradient(135deg, #00147f7a 0%, #00209f8f 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin: 0 !important; /* Forceer geen margin */
    padding: 0 !important; /* Forceer geen padding op het blok zelf */
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    width: 100% !important; /* Forceer full width */
    max-width: none !important; /* Verwijder max-width */
    box-sizing: border-box !important; /* Border is inclusief width */
    display: block !important;
}

/* Subtiele glow effect */
.ld-custom-enrollment-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

/* ============================================
   Content Layout
   ============================================ */
.ld-custom-enrollment-content {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

/* Layout voor ingeschreven gebruikers (zonder prijs) */
.ld-custom-enrollment-content.ld-enrolled-layout .ld-custom-enrollment-section {
    flex: 1 1 50%;
}

/* ============================================
   Sections
   ============================================ */
.ld-custom-enrollment-section {
    flex: 1;
    min-width: 200px;
    padding: 25px 30px;
    text-align: center;
    border-right: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background-color: r;
}

.ld-custom-enrollment-section:last-child {
    border-right: none;
}

.ld-custom-enrollment-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

/* ============================================
   Status Badges - SmartLabel Style
   ============================================ */
.ld-enrollment-status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    /*! background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); */
    margin: 0 auto;
}

/* Status kleuren - aangepast voor dark theme */
.ld-status-not-enrolled { 
    /*! background: linear-gradient(135deg, #ac291c 0%, #c30025 100%); */
}

.ld-status-enrolled { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.ld-status-completed { 
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.ld-status-prerequisite { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.ld-status-processing { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ============================================
   Price Display - Light text on dark
   ============================================ */
.ld-enrollment-price {
    font-size: 1.7em;
    font-weight: 700;
    color: #ffffff;
    /*! text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); */
    text-align: center;
    width: 100%;
}

.ld-enrollment-price-original {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    margin-right: 8px;
    display: inline-block;
}

/* --- NIEUW: Styling voor 'Powerd by' Logo --- */
.ld-enrollment-price.is-exclusive-logo {
    /* Reset de grote 'Gratis' tekststijl */
    font-size: 1rem;
    font-weight: normal;
    color: inherit;
    line-height: 1; /* Voorkom extra hoogte */
}

.ld-enrollment-price .ld-exclusive-logo {
    max-width: 150px; /* Pas dit aan naar wens */
    height: auto;
    display: block;
    margin: 5px auto 0 auto; /* Gecentreerd met een beetje ruimte */
}
/* --- EINDE NIEUW --- */


/* ============================================
   Buttons - SmartLabel Blue Style
   ============================================ */
.ld-enrollment-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    width: 100%;
}

/* Style LearnDash originele buttons */
.ld-enrollment-button-wrapper .learndash_join_button,
.ld-enrollment-button-wrapper .ld-button {
    display: inline-block !important;
    padding: 16px 40px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    margin: 0 !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4) !important;
    text-transform: none !important;
}

.ld-enrollment-button-wrapper .learndash_join_button:hover,
.ld-enrollment-button-wrapper .ld-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5) !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

/* Custom buttons (voor continue/certificate) */
.ld-enrollment-button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.ld-enrollment-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

/* Button varianten */
.ld-button-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.ld-button-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.ld-button-success {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.ld-button-success:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.ld-button-disabled {
    background: rgba(107, 114, 128, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* ============================================
   Progress Bar - Blue accent
   ============================================ */
.ld-enrollment-progress {
    width: 100%;
    margin-top: 20px;
}

.ld-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ld-progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ld-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

/* Animatie effect bij progress update */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8); }
}

.ld-progress-bar {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   Messages - Dark theme
   ============================================ */
.ld-enrollment-message {
    background: rgba(59, 130, 246, 0.1);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding: 1em;
    text-align: center;
    backdrop-filter: blur(10px);
}

.ld-enrollment-message p {
    margin: 0;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 500;
}

/* Message varianten */
.ld-enrollment-message.warning {
    background: rgba(36, 100, 251, 0.09);
    border-top-color: rgba(36, 90, 251, 0.3);
}

.ld-enrollment-message.warning p {
    color: #fff;
    margin-block-end: 0em;
}

.ld-enrollment-message.error {
    background: rgba(239, 68, 68, 0.1);
    border-top-color: rgba(239, 68, 68, 0.3);
}

.ld-enrollment-message.error p {
    color: #fca5a5;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .ld-custom-enrollment-section {
        border-right: none;
        border-bottom: 1px solid rgba(59, 130, 246, 0.15);
        min-width: 100%;
        padding: 30px 20px;
    }
    
    .ld-custom-enrollment-section:last-child {
        border-bottom: none;
    }
    
    .ld-enrollment-price {
        font-size: 36px;
    }
    
    .ld-enrollment-button-wrapper .learndash_join_button,
    .ld-enrollment-button-wrapper .ld-button,
    .ld-enrollment-button {
        padding: 14px 32px !important;
        font-size: 14px !important;
    }
}

/* ============================================
   Extra Features - SmartLabel Style
   ============================================ */

/* Override eventuele parent container restricties */
.ld-custom-enrollment-block {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Als het in een Elementor widget zit */
.elementor-widget-container .ld-custom-enrollment-block,
.elementor-shortcode .ld-custom-enrollment-block {
    width: 100% !important;
    max-width: 100% !important;
}

/* Als het in een LearnDash container zit */
.learndash-wrapper .ld-custom-enrollment-block,
.ld-course-wrapper .ld-custom-enrollment-block {
    width: 100% !important;
    max-width: 100% !important;
}

/* Glow effect op hover over hele blok */
.ld-custom-enrollment-block:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

/* Smooth transitions */
.ld-custom-enrollment-block,
.ld-enrollment-status-badge,
.ld-enrollment-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar voor als je het in een container gebruikt */
.ld-custom-enrollment-block::-webkit-scrollbar {
    width: 8px;
}

.ld-custom-enrollment-block::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.ld-custom-enrollment-block::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

.ld-custom-enrollment-block::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* ============================================
   Reset & Override Styles
   ============================================ */
/* Force full width - override Elementor/page builder styles */
.elementor-widget-container .ld-custom-enrollment-block,
.elementor-column .ld-custom-enrollment-block,
.wp-block-column .ld-custom-enrollment-block {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Reset any wrapper padding that might affect width */
.ld-custom-enrollment-block * {
    box-sizing: border-box;
}

/* Login modal styling is nu in smartlabel-login-modal.css */
