/* GX Simple Slider Frontend Styles */

.gx-simple-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.gx-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-slide.active {
    opacity: 1;
    z-index: 2;
}

.gx-slide-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gx-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.gx-slide-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transition: background 0.3s ease;
    z-index: 1;
}

.gx-slide-link:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.gx-slide-link:hover .gx-slide-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Ensure links are clickable */
.gx-slide-image {
    position: relative;
    z-index: 2;
}

/* Slider Controls */
.gx-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.gx-slider-controls .gx-nav-arrow {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    margin: 0 10px;
}

.gx-slider-controls .gx-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gx-slider-controls .gx-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gx-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.gx-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.gx-dot.active {
    background: rgba(255, 255, 255, 0.9);
}

.gx-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gx-slider-controls .gx-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .gx-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .gx-slider-controls .gx-nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin: 0 5px;
    }
}

/* Custom height support */
.gx-simple-slider.custom-height .gx-slider-container {
    height: auto;
}

.gx-simple-slider.custom-height .gx-slide {
    position: relative;
    height: auto;
    display: none;
}

.gx-simple-slider.custom-height .gx-slide.active {
    display: block;
}
