/**
 * NRedes Post - Slider de imágenes del post
 */

.nredes-post-slider {
    margin: 40px 0 20px;
    padding: 25px 0 0;
    border-top: 2px solid #eee;
}

.nredes-post-slider-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
}

/* Viewport */
.nredes-post-slider-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

/* Track con slides */
.nredes-post-slider-track {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.nredes-post-slide {
    display: none;
    width: 100%;
    text-align: center;
    animation: nrPostSlideIn 0.4s ease;
}

.nredes-post-slide.active {
    display: block;
}

.nredes-post-slide img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.nredes-post-slide-caption {
    padding: 10px 15px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    text-align: center;
}

/* Flechas */
.nredes-post-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 36px;
    width: 48px;
    height: 72px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
    line-height: 1;
}

.nredes-post-slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.nredes-post-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nredes-post-slider-prev {
    left: 10px;
}

.nredes-post-slider-next {
    right: 10px;
}

/* Thumbnails */
.nredes-post-slider-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
    padding: 0 10px;
}

.nredes-post-slider-thumb {
    width: 70px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.5;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nredes-post-slider-thumb:hover {
    opacity: 0.8;
}

.nredes-post-slider-thumb.active {
    border-color: #0073aa;
    opacity: 1;
}

.nredes-post-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contador */
.nredes-post-slider-counter {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

.nredes-post-slider-current {
    font-weight: 700;
    color: #0073aa;
}

/* Animación */
@keyframes nrPostSlideIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    .nredes-post-slider-arrow {
        width: 36px;
        height: 54px;
        font-size: 28px;
    }

    .nredes-post-slider-thumb {
        width: 50px;
        height: 38px;
    }

    .nredes-post-slide img {
        max-height: 50vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nredes-post-slide {
        animation: none;
    }
}
