/* 
 * Fanzy Game Shop - Content Protection Styles
 * Prevents selection and other copy operations via CSS
 */

/* Global selection prevention */
html, body {
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Disable callouts and zooming (iOS) */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Noselect class for dynamic application */
.noselect {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Disable text selection on all elements except inputs and textareas */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection in inputs and textareas */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent dragging of images */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Apply iOS-specific protection */
body {
    /* Disable visual feedback on tap */
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    
    /* Disable text size adjustment */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent URL display on long press for all links */
a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto !important; /* Ensure clicks still work */
}

/* Custom styles for links to prevent long press popup */
a, button, .menu-item, .nav-item {
    touch-action: manipulation; /* Optimize touch behavior */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}

/* Prevent selection of text in specific areas */
.profile-card, .wallet-balance, .menu-section, .bottom-nav-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent context menu on long press for mobile */
.prevent-contextmenu {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
} 