/*
 Theme Name:   Em Barreirinhas - Guia Comercial
 Theme URI:    https://embarreirinhas.com.br/
 Description:  Guia Comercial Local - No Coração dos Lençóis Maranhenses. Tema personalizado para o diretório de negócios de Barreirinhas, MA.
 Author:       Em Barreirinhas
 Author URI:   https://embarreirinhas.com.br/
 Template:     my-listing
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         directory, listings, business-directory, barreirinhas, lencois-maranhenses, tourism, local-business
 Text Domain:  em-barreirinhas
*/

/* ==========================================================================
   MENU MOBILE FIXO NO RODAPÉ
   ========================================================================== */

/* Container do menu mobile */
.em-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #f0f0f0;
}

/* Mostra apenas em mobile */
@media (max-width: 991px) {
    .em-mobile-nav {
        display: flex;
    }

    /* Adiciona padding no body para evitar que o menu cubra o conteúdo */
    body {
        padding-bottom: 70px !important;
    }

    /* Esconde o footer scroll button se existir */
    .back-to-top {
        bottom: 80px !important;
    }
}

/* Lista de itens */
.em-mobile-nav__list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Item individual */
.em-mobile-nav__item {
    flex: 1;
    text-align: center;
    position: relative;
}

/* Link do item */
.em-mobile-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #6c757d;
    transition: all 0.2s ease;
    padding: 5px 0;
}

.em-mobile-nav__link:hover,
.em-mobile-nav__link:focus {
    color: #E85D04;
    text-decoration: none !important;
}

.em-mobile-nav__link.active {
    color: #E85D04;
}

/* Ícone */
.em-mobile-nav__icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 4px;
}

/* Texto/Label */
.em-mobile-nav__label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Botão central destacado (Adicionar) */
.em-mobile-nav__item--center .em-mobile-nav__link {
    position: relative;
    margin-top: -25px;
}

.em-mobile-nav__item--center .em-mobile-nav__icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #E85D04 0%, #F48C06 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.4);
    transition: all 0.3s ease;
}

.em-mobile-nav__item--center .em-mobile-nav__link:hover .em-mobile-nav__icon-wrapper,
.em-mobile-nav__item--center .em-mobile-nav__link:focus .em-mobile-nav__icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.5);
}

/* Sinal de adicionar independente da fonte de icones do tema pai. */
.em-mobile-nav__item--center .em-mobile-nav__icon {
    position: relative;
    display: block;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: #ffffff;
    font-size: 26px;
    margin: 0;
}

.em-mobile-nav__item--center .em-mobile-nav__icon::before,
.em-mobile-nav__item--center .em-mobile-nav__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.em-mobile-nav__item--center .em-mobile-nav__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.em-mobile-nav__item--center .em-mobile-nav__label {
    margin-top: 6px;
    color: #E85D04;
}

/* Badge para notificações (ex: mensagens) - opcional */
.em-mobile-nav__badge {
    position: absolute;
    top: -2px;
    right: 50%;
    transform: translateX(12px);
    background: #E85D04;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
    padding: 0 4px;
}

/* Ajuste para Material Icons */
.em-mobile-nav__icon.mi {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* Icone de usuario para Entrar, compativel com a fonte Material Icons do tema. */
.em-mobile-nav__icon.mi.login::before {
    content: "\e7fd";
}

/* Animação de pulse no botão central */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(232, 93, 4, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(232, 93, 4, 0.6);
    }

    100% {
        box-shadow: 0 4px 15px rgba(232, 93, 4, 0.4);
    }
}

.em-mobile-nav__item--center .em-mobile-nav__icon-wrapper {
    animation: pulse 2s infinite;
}

/* Hover desativa a animação */
.em-mobile-nav__item--center .em-mobile-nav__link:hover .em-mobile-nav__icon-wrapper {
    animation: none;
}