/* Hamburger menu oculto por padrão */
#menuToggle {
    display: none;
}

header {
    background: #111;
    color: #f8f8f8;
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 100;
    border-bottom: 2px solid #c2185b;
}

/* Logo como link */
.logo-link {
    font-size: 22px;
    font-weight: 800;
    color: #e91e63;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.2s;
}

.logo-link:hover {
    color: #f06292;
}

.nav-main {
    display: flex;
    gap: 20px;
    align-items: center;
}

header nav a {
    color: #f06292;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 12px 18px;
    line-height: 1.4;
    touch-action: manipulation;
}

header nav a:hover {
    color: #ff4081;
}

.nav-main a.active {
    color: #e83e8c;
    font-weight: bold;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #f06292;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    background: #111;
    min-width: 170px;
    box-shadow: 0 2px 8px #0002;
    z-index: 10;
    padding: 6px 0;
    border-radius: 6px;
    border: 1px solid #e83e8c33;
}

.dropdown-menu a {
    display: block;
    color: #eee;
    text-decoration: none;
    padding: 12px 18px;
    transition: background 0.18s, color 0.18s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: #ffeaf4;
    color: #e83e8c !important;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

/* ===== Mobile: Botão hamburger e menu ===== */
@media (max-width: 768px) {

    #menuToggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        font-size: 28px;
        background: none;
        border: none;
        color: #f8f8f8;
        cursor: pointer;
        z-index: 101;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        padding: 15px 20px;
        background: #111;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 2px solid #c2185b;
        box-sizing: border-box;
        z-index: 100;
    }

    .nav-main {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        height: calc(100vh - 60px);
        width: 100%;
        background: rgba(17,17,17,0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        z-index: 200; /* Garante que cobre tudo, inclusive topo-fixo */
        padding-top: 20px;
    }

    .nav-main.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav-main a, .dropdown-toggle {
        font-size: 20px;
        color: #f8f8f8;
        text-decoration: none;
        font-weight: 500;
        text-align: center;
        padding: 18px 15px;
        width: 100%;
        border-bottom: 1px solid #222;
        box-sizing: border-box;
        cursor: pointer;
    }

    .nav-main a:hover,
    .nav-main a.active {
        color: #ff4081;
        background-color: rgba(255,255,255,0.05);
    }

    .dropdown {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .dropdown-toggle {
        display: block;
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
    }

    .dropdown-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255,255,255,0.02);
        box-shadow: none;
        border: none;
        position: static;
        margin: 0;
        padding: 0;
    }

    .dropdown.show .dropdown-menu {
        display: flex !important;
        animation: fadeIn 0.2s ease;
    }

    .dropdown-menu a {
        font-size: 18px;
        color: #ddd;
        padding: 13px 15px;
        border-bottom: 1px solid #222;
        background: transparent;
        text-align: center;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        color: #ff4081 !important;
        background-color: rgba(255,255,255,0.05);
    }
}

/* Animação suave do menu mobile */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px);}
    to   { opacity: 1; transform: translateY(0);}
}
