/**
 * Site Protection CSS
 * Desativa scroll horizontal, zoom e outras proteções
 */

/* ===== 1. DESATIVAR SCROLL HORIZONTAL ===== */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

/* Remover scrollbar horizontal */
::-webkit-scrollbar {
    height: 0 !important;
    width: 8px !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: #888 !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
}

/* ===== 2. DESATIVAR ZOOM COM VIEWPORT ===== */
meta[name="viewport"] {
    content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" !important;
}

/* ===== 3. DESATIVAR SELEÇÃO DE TEXTO (Opcional) ===== */
/* Descomente se quiser desativar seleção de texto */
/*
body {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
*/

/* ===== 4. DESATIVAR DRAG AND DROP ===== */
img, a, button {
    -webkit-user-drag: none !important;
    user-drag: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* ===== 5. DESATIVAR ZOOM NO MOBILE ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    font-size: 16px !important; /* Evita zoom automático em inputs */
}

/* ===== 6. GARANTIR QUE NENHUM ELEMENTO ULTRAPASSE A LARGURA DA TELA ===== */
/* Removido: max-width: 100% em * quebrava o layout */

/* ===== 7. DESATIVAR TOUCH-ACTION PARA PINÇA ===== */
html, body {
    touch-action: manipulation !important;
}

/* ===== 8. DESATIVAR POINTER EVENTS EM ELEMENTOS SENSÍVEIS ===== */
/* Isso pode ser ajustado conforme necessário */
/*
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
}
*/
