/* =========================================================
   GERADOR DE NOMES
   ========================================================= */


/* =========================================================
   ÁREA PRINCIPAL
   ========================================================= */

.name-generator-tool {
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   CONFIGURAÇÕES
   ========================================================= */

.name-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
    margin-bottom: 28px;
}

.name-field {
    min-width: 0;
}

.name-field .main-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

.name-select,
.name-number {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.95rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.name-select:focus,
.name-number:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.name-style-description {
    min-height: 22px;
    margin-top: 7px;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.name-field-help {
    margin-top: 7px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.name-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.name-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.name-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.name-button:active {
    transform: translateY(1px);
}

.name-button-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.name-button-primary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}


/* =========================================================
   RESULTADO
   ========================================================= */

.name-result {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.name-result-title {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 700;
}

.name-result-description {
    margin: 0 0 20px;
    color: #64748b;
    line-height: 1.6;
}

.name-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.name-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 9px 12px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.name-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.name-item-content {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.name-item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 700;
}

.name-item-text {
    color: #0f172a;
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.name-item-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.name-copy-button,
.name-favorite-button {
    min-width: 38px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86rem;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.name-copy-button:hover,
.name-favorite-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.name-favorite-button {
    color: #64748b;
    font-size: 1.1rem;
}

.name-favorite-button.active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}


/* =========================================================
   FAVORITOS
   ========================================================= */

.name-favorites {
    margin-top: 32px;
    padding-top: 27px;
    border-top: 1px solid #e2e8f0;
}

.name-favorites-title {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.2rem;
}

.name-favorites-description {
    margin: 0 0 15px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.name-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.name-favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.name-favorite-text {
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.name-remove-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff;
    color: #64748b;
    font-size: 1.15rem;
    cursor: pointer;
}

.name-remove-favorite:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.name-favorite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}


/* =========================================================
   ESTADO VAZIO
   ========================================================= */

.name-empty {
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* =========================================================
   AVISO DA FERRAMENTA
   ========================================================= */

.name-notice {
    margin-top: 25px;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.6;
}

.name-notice strong {
    color: #1e3a8a;
}


/* =========================================================
   ORIENTAÇÃO
   ========================================================= */

.name-orientation-section {
    padding-top: 10px;
}

.name-orientation-card {
    max-width: 1000px;
    margin: 0 auto;
}

.name-orientation-card h2 {
    margin-top: 0;
}

.name-orientation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.name-orientation-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.name-orientation-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.86rem;
    font-weight: 700;
}

.name-orientation-item h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 0.98rem;
}

.name-orientation-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

.name-orientation-tip {
    margin-top: 24px;
}


/* =========================================================
   INFORMAÇÕES
   ========================================================= */

.name-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.name-info-grid h2 {
    margin-top: 0;
}

.name-info-grid p {
    line-height: 1.65;
}

.name-privacy-tip {
    margin-top: 25px;
}


/* =========================================================
   ACESSIBILIDADE / FOCO
   ========================================================= */

.name-button:focus-visible,
.name-copy-button:focus-visible,
.name-favorite-button:focus-visible,
.name-remove-favorite:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 900px) {

    .name-orientation-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}


@media (max-width: 700px) {

    .name-settings,
    .name-info-grid {
        grid-template-columns: 1fr;
    }

    .name-generator-tool {
        max-width: none;
    }

}


@media (max-width: 600px) {

    .name-actions {
        flex-direction: column;
    }

    .name-button {
        width: 100%;
    }

    .name-item {
        align-items: flex-start;
    }

    .name-item-content {
        align-items: flex-start;
    }

    .name-item-actions {
        flex-direction: column;
    }

    .name-copy-button,
    .name-favorite-button {
        min-width: 38px;
    }

    .name-favorite-actions {
        flex-direction: column;
    }

    .name-favorite-actions .name-button {
        width: 100%;
    }

}


@media (max-width: 430px) {

    .name-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .name-item-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .name-item-content {
        width: 100%;
    }

    .name-orientation-item {
        gap: 10px;
    }

}