/**
 * Nun Slider - Frontend Styles
 */

/* Slider Container */
.nun-slider-block-container.is-fullwidth {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.nun-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.nun-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

/* Single Slide Mode */
.nun-slider-wrapper[data-slides-to-show="1"] .nun-slider-container {
    display: block;
}

.nun-slider-wrapper[data-slides-to-show="1"] .nun-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    z-index: 1;
}

.nun-slider-wrapper[data-slides-to-show="1"] .nun-slide.active {
    display: block;
    opacity: 1;
    z-index: 2;
}

/* Carousel Mode */
.nun-slider-wrapper[data-slides-to-show="2"] .nun-slide,
.nun-slider-wrapper[data-slides-to-show="3"] .nun-slide,
.nun-slider-wrapper[data-slides-to-show="4"] .nun-slide,
.nun-slider-wrapper[data-slides-to-show="5"] .nun-slide {
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.nun-slider-wrapper[data-slides-to-show="2"] .nun-slide { width: 50%; }
.nun-slider-wrapper[data-slides-to-show="3"] .nun-slide { width: 33.333%; }
.nun-slider-wrapper[data-slides-to-show="4"] .nun-slide { width: 25%; }
.nun-slider-wrapper[data-slides-to-show="5"] .nun-slide { width: 20%; }

/* Slide Background */
.nun-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.nun-slide-image,
.nun-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nun-slide-video iframe,
.nun-slide-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.nun-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Slide Content */
.nun-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.nun-slide-text {
    text-align: center;
    max-width: 800px;
    animation: nunSlideIn 1s ease-out;
}

@keyframes nunSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nun-slide-main-text {
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nun-slide-sub-text {
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nun-slide-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nun-slide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

/* Navigation Arrows */
.nun-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nun-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.nun-slider-prev { left: 30px; }
.nun-slider-next { right: 30px; }

/* Pagination */
.nun-slider-pagination {
    position: absolute;
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nun-slider-pagination.top-center {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.nun-slider-pagination.bottom-center {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.nun-slider-pagination.bottom-left {
    bottom: 30px;
    left: 30px;
}

.nun-slider-pagination.bottom-right {
    bottom: 30px;
    right: 30px;
}

.nun-slider-pagination.center-left {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    flex-direction: column;
}

.nun-slider-pagination.center-right {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    flex-direction: column;
}

.nun-pagination-item {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nun-pagination-dot {
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nun-pagination-item.active .nun-pagination-dot,
.nun-pagination-item:hover .nun-pagination-dot {
    transform: scale(1.2);
}

.nun-pagination-number {
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nun-slide-content {
        padding: 1rem;
    }
    
    .nun-slide-main-text {
        font-size: 2rem !important;
    }
    
    .nun-slide-sub-text {
        font-size: 1rem !important;
    }
    
    .nun-slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .nun-slider-prev { left: 15px; }
    .nun-slider-next { right: 15px; }
    
    .nun-slider-pagination {
        bottom: 15px;
    }
    
    /* Carousel responsive */
    .nun-slider-wrapper[data-slides-to-show="3"] .nun-slide,
    .nun-slider-wrapper[data-slides-to-show="4"] .nun-slide,
    .nun-slider-wrapper[data-slides-to-show="5"] .nun-slide {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .nun-slide-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .nun-slider-wrapper[data-slides-to-show="2"] .nun-slide,
    .nun-slider-wrapper[data-slides-to-show="3"] .nun-slide,
    .nun-slider-wrapper[data-slides-to-show="4"] .nun-slide,
    .nun-slider-wrapper[data-slides-to-show="5"] .nun-slide {
        width: 100%;
    }
}

/* Bootstrap Icons Support */
.bi::before {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
}
