/**
 * Flexbox Image Carousel Pro - Styles
 * Version: 1.0.0
 */

/* CSS Custom Properties for Live Preview */
.elementor-widget-fic_image_carousel {
    --fic-pos-x: 50%;
    --fic-pos-y: 50%;
    --fic-scale: 1.1;
    --fic-rotate: 10deg;
}

/* Base Styles */
.fic-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.fic-swiper {
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 20px;
}

.fic-swiper .swiper-wrapper {
    overflow: visible;
    align-items: flex-end;
}

.fic-swiper .swiper-slide {
    overflow: visible;
    height: auto;
}

.fic-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
}

.fic-slide-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: visible;
}

/* Image Wrapper Styles */
.fic-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.fic-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    transition: filter 0.4s ease, transform 0.4s ease, object-fit 0.1s ease, object-position 0.1s ease;
}

/* Circle with Background Style - Special handling */
.fic-style-circle-bg .fic-slide,
.fic-style-circle-bg .fic-slide-inner,
.fic-style-circle-bg .fic-image-wrapper {
    overflow: visible !important;
}

.fic-style-circle-bg .fic-image-wrapper {
    align-items: flex-end;
    justify-content: center;
}

.fic-style-circle-bg .fic-image {
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
}

/* Background Circle Style */
.fic-bg-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.fic-style-circle-bg .fic-slide,
.fic-style-circle-bg .fic-slide-inner {
    overflow: visible !important;
}

.fic-style-circle-bg .fic-image-wrapper {
    overflow: visible !important;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.fic-style-circle-bg .fic-image {
    object-fit: contain;
    object-position: center bottom;
    width: auto;
    max-width: 100%;
    height: auto;
}

/* Circle Style */
.fic-style-circle .fic-image-wrapper {
    border-radius: 50%;
    overflow: hidden !important;
}

.fic-style-circle .fic-image {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rounded Style */
.fic-style-rounded .fic-image-wrapper {
    border-radius: 20px;
    overflow: hidden !important;
}

.fic-style-rounded .fic-image {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Square Style */
.fic-style-square .fic-image-wrapper {
    border-radius: 0;
    overflow: hidden !important;
}

.fic-style-square .fic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hexagon Style */
.fic-style-hexagon .fic-image-wrapper {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden !important;
}

.fic-style-hexagon .fic-image {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grayscale Effects */
.fic-grayscale-always .fic-image {
    filter: grayscale(100%);
}

.fic-grayscale-hover .fic-slide:hover .fic-image {
    filter: grayscale(100%);
}

.fic-grayscale-hover-color .fic-image {
    filter: grayscale(100%);
}

.fic-grayscale-hover-color .fic-slide:hover .fic-image {
    filter: grayscale(0%);
}

/* Content Styles */
.fic-content {
    width: 100%;
    padding: 15px 10px;
}

.fic-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    z-index: 5;
    padding: 30px 15px 15px;
}

.fic-content-overlay .fic-title,
.fic-content-overlay .fic-subtitle,
.fic-content-overlay .fic-caption {
    color: #fff;
}

.fic-content-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    z-index: 5;
    padding: 30px 15px 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fic-slide:hover .fic-content-hover {
    opacity: 1;
    transform: translateY(0);
}

.fic-content-hover .fic-title,
.fic-content-hover .fic-subtitle,
.fic-content-hover .fic-caption {
    color: #fff;
}

.fic-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.fic-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.fic-caption {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

/* ===========================================
   HOVER ANIMATIONS
   =========================================== */

/* Scale Up */
.fic-hover-scale .fic-slide:hover .fic-image-wrapper {
    transform: scale(var(--fic-scale, 1.1));
}

/* Scale Down */
.fic-hover-scale-down .fic-slide:hover .fic-image-wrapper {
    transform: scale(var(--fic-scale, 0.95));
}

/* Rotate */
.fic-hover-rotate .fic-slide:hover .fic-image-wrapper {
    transform: rotate(var(--fic-rotate, 10deg));
}

/* Shake Animation */
@keyframes fic-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.fic-hover-shake .fic-slide:hover .fic-image-wrapper {
    animation: fic-shake 0.6s ease-in-out;
}

/* Pulse Animation */
@keyframes fic-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fic-hover-pulse .fic-slide:hover .fic-image-wrapper {
    animation: fic-pulse 0.8s ease-in-out infinite;
}

/* Float Animation */
@keyframes fic-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.fic-hover-float .fic-slide:hover .fic-image-wrapper {
    animation: fic-float 1s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes fic-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-10px); }
}

.fic-hover-bounce .fic-slide:hover .fic-image-wrapper {
    animation: fic-bounce 0.8s ease-in-out;
}

/* Tilt 3D */
.fic-hover-tilt .fic-slide {
    perspective: 1000px;
}

.fic-hover-tilt .fic-slide:hover .fic-image-wrapper {
    transform: rotateX(10deg) rotateY(-10deg);
}

/* Glow Animation */
@keyframes fic-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(233, 30, 140, 0.5); }
    50% { box-shadow: 0 0 30px rgba(233, 30, 140, 0.8), 0 0 60px rgba(233, 30, 140, 0.4); }
}

.fic-hover-glow .fic-slide:hover .fic-image-wrapper {
    animation: fic-glow 1.5s ease-in-out infinite;
}

.fic-hover-glow.fic-style-circle-bg .fic-slide:hover .fic-bg-circle {
    animation: fic-glow 1.5s ease-in-out infinite;
}

/* Shine Effect */
.fic-hover-shine .fic-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    z-index: 10;
    transition: left 0.6s ease;
}

.fic-hover-shine .fic-slide:hover .fic-shine {
    left: 150%;
}

/* Flip Animation */
.fic-hover-flip .fic-slide {
    perspective: 1000px;
}

.fic-hover-flip .fic-image-wrapper {
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.fic-hover-flip .fic-slide:hover .fic-image-wrapper {
    transform: rotateY(180deg);
}

/* Slide Up */
.fic-hover-slide-up .fic-slide:hover .fic-image-wrapper {
    transform: translateY(-15px);
}

/* Zoom with Overlay */
.fic-hover-zoom-overlay .fic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 3;
    transition: background 0.4s ease;
}

.fic-hover-zoom-overlay .fic-slide:hover .fic-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.fic-hover-zoom-overlay .fic-slide:hover .fic-image {
    transform: scale(1.15);
}

/* ===========================================
   NAVIGATION STYLES
   =========================================== */

.fic-navigation {
    display: flex;
    gap: 10px;
    z-index: 20;
    position: relative;
}

.fic-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.fic-nav-btn:hover {
    transform: scale(1.1);
}

.fic-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.fic-nav-btn.swiper-button-disabled,
.fic-nav-btn.fic-btn-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    /* NEVER use pointer-events:none - it kills touch events on mobile */
}

/* Arrow Positions */
.fic-nav-sides {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 10;
}

.fic-nav-sides .fic-nav-btn {
    pointer-events: all;
    position: relative;
}

.fic-nav-sides .fic-prev {
    left: 0;
}

.fic-nav-sides .fic-next {
    right: 0;
}

.fic-nav-bottom {
    justify-content: center;
    margin-top: 30px;
    position: relative;
    z-index: 20;
}

.fic-nav-top-right {
    position: absolute;
    top: -60px;
    right: 0;
    z-index: 10;
}

/* ===========================================
   PAGINATION STYLES
   =========================================== */

.fic-pagination {
    margin-top: 20px;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #E91E8C;
    transform: scale(1.2);
}

/* Lines Style */
.fic-pagination-lines .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
}

/* Progress Bar */
.fic-pagination-progressbar .swiper-pagination-progressbar {
    background: #eee;
}

.fic-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #E91E8C;
}

/* Fraction */
.swiper-pagination-fraction {
    font-size: 16px;
    font-weight: 600;
}

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

@media (max-width: 1024px) {
    .fic-nav-sides {
        padding: 0 5px;
    }
    
    .fic-nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .fic-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 767px) {
    .fic-nav-sides {
        position: relative;
        top: auto;
        transform: none;
        justify-content: center;
        margin-top: 20px;
        padding: 0;
        pointer-events: all;
    }
    
    .fic-nav-sides .fic-prev,
    .fic-nav-sides .fic-next {
        position: relative;
        left: auto;
        right: auto;
    }
    
    .fic-nav-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
    
    .fic-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .fic-title {
        font-size: 16px;
    }
    
    .fic-subtitle {
        font-size: 13px;
    }
}

/* ===========================================
   SWIPER EFFECTS ADJUSTMENTS
   =========================================== */

/* Coverflow Effect */
.swiper-coverflow .fic-slide {
    width: auto;
}

/* Cards Effect */
.swiper-cards .fic-slide {
    width: 300px;
}

/* Cube Effect */
.swiper-cube {
    overflow: visible;
}

/* Creative Effect */
.swiper-creative .fic-slide {
    overflow: visible;
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

.fic-nav-btn:focus {
    outline: 2px solid #E91E8C;
    outline-offset: 2px;
}

.fic-slide a:focus .fic-image-wrapper {
    outline: 2px solid #E91E8C;
    outline-offset: 4px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .fic-image-wrapper,
    .fic-image,
    .fic-bg-circle,
    .fic-content-hover,
    .fic-nav-btn,
    .swiper-pagination-bullet {
        transition: none !important;
        animation: none !important;
    }
}
