/* Lumina Theme - Slideshow Component */

/* ========================================
   NAVIGATION PROTECTION FIXES
======================================== */

/* Ensure header/navigation has highest z-index */
.lumina-header,
.lumina-header-simplified,
nav,
header {
    z-index: 100 !important; /* Much higher than slideshow z-index: 30 */
}

/* ========================================
   SLIDESHOW BASE STYLES
======================================== */
.lumina-slideshow {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #f8f9fa;
}

/* Create a protected header zone */
.lumina-slideshow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px; /* Adjust to match your header height */
    pointer-events: none; /* This area won't capture clicks */
    z-index: 99; /* Just below header but above slideshow content */
    background: transparent;
}

.lumina-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Slide container doesn't capture clicks */
}

/* Allow specific interactive elements */
.lumina-slide a,
.lumina-slide button,
.lumina-slide .lumina-btn-primary,
.lumina-slide .lumina-btn-secondary,
.lumina-slide .lumina-nav-arrow {
    pointer-events: auto;
}

.lumina-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none; /* Prevent capturing clicks - CRITICAL FIX */
}

/* ========================================
   SLIDESHOW OVERLAYS
======================================== */
.lumina-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none; /* Prevent capturing clicks - CRITICAL FIX */
}

/* ========================================
   SLIDESHOW CONTENT
======================================== */
.lumina-slide-content {
    position: relative;
    z-index: 20;
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none; /* Container doesn't capture clicks */
}

.lumina-slide-content * {
    pointer-events: auto; /* Child elements can capture clicks */
}

.lumina-content-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Enhanced content readability */
.lumina-content-container > * {
    position: relative;
    z-index: 10;
}

/* Text content */
.lumina-text-content {
    color: white;
    max-width: 600px;
}

.lumina-pre-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.lumina-pre-heading-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.lumina-main-heading {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@media (min-width: 640px) {
    .lumina-main-heading {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .lumina-main-heading {
        font-size: 4.5rem;
    }
}

.lumina-heading-divider {
    width: 4rem;
    height: 0.25rem;
    background: var(--primary);
    border-radius: 0.125rem;
    transform-origin: left;
}

.lumina-subtitle {
    font-size: 1.125rem !important;
    line-height: 1.75 !important;
    color: white !important;
    margin: 0 auto 2rem auto !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 1.5rem 2rem !important;
    border-radius: 0.75rem !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    display: inline-block !important;
    max-width: 600px !important;
}

/* ========================================
   SLIDESHOW BUTTONS
======================================== */
.lumina-btn-primary,
.lumina-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    pointer-events: auto !important;
    z-index: 25;
    position: relative;
}

.lumina-btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lumina-btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lumina-btn-secondary {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.lumina-btn-secondary:hover {
    background-color: white;
    color: #333;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lumina-btn-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.lumina-btn-primary:hover .lumina-btn-arrow,
.lumina-btn-secondary:hover .lumina-btn-arrow {
    transform: translateX(0.25rem);
}

/* ========================================
   SLIDESHOW NAVIGATION
======================================== */
.lumina-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.lumina-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lumina-nav-prev {
    left: 1.5rem;
}

.lumina-nav-next {
    right: 1.5rem;
}

.lumina-nav-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ========================================
   SLIDESHOW PROGRESS BAR
======================================== */
.lumina-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    z-index: 30;
    pointer-events: none;
}

.lumina-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.1s ease;
}

/* ========================================
   SLIDESHOW COUNTER
======================================== */
.lumina-slide-counter {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 30;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.75rem 1.25rem;
    pointer-events: none;
}

.lumina-counter-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.lumina-counter-divider {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.25rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .lumina-slideshow::before {
        height: 64px; /* Smaller header on mobile */
    }
    
    .lumina-slideshow {
        min-height: 500px;
    }
    
    .lumina-main-heading {
        font-size: 2.25rem;
    }
    
    .lumina-subtitle {
        font-size: 1rem;
    }
    
    .lumina-nav-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .lumina-nav-arrow svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .lumina-nav-prev {
        left: 1rem;
    }
    
    .lumina-nav-next {
        right: 1rem;
    }
    
    .lumina-slide-counter {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 640px) {
    .lumina-content-container {
        padding: 0 10px;
    }
    
    .lumina-main-heading {
        font-size: 2rem;
    }
    
    .lumina-subtitle {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border-radius: 0.5rem;
    }
    
    .lumina-pre-heading {
        font-size: 0.8125rem;
        padding: 0.625rem 1.25rem;
    }
    
    .lumina-btn-primary,
    .lumina-btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.925rem;
        justify-content: center;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */
.lumina-nav-arrow:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* ========================================
   REDUCED MOTION SUPPORT
======================================== */
@media (prefers-reduced-motion: reduce) {
    .lumina-slide,
    .lumina-slide-bg,
    .lumina-nav-arrow,
    .lumina-btn-primary,
    .lumina-btn-secondary,
    .lumina-progress-fill {
        transition: none !important;
        animation: none !important;
    }
    
    .lumina-pre-heading-dot {
        animation: none !important;
    }
}