/**
 * Portal Enhancements CSS
 * Shared cursor and smooth scroll styles for portal pages
 */

:root {
    --cursor-size: 12px;
    --cursor-hover-size: 30px;
}

body {
    cursor: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Lenis Recommended CSS */
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;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(-50%, -50%, 0);
    mix-blend-mode: difference;
    will-change: width, height, transform, border;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease, 
                border-radius 0.3s ease;
}

#cursor.hovered {
    width: var(--cursor-hover-size);
    height: var(--cursor-hover-size);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    mix-blend-mode: normal;
}

#cursor.text-mode {
    width: 2px;
    height: 24px;
    border-radius: 0;
    background: #fff;
    mix-blend-mode: difference;
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
    body {
        cursor: auto !important;
    }
    
    #cursor {
        display: none !important;
    }
}

/* Smooth scrolling fallback */
html {
    scroll-behavior: smooth;
}
