/**
 * Navbar Buttons Fix
 * Ajustes para botões RESERVAR e Traduzir
 * Turismo Mato Grosso - 2025
 */

/* ============================================
   BOTÃO RESERVAR
   ============================================ */

.nav-cta {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    margin-left: 15px;
    transition: all 0.3s ease;
}

/* Garantir que o botão não quebre em múltiplas linhas */
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
}

/* Container de autenticação */
#auth-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 0 !important;
}

#auth-container .btn-login-nav,
#auth-container a {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 6px;
}

/* ============================================
   BOTÃO TRADUZIR (Google Translate) - DESATIVADO (Usando nova implementação em google-translate.php)
   ============================================ */

/* Widget do Google Translate */
/*
.goog-te-combo,
.goog-te-gadget {
    font-family: var(--font-primary) !important;
}
*/

/* Botão de traduzir customizado */
/*
.translate-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 998;
    background: rgba(179, 136, 255, 0.95);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(179, 136, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.translate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(179, 136, 255, 0.6);
    background: rgba(179, 136, 255, 1);
}

.translate-button:active {
    transform: translateY(-1px);
}

.translate-button::before {
    content: '🌐';
    font-size: 1.2rem;
}
*/

/* Esconder o widget padrão do Google Translate */
/*
.goog-te-banner-frame,
.goog-te-gadget-simple {
    display: none !important;
}
*/

/* Ajustar o iframe do Google Translate */
/*
body {
    top: 0 !important;
}

.skiptranslate {
    display: none !important;
}
*/

/* ============================================
   RESPONSIVO DESKTOP
   ============================================ */

@media (max-width: 1400px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .nav-cta {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .nav-cta {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}

/* ============================================
   RESPONSIVO TABLET
   ============================================ */

@media (max-width: 992px) {

    /* Esconder botão RESERVAR no navbar em tablet/mobile */
    .nav-cta {
        display: none;
    }

    /* Botão traduzir menor em tablet */
    /*
    .translate-button {
        padding: 10px 16px;
        font-size: 0.85rem;
        bottom: 70px;
        right: 15px;
    }
    */
}

/* ============================================
   RESPONSIVO MOBILE
   ============================================ */

@media (max-width: 768px) {

    /* Menu mobile - adicionar botão RESERVAR dentro do menu */
    .nav-menu.active .nav-cta {
        display: block;
        width: 100%;
        margin: 20px 0 0 0;
        padding: 16px !important;
        text-align: center;
        font-size: 1.1rem !important;
    }

    /* Botão traduzir em mobile */
    /*
    .translate-button {
        bottom: 60px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 40px;
    }

    .translate-button::before {
        font-size: 1rem;
    }
    */
    /* Auth container em mobile */
    #auth-container {
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
    }

    #auth-container .btn-login-nav,
    #auth-container a,
    #auth-container button {
        width: 100%;
        padding: 14px !important;
        font-size: 1rem !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /*
    .translate-button {
        bottom: 55px;
        right: 10px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .translate-button span {
        display: none;
    }

    .translate-button::before {
        margin: 0;
    }
    */
}

/* ============================================
   AJUSTES PARA NAVBAR SCROLLED
   ============================================ */

.navbar.scrolled .nav-cta {
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
}

.navbar.scrolled #auth-container .btn-login-nav,
.navbar.scrolled #auth-container a {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* ============================================
   MENU HAMBURGER
   ============================================ */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

.nav-cta:focus,
.translate-button:focus,
#auth-container button:focus,
#auth-container a:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

/* Alto contraste */
@media (prefers-contrast: high) {

    .nav-cta,
    .translate-button {
        border: 2px solid white;
    }

    .menu-toggle {
        border: 2px solid white;
    }
}

/* Reduzir movimento */
@media (prefers-reduced-motion: reduce) {

    .nav-cta,
    .translate-button,
    .menu-toggle,
    .menu-toggle span {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================
   AJUSTES PARA CHAT WIDGET
   ============================================ */

/* Garantir que botão traduzir não sobreponha o chat */
.chat-widget-open .translate-button {
    bottom: 520px;
}

@media (max-width: 768px) {
    .chat-widget-open .translate-button {
        bottom: calc(100vh - 100px);
    }
}

/* ============================================
   PRINT
   ============================================ */

@media print {

    .nav-cta,
    .translate-button,
    .menu-toggle,
    #auth-container {
        display: none !important;
    }
}