/* --------------------------------------------------
   Formulário de introdução (welcome screen)
   -------------------------------------------------- */
#welcome {
    max-width: 600px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

#welcome h1 {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 1.5rem;
}

#welcome p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
}

/* Layout dos inputs */
#welcome p:nth-of-type(2) {
    display: flex;
    justify-content: center;
}

#welcome p:nth-of-type(3) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

#welcome p:nth-of-type(4) {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Estilo dos campos de input */
#welcome input[type="text"],
#welcome input[type="number"] {
    width: 100%;
    max-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#welcome input[type="text"]:focus,
#welcome input[type="number"]:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

#welcome input::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Botão principal */
#welcome #start-btn {
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
}

/* --------------------------------------------------
   Resultado (tela de resultado)
   -------------------------------------------------- */
#result {
    position: relative; /* <— adicione isto */
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Título e descrição */
#result-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #eef2ff;
}

/* DOMÍNIO: permite quebras para não estourar a tela */
#domain-name {
    font-size: 3rem;
    margin: 0.5rem 0 1rem;
    background: linear-gradient(to right, #f72585, #560bad);
    color: transparent;
    word-break: break-all;
    white-space: normal;
}

/* ─── Wrapper e imagem ─────────────────────────────── */
/* Envolve a imagem para controlar overflow e escala */
#result-image-wrapper {
    width: 100%;
    max-width: 400px;
    /* ajuste conforme desejar */
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* A própria imagem: sempre escala proporcionalmente */
#result-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Ajustes mobile extra ─────────────────────────── */
@media (max-width: 480px) {
    #result {
        padding: 1.5rem 1rem;
    }

    #result-title {
        font-size: 1.75rem;
    }

    #domain-name {
        font-size: 2rem;
    }

    /* Se quiser reduzir ainda mais o mockup no mobile */
    #result-image-wrapper {
        max-width: 100%;
    }
}

/* --------------------------------------------------
   Botões de ação (compartilhar, download, reiniciar)
   -------------------------------------------------- */
#result .flex>button {
    flex: 1;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: filter 0.2s ease;
}

#result button:hover:not(:disabled) {
    filter: brightness(1.1);
}

/* --------------------------------------------------
   Estilos gerais
   -------------------------------------------------- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f4f6;
}

.toast {
    /* já está bom, mas podemos centralizar ainda mais */
    padding: 1rem 1.5rem;
    bottom: 2rem;
}

/* ─── Keyframes customizados ───────────────────────────────── */

/* Um “wiggle” divertido */
@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

.animate-wiggle {
    animation: wiggle 1s ease-in-out infinite;
}

/* Fade in suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}