document.addEventListener('DOMContentLoaded', function() { // Handle social media account generation const generateBtn = document.querySelector('.bg-blue-500'); if (generateBtn) { generateBtn.addEventListener('click', function() { const platform = document.querySelector('select').value; const count = document.querySelector('input[type="number"]').value; const usernamePattern = document.querySelector('input[type="text"]').value; alert(`Generating ${count} ${platform} accounts with pattern: ${usernamePattern}\n\nThis is a demo - actual account creation would require backend integration.`); }); } // Handle question submission const questionInput = document.querySelector('input[type="text"]'); const submitButton = document.querySelector('button'); submitButton.addEventListener('click', function() { if (questionInput.value.trim() !== '') { alert(`The wizard ponders your question: "${questionInput.value}"\n\n✨ The answer will reveal itself in time... ✨`); questionInput.value = ''; } }); questionInput.addEventListener('keypress', function(e) { if (e.key === 'Enter' && questionInput.value.trim() !== '') { alert(`The wizard ponders your question: "${questionInput.value}"\n\n✨ The answer will reveal itself in time... ✨`); questionInput.value = ''; } }); // Add hover effect to question items const questionItems = document.querySelectorAll('li'); questionItems.forEach(item => { item.addEventListener('click', function() { questionInput.value = this.textContent; questionInput.focus(); }); }); });