/**
 * Nel GLB Product Slider - Styles
 */

/* Slider Container */
.nel-glb-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Slider Track */
.nel-glb-slider[data-slider] {
    display: flex;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.nel-glb-slider[data-slider]:active {
    cursor: grabbing;
}

/* Individual Slides */
.nel-glb-slide {
    flex-shrink: 0;
    /* Width is controlled by Elementor settings */
    /* Padding (gap) is controlled by Elementor settings */
}

.nel-glb-slide-inner {
    width: 100%;
    height: 100%;
}

/* Canvas Wrapper */
.nel-glb-canvas-wrapper {
    position: relative;
    width: 100%;
    /* Height is controlled by Elementor settings */
    background: #0a0e27;
    border-radius: 8px;
    overflow: hidden;
}

.nel-glb-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Loading State */
.nel-glb-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 39, 0.95);
    color: #ffffff;
    z-index: 10;
}

.nel-glb-loading p {
    margin-top: 1rem;
    font-size: 14px;
    opacity: 0.8;
}

/* Loading Spinner */
.nel-glb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00d4ff; /* Nel brand blue */
    border-radius: 50%;
    animation: nel-spinner-rotate 1s linear infinite;
}

@keyframes nel-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Content Wrapper */
.nel-glb-slide-content-wrapper {
    padding: 1.5rem 0;
}

.nel-glb-slide-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #333;
}

.nel-glb-slide-content {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.nel-glb-slide-content p {
    margin: 0 0 1rem 0;
}

.nel-glb-slide-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nel-glb-slide-title {
        font-size: 20px;
    }
    
    .nel-glb-slide-content {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .nel-glb-canvas-wrapper {
        border-radius: 6px;
    }
    
    .nel-glb-slide-content-wrapper {
        padding: 1rem 0;
    }
    
    .nel-glb-slide-title {
        font-size: 18px;
        margin-bottom: 0.5rem;
    }
    
    .nel-glb-slide-content {
        font-size: 13px;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .nel-glb-slider[data-slider] {
        cursor: default;
    }
    
    .nel-glb-slider[data-slider]:active {
        cursor: default;
    }
}

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .nel-glb-spinner {
        animation: none;
        border-top-color: #00d4ff;
        opacity: 0.5;
    }
}

/* Print Styles */
@media print {
    .nel-glb-slider-wrapper {
        overflow: visible;
    }
    
    .nel-glb-slider[data-slider] {
        display: block;
    }
    
    .nel-glb-slide {
        width: 100% !important;
        padding: 0 !important;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .nel-glb-canvas-wrapper {
        display: none;
    }
}
