/* Swipe Navigation Visual Indicator */
.swipe-indicator {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 80%;
}

.swipe-indicator.show {
    opacity: 1;
}

.swipe-indicator.left {
    left: 20px;
    flex-direction: row;
}

.swipe-indicator.right {
    right: 20px;
    flex-direction: row-reverse;
}

.swipe-indicator-icon {
    font-size: 2rem;
    color: #00bfff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    animation: swipePulse 1s ease-in-out infinite;
}

.swipe-indicator.left .swipe-indicator-icon {
    animation: swipeLeft 1s ease-in-out infinite;
}

.swipe-indicator.right .swipe-indicator-icon {
    animation: swipeRight 1s ease-in-out infinite;
}

.swipe-indicator-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes swipeLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-10px);
    }
}

@keyframes swipeRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

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

/* Защита от закрытия - блокируем свайп вниз */
html.prevent-close,
body.prevent-close,
body.prevent-close * {
    touch-action: pan-x pan-y !important;
    overscroll-behavior-y: contain !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-block: contain !important;
}

/* Дополнительная защита для всех элементов */
.prevent-close * {
    overscroll-behavior-y: contain !important;
}

/* Визуальная обратная связь при попытке закрытия */
.close-block-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.9) 0%, rgba(220, 53, 69, 0.7) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.close-block-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.close-block-indicator i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .swipe-indicator {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        max-width: 75%;
    }
    
    .swipe-indicator-icon {
        font-size: 1.5rem;
        min-width: 32px;
    }
    
    .swipe-indicator-text {
        font-size: 0.875rem;
    }
}

