/**
 * NBN Plans Swipe Styles
 * Styles for mobile swipe functionality
 */

/* Swipe hint */
.swipe-hint {
    text-align: center;
    color: var(--troppo-text-secondary, #8892b0);
    font-size: 0.875rem;
    margin-top: 1rem;
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Scroll indicators */
.nbn-plans-grid.can-scroll-left::before,
.nbn-plans-grid.can-scroll-right::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 2;
}

.nbn-plans-grid.can-scroll-left::before {
    left: 0;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.8), transparent);
}

.nbn-plans-grid.can-scroll-right::after {
    right: 0;
    background: linear-gradient(to left, rgba(26, 26, 46, 0.8), transparent);
}

/* Grabbing cursor */
.nbn-plans-grid.grabbing {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Mobile specific styles */
@media (max-width: 480px) {
    .nbn-plans-container {
        position: relative;
    }

    .nbn-plans-grid {
        cursor: grab;
        cursor: -webkit-grab;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    /* Smooth scrolling */
    .nbn-plans-grid {
        scroll-behavior: smooth;
        -webkit-scroll-snap-type: x mandatory;
        scroll-snap-type: x mandatory;
    }

    /* Hide scrollbar on mobile */
    .nbn-plans-grid::-webkit-scrollbar {
        display: none;
    }

    .nbn-plans-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Add padding for edge cards */
    .nbn-plans-grid::before,
    .nbn-plans-grid::after {
        content: '';
        flex: 0 0 0.5rem;
    }
}
