/* Lenis Integration Styles */

/* Ensure whiteboard works with Lenis */
#whiteboard {
    /* Lenis needs these for smooth scrolling */
    scroll-behavior: auto !important; /* Let Lenis handle smoothness */
}

/* Optimize canvas for smooth scrolling */
#canvas {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0); /* Hardware acceleration */
}

/* Smooth transitions for elements during scroll */
.card,
.super-header,
.category-wrapper {
    transition: none; /* Prevent conflicts with scroll animations */
}

/* Cursor states for panning */
#whiteboard.is-panning {
    cursor: grabbing !important;
}

/* Lenis-specific overrides */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Performance optimizations */
/* Removed pointer-events manipulation - it was blocking interactions */

/* Scroll indicators (optional) */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.scroll-indicator.active {
    opacity: 1;
}

.scroll-indicator::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
