/* ========================================
   MEMBER CAROUSEL - TERMINATOR 2 STYLE
   Carousel automático con efectos glitch
======================================== */

/* Member Card Container */
.member {
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.member:hover {
    transform: translateY(-10px);
}

/* Carousel Photo Container */
.member-photo-carousel {
    position: relative;
    width: 280px;
    height: 380px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 255, 0.4);
    background: #000;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.member:hover .member-photo-carousel {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Carousel Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

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

/* Glitch effect on transition */
.carousel-slide.glitching {
    animation: glitchEffect 0.3s ease;
}

@keyframes glitchEffect {
    0%, 100% {
        transform: translate(0);
        filter: none;
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
}

.carousel-slide img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    display: block;
    filter: grayscale(50%) contrast(1.1);
    transition: filter 0.3s ease;
}

.member:hover .carousel-slide img {
    filter: grayscale(0%) contrast(1.05) brightness(1.05);
}

/* Scanlines Overlay */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 10;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

/* Navigation Controls */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    color: rgba(0, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.member-photo-carousel:hover .carousel-prev,
.member-photo-carousel:hover .carousel-next {
    opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 1);
    color: rgba(0, 255, 255, 1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.carousel-prev:active,
.carousel-next:active {
    transform: translateY(-50%) scale(0.9);
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(0, 255, 255, 0.8);
    border-color: rgba(0, 255, 255, 1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator:hover:not(.active) {
    background: rgba(0, 255, 255, 0.5);
    border-color: rgba(0, 255, 255, 0.7);
}

/* Member Info */
.member-info {
    position: relative;
}

.member-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: rgba(0, 255, 255, 0.95);
    text-shadow:
        0 0 15px rgba(0, 255, 255, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

.member:hover .member-info h3 {
    color: rgba(0, 255, 255, 1);
    text-shadow:
        0 0 20px rgba(0, 255, 255, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.9);
}

.member-info p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Data Label Overlay (opcional - aparece en hover) */
.member-photo-carousel::after {
    content: 'ID: ' attr(data-member);
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: rgba(0, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 15;
    text-transform: uppercase;
}

.member:hover .member-photo-carousel::after {
    opacity: 1;
}

/* Loading state for images */
.carousel-slide img[loading="lazy"] {
    animation: imageLoad 0.5s ease forwards;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .member-photo-carousel {
        width: 240px;
        height: 320px;
    }

    .member-info h3 {
        font-size: 1.7rem;
    }

    .member-info p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .member-photo-carousel {
        width: 200px;
        height: 280px;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .member-info h3 {
        font-size: 1.5rem;
    }

    .member-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .member-photo-carousel {
        width: 160px;
        height: 220px;
    }

    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    .member-info h3 {
        font-size: 1.3rem;
    }

    .member-info p {
        font-size: 0.9rem;
    }
}

/* ========================================
   ONLINE STATUS BADGE
======================================== */
.member-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 0, 0.5);
    box-shadow:
        0 0 15px rgba(0, 255, 0, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 15;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.member:hover .member-status-badge {
    border-color: rgba(0, 255, 0, 0.8);
    box-shadow:
        0 0 25px rgba(0, 255, 0, 0.6),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Pulsing animation for Online badge */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Status Dot */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow:
        0 0 8px rgba(0, 255, 0, 0.8),
        0 0 15px rgba(0, 255, 0, 0.4);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Status Text */
.status-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

/* Responsive adjustments for status badge */
@media (max-width: 1024px) {
    .member-status-badge {
        padding: 5px 10px;
        top: 12px;
        left: 12px;
    }

    .status-dot {
        width: 8px;
        height: 8px;
    }

    .status-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .member-status-badge {
        padding: 4px 8px;
        top: 10px;
        left: 10px;
        gap: 4px;
    }

    .status-dot {
        width: 7px;
        height: 7px;
    }

    .status-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .member-status-badge {
        padding: 3px 6px;
        top: 8px;
        left: 8px;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .status-text {
        font-size: 0.65rem;
    }
}

/* ========================================
   MEMBER LIGHTBOX STYLES
======================================== */
.member-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-lightbox.active {
    display: flex;
    opacity: 1;
}

.member-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.member-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border: 3px solid rgba(0, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.4),
        0 0 80px rgba(0, 255, 255, 0.2);
    filter: grayscale(30%) contrast(1.1);
    transition: all 0.3s ease;
}

.member-lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(0, 255, 255, 0.9);
    font-size: 1.5rem;
    z-index: 10001;
}

.member-lightbox-close:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 1);
    color: rgba(0, 255, 255, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* Navigation arrows for lightbox */
.member-lightbox-prev,
.member-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(0, 255, 255, 0.9);
    font-size: 1.8rem;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.member-lightbox-prev {
    left: -80px;
}

.member-lightbox-next {
    right: -80px;
}

.member-lightbox-prev:hover,
.member-lightbox-next:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 1);
    color: rgba(0, 255, 255, 1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

.member-lightbox-prev:active,
.member-lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

.member-lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(0, 255, 255, 0.95);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow:
        0 0 15px rgba(0, 255, 255, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Responsive adjustments for lightbox */
@media (max-width: 1024px) {
    .member-lightbox-prev {
        left: 10px;
    }

    .member-lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .member-lightbox-close {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .member-lightbox-prev,
    .member-lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .member-lightbox-prev {
        left: 10px;
    }

    .member-lightbox-next {
        right: 10px;
    }

    .member-lightbox-caption {
        font-size: 1.2rem;
        bottom: -50px;
    }
}

@media (max-width: 480px) {
    .member-lightbox-content {
        max-width: 95%;
    }

    .member-lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        top: 15px;
        right: 15px;
    }

    .member-lightbox-prev,
    .member-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .member-lightbox-prev {
        left: 5px;
    }

    .member-lightbox-next {
        right: 5px;
    }

    .member-lightbox-image {
        border-width: 2px;
    }

    .member-lightbox-caption {
        font-size: 1rem;
        bottom: -40px;
    }
}