/* ARKOD Custom Slider - Frontend Styles */
.arkod-custom-slider, .arkod-slider-placeholder{
    height: 64vh !important;
}
.arkod-slider-placeholder{
    display: flex !important;
}
.arkod-slider-placeholder .slide-picture{
    width: 100% !important;
}
.arkod-slider-placeholder .slide-picture img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ========== Navigation Arrows - HIDDEN ========== */
.arkod-custom-slider .swiper-button-prev,
.arkod-custom-slider .swiper-button-next {
    display: none !important;
}

/* ========== Pagination Bullets - HIDDEN ========== */
.arkod-custom-slider .swiper-pagination {
    display: none !important;
}

/* ========== Swiper Container ========== */
.arkod-custom-slider .swiper {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color, #000);
    position: relative;
    overflow: hidden;
}

/* ========== Wrapper - CRITICAL for transitions ========== */
.arkod-custom-slider .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform !important;
    transition-timing-function: ease-out !important;
    box-sizing: content-box;
    /* GPU acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ========== Slides ========== */
.arkod-custom-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    /* GPU acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* ========== Picture & Images ========== */
.arkod-custom-slider .swiper-slide picture {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.arkod-custom-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0.75px);
    display: block;
}

/* Lazy images transition */
.arkod-custom-slider .swiper-slide img.swiper-lazy {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.arkod-custom-slider .swiper-slide img.swiper-lazy-loaded {
    opacity: 1;
}

/* ========== Lazy Preloader ========== */
.arkod-custom-slider .swiper-lazy-preloader {
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    transform-origin: 50%;
    animation: swiper-preloader-spin 1s infinite linear;
    box-sizing: border-box;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
}

@keyframes swiper-preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== Content Container ========== */
.arkod-custom-slider .content-container {
    position: absolute;
    height: 400px;
    max-width: 520px;
    width: 100%;
    font-size: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    letter-spacing: 1px;
    z-index: 10;
    /* Prevent content from blocking navigation */
    pointer-events: none;
}

.arkod-custom-slider .content-container * {
    pointer-events: auto;
}

/* ========== Slide Text ========== */
.arkod-custom-slider .slide-text {
    font-size: 38px;
    font-weight: 400;
    width: 100%;
    font-family: 'AvantGarde Regular', sans-serif;
    color: #ffffff;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
    -webkit-font-smoothing: antialiased;
}

/* ========== Slide Button ========== */
.arkod-custom-slider .slide-button {
    background-color: transparent;
    margin-top: 20px;
    color: #ffffff !important;
    border-color: #ffffff;
    border-width: 1px;
    border-style: solid;
    font-size: 17px;
    width: fit-content;
    padding: 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.arkod-custom-slider .slide-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* ========== Touch Behavior ========== */
.arkod-custom-slider .swiper {
    touch-action: pan-y pinch-zoom;
}

/* ========== Fade Effect Support ========== */
.arkod-custom-slider.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.arkod-custom-slider.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* ========== Responsive Typography ========== */
@media only screen and (max-width: 1200px) {
    .arkod-custom-slider .slide-text {
        font-size: 32px !important;
    }
    
    .arkod-custom-slider .content-container {
        max-width: 450px;
    }
}

@media only screen and (max-width: 800px) {
    .arkod-custom-slider .slide-text {
        font-size: 25px !important;
    }

    .arkod-custom-slider .content-container {
        max-width: 75% !important;
        width: 100%;
        padding-left: 15px;
    }
}

@media only screen and (max-width: 425px) {
    .arkod-custom-slider .slide-text {
        font-size: 22px !important;
    }
    
    .arkod-custom-slider .content-container {
        max-width: 85% !important;
    }
}

/* ========== Debug Mode (can be removed in production) ========== */
.arkod-custom-slider[data-debug="true"] .swiper-slide {
    border: 2px solid red;
}

.arkod-custom-slider[data-debug="true"] .swiper-slide-active {
    border-color: green;
}
