/* Axis Slideshow Frontend Styles */

.axis-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #000;
    margin: 20px 0;
}

.axis-slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.axis-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.axis-slide.active {
    opacity: 1;
    z-index: 2;
}

.axis-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
    background: #000;
}

/* Transition Effects */

/* Fade Effect (Default) */
.axis-slideshow.effect-fade .axis-slide {
    transform: scale(1);
}

.axis-slideshow.effect-fade .axis-slide.active {
    transform: scale(1);
}

/* Slide Effect */
.axis-slideshow.effect-slide .axis-slide {
    transform: translateX(100%);
    opacity: 1;
}

.axis-slideshow.effect-slide .axis-slide.active {
    transform: translateX(0);
}

.axis-slideshow.effect-slide .axis-slide.prev {
    transform: translateX(-100%);
}

/* Zoom Effect */
.axis-slideshow.effect-zoom .axis-slide {
    transform: scale(1.1);
    opacity: 0;
}

.axis-slideshow.effect-zoom .axis-slide.active {
    transform: scale(1);
    opacity: 1;
}

/* Flip Effect */
.axis-slideshow.effect-flip .axis-slide {
    transform: rotateY(90deg);
    opacity: 0;
    transform-origin: center;
    backface-visibility: hidden;
}

.axis-slideshow.effect-flip .axis-slide.active {
    transform: rotateY(0);
    opacity: 1;
}

/* Navigation Arrows */
.axis-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
}

.axis-nav:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.axis-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.axis-nav.prev {
    left: 20px;
}

.axis-nav.next {
    right: 20px;
}

.axis-nav:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

/* Pagination Dots */
.axis-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
    pointer-events: auto;
}

.axis-pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.axis-pagination-dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.axis-pagination-dot.active {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transform: scale(1.3);
}

/* Slide Caption */
.axis-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 15px;
    text-align: center;
    z-index: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.axis-slide-caption h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.axis-slide-caption p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Loading State */
.axis-slideshow.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37.5%, #f0f0f0 62.5%);
    background-size: 400% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.axis-slideshow.loading::after {
    content: "Loading slideshow...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .axis-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .axis-nav.prev {
        left: 10px;
    }
    
    .axis-nav.next {
        right: 10px;
    }
    
    .axis-pagination {
        bottom: 15px;
        gap: 8px;
    }
    
    .axis-pagination-dot {
        width: 10px;
        height: 10px;
    }
    
    .axis-slide-caption {
        padding: 30px 20px 20px;
    }
    
    .axis-slide-caption h3 {
        font-size: 20px;
    }
    
    .axis-slide-caption p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .axis-nav {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .axis-nav.prev {
        left: 5px;
    }
    
    .axis-nav.next {
        right: 5px;
    }
    
    .axis-pagination {
        bottom: 10px;
        gap: 6px;
    }
    
    .axis-pagination-dot {
        width: 8px;
        height: 8px;
    }
    
    .axis-slide-caption {
        padding: 20px 15px 15px;
    }
    
    .axis-slide-caption h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .axis-slide-caption p {
        font-size: 13px;
    }
}

/* Accessibility */
.axis-slideshow:focus-within .axis-nav,
.axis-slideshow:hover .axis-nav {
    opacity: 1;
}

.axis-slideshow .axis-nav {
    opacity: 0.7;
}

.axis-slideshow:focus-within .axis-pagination,
.axis-slideshow:hover .axis-pagination {
    opacity: 1;
}

.axis-slideshow .axis-pagination {
    opacity: 0.8;
}

/* Pause button */
.axis-pause-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
}

.axis-pause-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.axis-slideshow.paused .axis-pause-btn::after {
    content: "▶";
}

.axis-slideshow:not(.paused) .axis-pause-btn::after {
    content: "⏸";
}

/* Print styles */
@media print {
    .axis-slideshow .axis-nav,
    .axis-slideshow .axis-pagination,
    .axis-slideshow .axis-pause-btn {
        display: none;
    }
    
    .axis-slideshow .axis-slide {
        opacity: 1 !important;
        position: static !important;
        page-break-inside: avoid;
    }
}

/* Different image fitting options */
.axis-slideshow.fit-contain .axis-slide img {
    object-fit: contain;
    background: #000;
}

.axis-slideshow.fit-cover .axis-slide img {
    object-fit: cover;
}

.axis-slideshow.fit-fill .axis-slide img {
    object-fit: fill;
}

.axis-slideshow.fit-scale-down .axis-slide img {
    object-fit: scale-down;
    background: #f0f0f0;
}

/* Half-size slideshow option */
.axis-slideshow.half-size {
    width: 50%;
    margin: 20px auto;
}

/* Ensure only one set of controls per slideshow */
.axis-slideshow {
    position: relative;
    isolation: isolate;
}