/* Carousel animations */
@keyframes swipeFeedback {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes indicatorPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mobile-carousel-indicators .indicator.active {
    animation: indicatorPulse 0.6s ease-out;
}

/* Enhanced carousel styles */
.mobile-review-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-review-card.active {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsiveness for carousel */
@media (max-width: 480px) {
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .carousel-nav i {
        font-size: 1rem;
    }
    
    .mobile-review-photo {
        width: 45px;
        height: 45px;
    }
    
    .mobile-review-content {
        padding: 16px;
    }
    
    .mobile-carousel-swipe-hint {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .swipe-icon i {
        font-size: 0.75rem;
    }
    
    /* Multiple indicators styling */
    .mobile-carousel-indicators {
        flex-wrap: wrap;
        gap: 6px;
        max-width: 200px;
        margin: 20px auto 0;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        margin: 0;
    }
}

/* Enhanced indicators for many reviews */
.mobile-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Swipe hint animation */
.mobile-carousel-swipe-hint {
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Touch feedback */
.mobile-reviews-carousel:active {
    cursor: grabbing;
}

.mobile-review-card {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Enhanced touch targets for mobile */
.carousel-nav {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.indicator {
    min-width: 12px;
    min-height: 12px;
    touch-action: manipulation;
}

/* Mobile responsiveness for carousel */
@media (max-width: 480px) {
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .carousel-nav i {
        font-size: 1rem;
    }
    
    .mobile-review-photo {
        width: 45px;
        height: 45px;
    }
    
    .mobile-review-content {
        padding: 16px;
    }
    
    .mobile-carousel-swipe-hint {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .swipe-icon i {
        font-size: 0.75rem;
    }
}

/* Tablet responsiveness */
@media (min-width: 481px) and (max-width: 768px) {
    .carousel-nav {
        width: 38px;
        height: 38px;
    }
    
    .carousel-nav.prev {
        left: 8px;
    }
    
    .carousel-nav.next {
        right: 8px;
    }
}