/* Header */

.menu-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    transition: top 0.3s ease;
}

/* Wrapper do botão principal e menu */
.toggle-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #a259ff;
    border-radius: 40px;
    padding: 4px;
    background-color: #313030;
    transition: all 0.3s ease;
}

/* Botão de menu (☰) */
.menu-toggle {
    background-color: #a259ff;
    color: black;
    font-size: 20px;
    border-radius: 50%;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Ícones do menu */
.menu-options {
    display: flex;
    gap: 6px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

/* Estilo dos ícones individuais */
.menu-options a {
    background-color: #a259ff;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: black;
    text-decoration: none;
}

/* Oculta o menu quando necessário */
.hidden {
    display: none;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quando menu aparece */
.menu-options.show {
    display: flex !important;
    animation: fadeInSlide 0.3s ease forwards;
}

@keyframes borderPulse {
    0% {
        border-color: #a259ff;
        box-shadow: 0 0 5px #a259ff;
    }
    50% {
        border-color: #888888;
        box-shadow: 0 0 15px #888888;
    }
    100% {
        border-color: #a259ff;
        box-shadow: 0 0 5px #a259ff;
    }
}

/* Ativado quando o menu abre */
.toggle-wrapper.glow-border {
    animation: borderPulse 1s ease-in-out forwards;
}

@keyframes borderPulseOpen {
    0% {
        border-color: #888888;
        box-shadow: 0 0 5px #888888;
    }
    50% {
        border-color: #a259ff;
        box-shadow: 0 0 15px #a259ff;
    }
    100% {
        border-color: #888888;
        box-shadow: 0 0 5px #888888;
    }
}

@keyframes borderPulseClose {
    0% {
        border-color: #a259ff;
        box-shadow: 0 0 5px #a259ff;
    }
    50% {
        border-color: #888888;
        box-shadow: 0 0 15px #888888;
    }
    100% {
        border-color: #a259ff;
        box-shadow: 0 0 5px #a259ff;
    }
}

.toggle-wrapper.glow-border-open {
    animation: borderPulseOpen 0.5s ease-in-out forwards;
}

.toggle-wrapper.glow-border-close {
    animation: borderPulseClose 0.5s ease-in-out forwards;
}
