/* ============================================================
   AresFixer — Slideshow Modal (Theme: Elite)
   ============================================================ */

.af-slideshow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(12px);
    z-index: 9999;
    /* Flex is applied via JS when opened */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
}

/* Close Button */
.af-slide-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 32px;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s, transform 0.3s;
}

.af-slide-close-btn:hover {
    color: #C5A059;
    /* Imperial Gold highlight */
    transform: scale(1.1) rotate(90deg);
}

/* Track */
.af-slide-track {
    display: flex;
    width: 90%;
    max-width: 1600px;
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.2);
    /* Imperial Gold border */
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(197, 160, 89, 0.1);
    overflow: hidden;
    background: #080808;
    padding-bottom: 6px;
    /* progress bar height */
}

/* Individual Slide */
.af-slide {
    min-width: 100%;
    width: 100%;
    display: none;
    position: relative;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.af-slide.active {
    display: block;
}

.af-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
    background: #080808;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.af-slide.slide-from-left {
    animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation Arrows */
.af-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 8, 8, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.4);
    /* Imperial Gold */
    color: #C5A059;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-size: 20px;
    backdrop-filter: blur(6px);
}

.af-slide-arrow:hover {
    background: rgba(197, 160, 89, 0.15);
    border-color: #C5A059;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.af-slide-prev {
    left: 30px;
}

.af-slide-next {
    right: 30px;
}

/* Dot Indicators */
.af-slide-dots {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.af-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.af-dot.active {
    background: #C5A059;
    /* Imperial Gold */
    border-color: #C5A059;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
}

/* Counter */
.af-slide-counter {
    position: absolute;
    bottom: 38px;
    right: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.af-slide-sep {
    color: #C5A059;
    margin: 0 6px;
}

/* Progress Bar */
.af-slide-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.af-slide-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C5A059, #e8c678);
    /* Imperial Gold gradient */
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .af-slide-track {
        width: 95%;
    }

    .af-slide-arrow {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .af-slide-prev {
        left: 15px;
    }

    .af-slide-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .af-slide-track {
        width: 100%;
        border-radius: 0;
        border: none;
    }

    .af-slide-close-btn {
        top: 15px;
        right: 20px;
        font-size: 28px;
    }

    .af-slide-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .af-slide-prev {
        left: 10px;
    }

    .af-slide-next {
        right: 10px;
    }

    .af-slide img {
        max-height: 60vh;
        object-fit: cover;
    }

    .af-slide-counter {
        font-size: 12px;
        bottom: 30px;
        right: 15px;
    }

    .af-slide-dots {
        bottom: 26px;
    }
}