/* ================================================
   MOBILE.CSS — Bottom Navigation, Onboarding,
                Rodapé Desktop e Ajustes Gerais
   Midnight Edition | MinhaRua App
   ================================================ */

/* ================= BOTTOM NAVIGATION (MOBILE ONLY) ================= */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    z-index: 9998;
    height: 60px;
    background: rgba(14, 14, 18, 0.92);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) { .bottom-nav { display: flex; } }
@media (min-width: 769px) { .bottom-nav { display: none !important; } }

/* Item da bottom nav */
.bnav-item {
    display: flex; flex: 1; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    background: transparent; border: none; cursor: pointer;
    padding: 8px 4px; color: rgba(255,255,255,0.4);
    transition: color 0.2s; -webkit-tap-highlight-color: transparent;
}
.bnav-item:active { opacity: 0.7; }
.bnav-icon  { width: 22px; height: 22px; flex-shrink: 0; }
.bnav-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3px; font-family: 'Inter', sans-serif; text-transform: uppercase; }

/* Estado ativo */
.bnav-item.bnav-ativo { color: #39ff14; text-shadow: 0 0 8px rgba(57,255,20,0.6); }
.bnav-item.bnav-ativo .bnav-icon { filter: drop-shadow(0 0 4px rgba(57,255,20,0.7)); }

/* 3 botões centralizados uniformemente */
@media (max-width: 768px) {
    .bottom-nav { justify-content: center; gap: 0; }
    .bnav-item  { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* ================= AJUSTES MOBILE ZOOM + LOCALIZADOR ================= */
@media (max-width: 768px) {
    .zoom-controls { bottom: 90px; right: 15px; }
    .fab-perfil { top: auto !important; bottom: 20px !important; right: auto !important; left: 50% !important; transform: translateX(-50%) !important; }
}

/* ================= ONBOARDING - MIDNIGHT EDITION ================= */
.ob-overlay {
    position: fixed; inset: 0;
    background: rgba(18, 18, 18, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: obFadeIn 0.35s ease;
}
.ob-overlay.ob-oculto { display: none; }

@keyframes obFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ob-card {
    background: #2a2a2d; border-radius: 24px;
    width: 100%; max-width: 370px;
    padding: 36px 0 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(57,255,20,0.08);
    overflow: hidden;
    animation: obSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes obSlideUp {
    from { transform: translateY(36px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.ob-track { display: flex; width: 100%; }

.ob-slide { width: 100%; flex-shrink: 0; text-align: center; padding: 0 28px; box-sizing: border-box; transition: none; }

.ob-icone { font-size: 2.4rem; color: #39ff14; text-shadow: 0 0 18px rgba(57,255,20,0.75), 0 0 36px rgba(57,255,20,0.35); display: block; margin-bottom: 20px; line-height: 1; }

.ob-titulo    { font-size: 1.15rem; font-weight: 800; color: #ffffff; line-height: 1.3; margin: 0 0 12px; font-family: 'Inter', sans-serif; }
.ob-subtitulo { font-size: 0.88rem; color: #b3b3b3; line-height: 1.65; margin: 0; }

.ob-dots { display: flex; justify-content: center; gap: 8px; margin: 28px 0 22px; padding: 0 28px; box-sizing: border-box; }
.ob-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; padding: 0; cursor: pointer; transition: background 0.3s, width 0.3s, border-radius 0.3s; }
.ob-dot.ob-dot-ativo { background: #39ff14; width: 24px; border-radius: 4px; box-shadow: 0 0 8px rgba(57,255,20,0.6); }

.ob-acoes { display: flex; gap: 12px; align-items: center; padding: 0 28px; box-sizing: border-box; }

.ob-btn-pular { background: none; border: none; color: #777; font-size: 0.85rem; cursor: pointer; padding: 10px 4px; font-family: inherit; transition: color 0.2s; white-space: nowrap; }
.ob-btn-pular:hover { color: #aaa; }

.ob-btn-proximo {
    flex: 1; background: #39ff14; color: #000; border: none;
    border-radius: 50px; padding: 13px 24px; font-size: 0.92rem;
    font-weight: 800; cursor: pointer; font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 18px rgba(57,255,20,0.45); letter-spacing: 0.2px;
}
.ob-btn-proximo:hover  { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(57,255,20,0.6); }
.ob-btn-proximo:active { transform: scale(0.97); }

/* ================= RODAPÉ DESKTOP ================= */
.site-footer-desktop {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 40px;
    background-color: rgba(18, 20, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: none;
    display: flex;
    justify-content: center; align-items: center;
    gap: 15px;
    z-index: 10000;
    color: #94a3b8;
    font-size: 0.85rem;
}

.site-footer-desktop .footer-links { display: flex; align-items: center; gap: 8px; }
.site-footer-desktop .footer-link  { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 0.85rem; transition: color 0.2s; padding: 0; }
.site-footer-desktop .footer-link:hover { color: #39ff14; }
.site-footer-desktop .footer-sep   { color: rgba(255,255,255,0.2); user-select: none; }

/* Ocultar rodapé desktop no mobile */
@media (max-width: 768px) { .site-footer-desktop { display: none !important; } }

/* ================= MENU MOBILE (HAMBÚRGUER) ================= */
/* Ocultar toda a estrutura do menu em desktop */
@media (min-width: 769px) {
    #menu-mobile,
    #menu-mobile-overlay,
    .menu-mobile-panel {
        display: none !important;
    }
}

/* Overlay Escuro */
.menu-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-mobile-overlay.visivel {
    display: block !important;
    opacity: 1;
}

/* Painel Principal (Aparece de baixo pra cima) */
.menu-mobile-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: #1a1b1e;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.menu-mobile-panel.aberto {
    transform: translateY(0);
}

/* Barra de arraste (handle) no topo */
.menu-mobile-handle {
    width: 40px;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin: 12px auto 0;
}

/* Cabeçalho do menu */
.menu-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px;
}
.menu-mobile-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}
.menu-mobile-fechar {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

/* Seções e Itens */
.menu-mobile-section {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.menu-mobile-section:last-of-type {
    border-bottom: none;
}
.menu-mobile-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7a7a7a;
    margin: 0 0 10px 0;
    font-weight: 600;
}
.menu-mobile-item {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: #dedede;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.menu-mobile-item:active {
    opacity: 0.7;
}

.mmi-icon {
    width: 25px;
    color: #39ff14;
    font-size: 1.1rem;
    margin-right: 12px;
    text-align: center;
}
.mmi-texto {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
}
.mmi-arrow {
    color: #555;
    font-size: 1.2rem;
}

/* Item Tema (Aparência) */
.menu-mobile-tema {
    justify-content: space-between;
}
.btn-tema-switch {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Rodapé / Copy */
.menu-mobile-copy {
    text-align: center;
    color: #555;
    font-size: 0.7rem;
    padding: 20px;
    margin: 0;
}
