/* Common Slider Advanced Styles */

/* ===================================
   BASE STYLES
   =================================== */
.common-swiper-wrapper .common-slide-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}

.common-swiper-wrapper .common-slide-image {
    width: 100%;
    overflow: hidden;
}

.common-swiper-wrapper .common-slide-image img {
    width: 100%;
    display: block;
}

/* ===================================
   SKIN: NORMAL (NEW DEFAULT)
   =================================== */
.common-swiper-wrapper.common-skin-normal .common-slide-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.common-swiper-wrapper.common-skin-normal .common-slide-image {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
}

.common-swiper-wrapper.common-skin-normal .common-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.common-swiper-wrapper.common-skin-normal .common-slide-overlay {
    /*position: relative;*/
    background: transparent;
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.common-swiper-wrapper.common-skin-normal .common-slide-content {
    width: 100%;
}

.common-swiper-wrapper.common-skin-normal .common-slide-title {
    margin-bottom: 10px;
}

.common-swiper-wrapper.common-skin-normal .common-slide-description {
    line-height: 1.6;
}

/* ===================================
   RESPONSIVE SKINS
   =================================== */
/* Tablet Skins */
@media (max-width: 1024px) and (min-width: 768px) {
    /* Normal skin on tablet */
    .common-swiper-wrapper.common-skin-tablet-normal .common-slide-inner {
        display: flex;
        flex-direction: column;
    }
    
    .common-swiper-wrapper.common-skin-tablet-normal .common-slide-overlay {
        position: relative;
        background: transparent;
        padding: 20px;
    }
    
    /* Overlay skin on tablet */
    .common-swiper-wrapper.common-skin-tablet-overlay .common-slide-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    /* Card skin on tablet */
    .common-swiper-wrapper.common-skin-tablet-card .common-slide-inner {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* Hero skin on tablet */
    .common-swiper-wrapper.common-skin-tablet-hero .common-slide-inner {
        min-height: 50vh;
    }
}

/* Mobile Skins */
@media (max-width: 767px) {
    /* Normal skin on mobile */
    .common-swiper-wrapper.common-skin-mobile-normal .common-slide-inner {
        display: flex;
        flex-direction: column;
    }
    
    .common-swiper-wrapper.common-skin-mobile-normal .common-slide-overlay {
        position: relative;
        background: transparent;
        padding: 15px;
    }
    
    /* Overlay skin on mobile */
    .common-swiper-wrapper.common-skin-mobile-overlay .common-slide-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    /* Card skin on mobile */
    .common-swiper-wrapper.common-skin-mobile-card .common-slide-inner {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* Hero skin on mobile */
    .common-swiper-wrapper.common-skin-mobile-hero .common-slide-inner {
        min-height: 40vh;
    }
}

/* ===================================
   ALWAYS VISIBLE CONTENT
   =================================== */

/* Default behavior: Hide content, show on hover */
.common-swiper-wrapper .common-slide-overlay {
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.common-swiper-wrapper .common-slide-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.common-swiper-wrapper .common-slide-inner:hover .common-slide-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* When "Always Visible Content" is enabled */
.common-overlay-visible-yes .common-slide-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

.common-overlay-visible-yes .common-slide-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Ensure content is always visible on hover too */
.common-overlay-visible-yes .common-slide-inner:hover .common-slide-overlay,
.common-overlay-visible-yes .common-slide-inner:hover .common-slide-content {
    opacity: 1 !important;
}

/* Scrollbar Styles */
.common-swiper-wrapper .swiper-scrollbar {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: 4px;
    margin-top: 10px;
}

.common-swiper-wrapper .swiper-scrollbar-drag {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    cursor: pointer;
}

/* Pagination Advanced Styles */
.common-swiper-wrapper .swiper-pagination-fraction {
    font-size: 14px;
    font-weight: 500;
}

.common-swiper-wrapper .swiper-pagination-progressbar {
    background: rgba(0, 0, 0, 0.1);
}

.common-swiper-wrapper .swiper-pagination-progressbar-fill {
    background: var(--e-global-color-primary, #000);
}

/* Dynamic Bullets */
.common-swiper-wrapper .swiper-pagination-bullets-dynamic {
    overflow: hidden;
    font-size: 0;
}

.common-swiper-wrapper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    position: relative;
    transform: scale(1) !important;
}

.common-swiper-wrapper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
    transform: scale(1) !important;
}

.common-swiper-wrapper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev,
.common-swiper-wrapper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
    transform: scale(1) !important;
}

.common-swiper-wrapper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev,
.common-swiper-wrapper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
    transform: scale(1) !important;
}

/* Force remove all scale transforms from pagination bullets */
.common-swiper-wrapper .swiper-pagination-bullet {
    transform: none !important;
}

/* Vertical Direction Support */
.common-swiper-wrapper .swiper-vertical {
    flex-direction: column;
}

.common-swiper-wrapper .swiper-vertical > .swiper-wrapper {
    flex-direction: column;
}

/* Effect: Cube */
.common-swiper-wrapper .swiper-cube .swiper-slide {
    pointer-events: none;
    backface-visibility: hidden;
    z-index: 1;
    visibility: hidden;
    transform-origin: 0 0;
    width: 100%;
    height: 100%;
}

.common-swiper-wrapper .swiper-cube .swiper-slide-active,
.common-swiper-wrapper .swiper-cube .swiper-slide-next,
.common-swiper-wrapper .swiper-cube .swiper-slide-prev {
    pointer-events: auto;
    visibility: visible;
}

/* Effect: Flip */
.common-swiper-wrapper .swiper-flip .swiper-slide {
    pointer-events: none;
    backface-visibility: hidden;
    z-index: 1;
}

.common-swiper-wrapper .swiper-flip .swiper-slide-active,
.common-swiper-wrapper .swiper-flip .swiper-slide-next,
.common-swiper-wrapper .swiper-flip .swiper-slide-prev {
    pointer-events: auto;
}

/* Effect: Coverflow */
.common-swiper-wrapper .swiper-coverflow .swiper-wrapper {
    perspective: 1200px;
}

/* Effect: Cards */
.common-swiper-wrapper .swiper-cards {
    overflow: visible;
}

.common-swiper-wrapper .swiper-cards .swiper-slide {
    transform-origin: center bottom;
    backface-visibility: hidden;
    overflow: hidden;
}

/* Free Mode Styles */
.common-swiper-wrapper .swiper-free-mode > .swiper-wrapper {
    transition-timing-function: ease-out;
    margin: 0 auto;
}

/* Centered Slides */
.common-swiper-wrapper .swiper-centered > .swiper-wrapper::before {
    content: '';
    flex-shrink: 0;
    order: 9999;
}

/* Auto Height */
.common-swiper-wrapper .swiper-autoheight,
.common-swiper-wrapper .swiper-autoheight .swiper-slide {
    height: auto;
}

.common-swiper-wrapper .swiper-autoheight .swiper-wrapper {
    align-items: flex-start;
    transition-property: transform, height;
}

/* Grab Cursor */
.common-swiper-wrapper .swiper-grab {
    cursor: move;
    cursor: grab;
}

.common-swiper-wrapper .swiper-grab:active {
    cursor: grabbing;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .common-swiper-wrapper .swiper-scrollbar {
        height: 3px;
    }
    
    .common-swiper-wrapper .swiper-pagination-fraction {
        font-size: 12px;
    }
}
