/* Bokifa Text Carousel Splide Styles - Simple Version */

/* Main wrapper */
.bokifa-text-carousel-splide-wrapper {
    position: relative;
    width: 100%;
}

/* Splide container */
.bokifa-text-carousel-splide {
    position: relative;
}

/* Splide track */
.bokifa-text-carousel-splide .splide__track {
    position: relative;
    width: 100%;
    height: auto;
}

/* Splide list */
.bokifa-text-carousel-splide .splide__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
}

/* Individual slides */
.bokifa-text-carousel-splide .splide__slide {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    opacity: 0.6;
}

/* Active/Center slide */
.bokifa-text-carousel-splide .splide__slide.is-active {
    opacity: 1;
}

/* Text content - Simple styling */
.bokifa-text-carousel-splide-text {
    display: block;
    text-align: center;
    padding: 10px 15px;
    color: #333;
    font-size: 12px; /* Reduced from 16px */
    line-height: 1.2; /* Adjusted for smaller text */
    text-decoration: none;
    width: 100%;
}

/* Simple hover effect */
.bokifa-text-carousel-splide-text:hover {
    color: white;
    text-decoration: none;
}

/* Active slide text styling - Simple */
.bokifa-text-carousel-splide .splide__slide.is-active .bokifa-text-carousel-splide-text {
    color: white;
    font-weight: 600;
}

/* Link styling - Simple */
.bokifa-text-carousel-splide-wrapper a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.bokifa-text-carousel-splide-wrapper a:hover {
    text-decoration: none;
    color: inherit;
}



/* Pagination removed for simplified widget */
/* Pagination removed for simplified widget */

/* Focus centering - Simple opacity change only */
.bokifa-text-carousel-splide-wrapper[data-focus="center"] .splide__slide {
    opacity: 0.4;
}

.bokifa-text-carousel-splide-wrapper[data-focus="center"] .splide__slide.is-active {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bokifa-text-carousel-splide-text {
        padding: 8px 12px;
        font-size: 10px; /* Reduced for smaller screens */
    }
    
    .bokifa-text-carousel-splide .splide__arrow {
        width: 28px;
        height: 28px;
    }
    
    .bokifa-text-carousel-splide .splide__arrow--prev::before,
    .bokifa-text-carousel-splide .splide__arrow--next::before {
        border-top-width: 5px;
        border-bottom-width: 5px;
    }
    
    .bokifa-text-carousel-splide .splide__arrow--prev::before {
        border-right-width: 6px;
    }
    
    .bokifa-text-carousel-splide .splide__arrow--next::before {
        border-left-width: 6px;
    }
}

/* Pagination removed for simplified widget */

.bokifa-text-carousel-splide-text:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Navigation arrows */
.bokifa-text-carousel-splide .splide__arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.bokifa-text-carousel-splide .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    opacity: 1;
    pointer-events: auto;
    z-index: 11;
}
.bokifa-text-carousel-splide .splide__arrow--prev {
    left: 10px;
    right: auto;
}
.bokifa-text-carousel-splide .splide__arrow--next {
    right: 10px;
    left: auto;
}

.bokifa-text-carousel-splide .splide__arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
}

.bokifa-text-carousel-splide .splide__arrow:disabled:hover {
    transform: none;
    background-color: #ccc;
}

.bokifa-text-carousel-splide .splide__arrow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Pagination removed for simplified widget */
/* Pagination removed for simplified widget */

/* Focus centering adjustments */
.bokifa-text-carousel-splide[data-focus="center"] .splide__slide {
    opacity: 0.5;
    transform: scale(0.85);
}

.bokifa-text-carousel-splide[data-focus="center"] .splide__slide.is-active {
    opacity: 1;
    transform: scale(1.1);
}

/* Enhanced centering for focus mode */
.bokifa-text-carousel-splide .splide__slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* When focus center is enabled */
.bokifa-text-carousel-splide-wrapper[data-focus="center"] .splide__slide {
    opacity: 0.6;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.bokifa-text-carousel-splide-wrapper[data-focus="center"] .splide__slide.is-active {
    opacity: 1;
    transform: scale(1.15);
    z-index: 3;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .bokifa-text-carousel-splide-text {
        padding: 12px 20px;
        font-size: 11px; /* Slightly larger for medium screens */
        max-width: 200px;
    }
    
    .bokifa-text-carousel-splide .splide__arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .bokifa-text-carousel-splide-text {
        padding: 10px 15px;
        font-size: 10px; /* Reduced for smaller screens */
        max-width: 180px;
        min-height: 40px;
    }
    
    .bokifa-text-carousel-splide .splide__slide {
        min-height: 50px;
    }
    
    .bokifa-text-carousel-splide .splide__arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    /* Pagination removed for simplified widget */
}

/* RTL Support */
.rtl .bokifa-text-carousel-splide .splide__arrow--prev,
.rtl .bokifa-text-carousel-splide .splide__arrow--next {
    transform: scaleX(-1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bokifa-text-carousel-splide-text {
        border-width: 3px;
        border-color: #000;
    }
    
    .bokifa-text-carousel-splide .splide__slide.is-active .bokifa-text-carousel-splide-text {
        border-color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bokifa-text-carousel-splide-text,
    .bokifa-text-carousel-splide .splide__slide,
    .bokifa-text-carousel-splide .splide__arrow {
        transition: none;
    }
    
    .bokifa-text-carousel-splide .splide__slide.slide-in .bokifa-text-carousel-splide-text {
        animation: none;
    }
}

/* Loading state */
.bokifa-text-carousel-splide-wrapper.is-loading {
    opacity: 0.7;
}

.bokifa-text-carousel-splide-wrapper.is-loading .bokifa-text-carousel-splide-text {
    background-color: #f0f0f0;
    color: transparent;
    position: relative;
    overflow: hidden;
}

.bokifa-text-carousel-splide-wrapper.is-loading .bokifa-text-carousel-splide-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}