/* ============================================
   BOTÃO HAMBÚRGUER
============================================ */
.menu-hamburguer-wrapper {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 99999;
}

.menu-hamburguer-btn {
    width: 36px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-hamburguer-btn span {
    display: block;
    height: 4px;
    width: 100%;
    background: #0ea5e9; /* fonte branca */
    border-radius: 4px;
    transition: 0.3s ease;
}

/* Animação quando o menu abre */
.menu-hamburguer-btn.ativo span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.menu-hamburguer-btn.ativo span:nth-child(2) {
    opacity: 0;
}

.menu-hamburguer-btn.ativo span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* ============================================
   MENU LATERAL
============================================ */
.menu-hamburguer-nav {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95); /* dark */
    backdrop-filter: blur(8px);
    padding: 60px 20px;
    transition: 0.3s ease;
    z-index: 99998;
}

.menu-hamburguer-nav.ativo {
    right: 0;
}

/* Lista do menu */
.menu-hamburguer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-hamburguer-list li {
    margin-bottom: 18px;
}

.menu-hamburguer-list li a {
    color: #fff !important; /* fonte branca */
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

/* Hover */
.menu-hamburguer-list li a:hover {
    color: #38bdf8 !important;
}

/* ============================================
   MODO DARK AUTOMÁTICO
============================================ */
@media (prefers-color-scheme: dark) {
    .menu-hamburguer-nav {
        background: rgba(15, 23, 42, 0.95);
    }
}

/* ============================================
   MODO DARK MANUAL (classe aplicada no body)
============================================ */
body.dark-mode .menu-hamburguer-nav {
    background: rgba(15, 23, 42, 0.95);
}

body.dark-mode .menu-hamburguer-btn span {
    background: #fff;
}
