/**
 * NAR Popup Slider - Frontend Styles
 * Minimal Design - 1:1 Square Popup
 */

/* Overlay */
.nar-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nar-popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* Container - 1:1 Square */
.nar-popup-container {
    position: relative;
    width: 500px;
    height: 500px;
    max-width: 90vw;
    max-height: 90vw;
    animation: popupFadeIn 0.3s ease;
}

@media (max-width: 600px) {
    .nar-popup-container {
        width: 90vw;
        height: 90vw;
    }
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button - Simple X */
.nar-popup-close {
    position: absolute;
    top: -35px;
    right: 0;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    font-family: Arial, sans-serif;
}

.nar-popup-close:hover {
    color: white;
}

/* Slider Wrapper */
.nar-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

/* Slider Track */
.nar-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

/* Slide - Each slide covers full popup */
.nar-slide {
    position: relative;
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background: #000;
}

.nar-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nar-slide-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nar-slide-link img {
    position: relative;
}

/* Dots - Instagram style (small circles) */
.nar-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
}

.nar-slider-dot {
    width: 6px;
    height: 6px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

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

.nar-slider-dot.active {
    background: white;
}