/**
 * Cocoon Core - General Slider Styles
 * Estilos generales para todos los sliders basados en OwlCarousel
 * 
 * @package    local_cocoon_core
 * @copyright  2024 Aura
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

/* ============================================
   OWLCAROUSEL BASE STYLES
   ============================================ */

/* Base slider container */
.owl-carousel {
    display: none;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}

/* Slider antes de cargar */
.owl-carousel:not(.owl-loaded) {
    opacity: 0;
    visibility: hidden;
}

/* Slider después de cargar */
.owl-carousel.owl-loaded {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
    display: block;
}

/* Stage container */
.owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    touch-action: manipulation;
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Stage outer container */
.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0px, 0px, 0px);
    transform: translate3d(0px, 0px, 0px);
}

/* Individual slide items */
.owl-carousel .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}



/* ============================================
   NAVIGATION DOTS STYLES
   ============================================ */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}
.owl-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}
.owl-carousel .owl-dots .owl-dot span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
}
.owl-carousel .owl-dots .owl-dot.active,
.owl-carousel .owl-dots .owl-dot:hover {
    background: #ff0050;
    transform: scale(1.2);
}
/* Custom dots color support */
.owl-carousel[data-dots-color] .owl-dots .owl-dot.active,
.owl-carousel[data-dots-color] .owl-dots .owl-dot:hover {
    background: var(--dots-color, #ff0050);
}
/* ============================================
   NAVIGATION ARROWS STYLES
   ============================================ */

.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    pointer-events: none;
    z-index: 2;
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    text-decoration: none;
    outline: none;
}

.owl-carousel .owl-nav .owl-prev {
    left: -25px;
}

.owl-carousel .owl-nav .owl-next {
    right: -25px;
}

.owl-carousel .owl-nav .owl-prev:hover,
.owl-carousel .owl-nav .owl-next:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.owl-carousel .owl-nav .owl-prev i,
.owl-carousel .owl-nav .owl-next i {
    font-size: 16px;
}

/* ============================================
   SPECIALIZED SLIDER CLASSES
   ============================================ */

/* Instructor/Users Sliders */
.instructor_slider_home3 {
    overflow: hidden;
    min-height: 250px;
}

.instructor_slider_home3 .item {
    padding: 0 15px;
}

/* Course Sliders */
.popular_course_slider,
.shop_product_slider {
    overflow: hidden;
    min-height: 300px;
}

.popular_course_slider .item,
.shop_product_slider .item {
    padding: 0 15px;
    height: 100%;
}

/* Blog Sliders */
.blog_slider_home1 {
    overflow: hidden;
    min-height: 250px;
}

.blog_slider_home1 .item {
    padding: 0 15px;
}

/* Testimonial Sliders */
.testimonial_slider_home2 {
    overflow: hidden;
    min-height: 200px;
}

.testimonial_slider_home2 .item {
    padding: 0 10px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1199px) {
    .owl-carousel .owl-nav .owl-prev {
        left: -20px;
    }
    
    .owl-carousel .owl-nav .owl-next {
        right: -20px;
    }
}

@media (max-width: 991px) {
    .owl-carousel .owl-nav .owl-prev,
    .owl-carousel .owl-nav .owl-next {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .owl-carousel .owl-nav .owl-prev {
        left: -15px;
    }
    
    .owl-carousel .owl-nav .owl-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .owl-carousel .owl-nav {
        display: none;
    }
    
    .owl-carousel .owl-dots {
        margin-top: 20px;
    }
    .owl-carousel .owl-dots .owl-dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    .instructor_slider_home3 .item,
    .popular_course_slider .item,
    .shop_product_slider .item,
    .blog_slider_home1 .item {
        padding: 0 10px;
    }
    
    .testimonial_slider_home2 .item {
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .owl-carousel .owl-dots {
        margin-top: 15px;
    }
    .owl-carousel .owl-dots .owl-dot {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
    .instructor_slider_home3 .item,
    .popular_course_slider .item,
    .shop_product_slider .item,
    .blog_slider_home1 .item,
    .testimonial_slider_home2 .item {
        padding: 0 8px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Loading states */
.owl-loading {
    opacity: 0;
    display: block;
}

.owl-hidden {
    opacity: 0;
}

/* Smooth transitions */
.owl-carousel.owl-drag .owl-item {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-carousel.owl-grab {
    cursor: move;
    cursor: grab;
}

.owl-carousel.owl-grab .owl-item {
    cursor: move;
    cursor: grab;
}

/* RTL Support */
.owl-carousel.owl-rtl {
    direction: rtl;
}

.owl-carousel.owl-rtl .owl-item {
    float: right;
}

/* Accessibility improvements */
.owl-carousel .owl-nav button[role="presentation"] {
    outline: none;
} 
.owl-carousel .owl-dots button[role="button"] {
    outline: none;
} 