/*
 * style_Head.css - Estilos globais e reset do head
 * GaragemGMC 2026
 */

/* ============================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   SCROLLBAR CUSTOMIZADA
   ============================================ */
/* Remover scrollbars de elementos que não precisam */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* Manter scroll apenas onde é necessário (modais, dropdowns) */
.modal-content::-webkit-scrollbar,
.notif-list::-webkit-scrollbar,
.comments-list::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track,
.notif-list::-webkit-scrollbar-track,
.comments-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.modal-content::-webkit-scrollbar-thumb,
.notif-list::-webkit-scrollbar-thumb,
.comments-list::-webkit-scrollbar-thumb {
    background: #d35400;
    border-radius: 2px;
}

/* ============================================
   BODY PRINCIPAL
   ============================================ */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #0a0a0a;
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* CORREÇÃO: Headers fixos não devem afetar o padding do body */
body.has-fixed-header {
    padding-top: 0 !important;
}

/* Espaço para o menu mobile inferior */
body.has-mobile-nav {
    padding-bottom: 70px;
}

/* ============================================
   CLASSES UTILITÁRIAS
   ============================================ */
.hidden {
    display: none !important;
}

/* Animações suaves */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #d35400;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }

/* ============================================
   CONFIGURAÇÕES ANTI-ZOOM E MOBILE
   ============================================ */

/* Impede zoom via pinch no mobile */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
    touch-action: pan-x pan-y; /* Controla gestos de zoom */
    -webkit-tap-highlight-color: transparent;
}

/* Impede zoom automático em inputs no iOS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

/* Remove outline azul em toque no mobile */
input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
    outline: none;
}

/* ============================================
   RESPONSIVIDADE GLOBAL
   ============================================ */
@media (max-width: 768px) {
    body.has-mobile-nav {
        padding-bottom: 65px;
    }
}

@media (max-width: 480px) {
    body.has-mobile-nav {
        padding-bottom: 60px;
    }
}

/* ============================================
   INPUTS E INTERAÇÕES
   ============================================ */
/* Prevenir zoom em inputs no iOS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    font-size: 16px;
}

/* Melhorar toque em elementos interativos */
button,
a,
.clickable {
    touch-action: manipulation;
}

/* Smooth scroll para toda a página */
html {
    scroll-behavior: smooth;
}