/* SLA Course Showcase - Desktop scroll-spy versie */

/* ================================
   WRAPPER - Dit element krijgt de grote hoogte
   ================================ */

.sla-showcase-wrapper {
    position: relative !important;
    width: 100% !important;
    /* Hoogte wordt door JS gezet op basis van aantal kaarten */
}

@media (max-width: 1024px) {
    .sla-showcase-wrapper {
        display: none !important;
    }
}

/* ================================
   MAIN CONTAINER - Deze is STICKY
   ================================ */

.sla-showcase-wrapper .sla-showcase {
    position: sticky !important;
    top: 10vh !important;
    display: grid !important;
    grid-template-columns: minmax(250px, 300px) 1fr !important;
    gap: var(--sla-spacing-2xl, 3rem) !important;
    width: 90% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: var(--sla-spacing-xl, 2rem) 0 !important;
    height: 80vh !important;
    max-height: 700px !important;
    box-sizing: border-box !important;
    align-items: center !important;
}

/* ================================
   NAVIGATIE (LINKS)
   ================================ */

.sla-showcase-wrapper .sla-showcase__nav {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--sla-spacing-sm, 0.5rem) !important;
    height: auto !important;
}

.sla-showcase-wrapper .sla-showcase__nav-item {
    font-family: var(--sla-font-family-heading, inherit) !important;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem) !important;
    font-weight: var(--sla-font-weight-medium, 500) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    text-decoration: none !important;
    text-align: left !important;
    line-height: 1.4 !important;
    padding: var(--sla-spacing-xs, 0.25rem) 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    transition: color 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
}

.sla-showcase-wrapper .sla-showcase__nav-item:hover {
    color: rgba(255, 255, 255, 0.6) !important;
    background: transparent !important;
}

.sla-showcase-wrapper .sla-showcase__nav-item.is-active {
    color: #fff !important;
    font-weight: var(--sla-font-weight-semibold, 600) !important;
}

/* ================================
   CARDS CONTAINER
   ================================ */

.sla-showcase-wrapper .sla-showcase__cards {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
}

/* ================================
   CARD STYLING
   ================================ */

.sla-showcase-wrapper .sla-showcase__card {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    background: linear-gradient(145deg, rgba(43, 48, 194, 0.5) 0%, rgba(30, 35, 120, 0.6) 100%) !important;
    border-radius: var(--sla-radius-xl, 1rem) !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    text-decoration: none !important;
    
    /* Verborgen staat */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.98) !important;
    filter: blur(10px) !important;
    pointer-events: none !important;
    
    transition: 
        opacity 0.5s ease,
        visibility 0.5s ease,
        transform 0.5s ease,
        filter 0.5s ease !important;
}

/* Actieve kaart */
.sla-showcase-wrapper .sla-showcase__card.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

/* Hover op actieve kaart */
.sla-showcase-wrapper .sla-showcase__card.is-active:hover {
    background: linear-gradient(145deg, rgba(50, 55, 220, 0.6) 0%, rgba(35, 40, 140, 0.7) 100%) !important;
}

/* ================================
   CARD BODY (linker deel)
   ================================ */

.sla-showcase-wrapper .sla-showcase__body {
    flex: 1 !important;
    padding: var(--sla-spacing-xl, 2rem) var(--sla-spacing-2xl, 2.5rem) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: var(--sla-spacing-md, 1rem) !important;
    min-width: 0 !important;
}

.sla-showcase-wrapper .sla-showcase__title {
    margin: 0 !important;
    font-family: var(--sla-font-family-heading, inherit) !important;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.2 !important;
}

.sla-showcase-wrapper .sla-showcase__tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

.sla-showcase-wrapper .sla-showcase__tag {
    display: inline-block !important;
    padding: 4px 12px !important;
    background: rgba(13, 5, 36, 0.2) !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-transform: uppercase !important;
}

.sla-showcase-wrapper .sla-showcase__short {
    margin: 0 !important;
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6 !important;
}

.sla-showcase-wrapper .sla-showcase__counts {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

.sla-showcase-wrapper .sla-showcase__count {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    padding: 6px 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Review */
.sla-showcase-wrapper .sla-showcase__review {
    margin-top: auto !important;
    padding-top: var(--sla-spacing-md, 1rem) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.sla-showcase-wrapper .sla-showcase__review-author {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.sla-showcase-wrapper .sla-showcase__review-photo {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.sla-showcase-wrapper .sla-showcase__review-name {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.sla-showcase-wrapper .sla-showcase__review-title {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* CTA */
.sla-showcase-wrapper .sla-showcase__cta,
.sla-showcase-wrapper .sla-showcase__cta-solo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, gap 0.3s ease !important;
}

.sla-showcase-wrapper .sla-showcase__cta-solo {
    margin-top: auto !important;
    padding-top: var(--sla-spacing-md, 1rem) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sla-showcase-wrapper .sla-showcase__card.is-active:hover .sla-showcase__cta,
.sla-showcase-wrapper .sla-showcase__card.is-active:hover .sla-showcase__cta-solo {
    opacity: 1 !important;
}

.sla-showcase-wrapper .sla-showcase__arrow {
    transition: transform 0.3s ease !important;
}

.sla-showcase-wrapper .sla-showcase__card.is-active:hover .sla-showcase__arrow {
    transform: translateX(4px) !important;
}

/* ================================
   THUMBNAIL (rechter deel)
   ================================ */

.sla-showcase-wrapper .sla-showcase__thumb {
    width: 45% !important;
    min-width: 300px !important;
    background-size: cover !important;
    background-position: center !important;
    flex-shrink: 0 !important;
    transition: transform 0.5s ease !important;
}

.sla-showcase-wrapper .sla-showcase__card.is-active:hover .sla-showcase__thumb {
    transform: scale(1.03) !important;
}

/* ================================
   CTA CARD (laatste kaart)
   ================================ */

.sla-showcase-wrapper .sla-showcase__card--cta {
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

.sla-showcase-wrapper .sla-showcase__cta-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 2rem !important;
    text-align: center !important;
}

.sla-showcase-wrapper .sla-showcase__cta-icon {
    width: 72px !important;
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #3b82f6 !important;
}

.sla-showcase-wrapper .sla-showcase__cta-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
}

.sla-showcase-wrapper .sla-showcase__cta-text {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    max-width: 400px !important;
    margin: 0 !important;
}

.sla-showcase-wrapper .sla-showcase__cta-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 28px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.sla-showcase-wrapper .sla-showcase__card--cta.is-active:hover .sla-showcase__cta-button {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* ================================
   EDITOR PREVIEW
   ================================ */

.editor-styles-wrapper .sla-showcase-wrapper .sla-showcase {
    position: relative !important;
    height: auto !important;
    min-height: 500px !important;
}

.editor-styles-wrapper .sla-showcase-wrapper .sla-showcase__card {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
}

.editor-styles-wrapper .sla-showcase-wrapper .sla-showcase__card:not(:first-of-type) {
    display: none !important;
}
